freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Devel] Telling font types from an FT_Face?


From: Werner LEMBERG
Subject: Re: [Devel] Telling font types from an FT_Face?
Date: Fri, 19 Dec 2003 09:40:14 +0100 (CET)

> At 11:27 PM +0100 12/18/03, Werner LEMBERG wrote:
> >  > Why not simply provide a list of known/standard types (with
> >>  "subtypes") that can be retrieved using a single standard API call?
> >
> >Can you suggest how such an API function should look like?
> >
>
>       I like the one that's there now in the X11 code that David
> pointed out...Just need to change the name and move it public...
>
>       And then move the response values into the same public header...

But this API doesn't report subtypes...

Hmm, we had to replace the current static strings with small
functions which give subtypes.  What about the following list: If
there are subtypes, it first gives the font format, then the type,
probably followed by a subtype.  Please make suggestions,
corrections, additions, etc.

bdf:
  BDF                -- 5005.BDF_Spec.pdf, X11

cff:
  SFNT_CFF           -- OT spec, 5176.CFF.pdf (`OTTO' format)
  SFNT_CFF_CID       -- OT spec, 5176.CFF.pdf
  SFNT_CFF_SYNTHETIC -- OT spec, 5176.CFF.pdf (not handled yet)
  CFF                -- 5176.CFF.pdf (`pure' CFF)
  CFF_CID            -- 5176.CFF.pdf (`pure' CFF)
  CFF_SYNTHETIC      -- 5165.CFF.pdf (`pure' CFF; not handled yet)
  PS_TYPE_2          -- PLRM.pdf (not handled yet) [1]

cid:
  PS_CID             -- PLRM.pdf (CID Font Type 0)
  PS_TYPE_9          -- PLRM.pdf (not handled yet?) [2]
  PS_CID_TYPE_3      -- PLRM.pdf (CID Font Type 1; never supported)
  PS_TYPE_10         -- PLRM.pdf (not handled yet) [2]
  PS_CID_TYPE_42     -- PLRM.pdf (CID Font Type 2; not handled yet)
  PS_TYPE_11         -- PLRM.pdf (not handled yet) [2]
  PS_CID_TYPE_4      -- PLRM.pdf (CID Font Type 4; never supported?)
  PS_TYPE_32         -- PLRM.pdf (not handled yet) [2]
  SFNT_CID           -- 5180.sfnt.pdf (for the Mac; not handled yet)

pcf:
  PCF                -- X11

pfr:
  PFR                -- ?

sfnt:
  SFNT_TT_SBIT       -- OT spec (only bitmaps) [3]

truetype:
  SFNT_TT            -- OT spec (`normal' TT font)
  SFNT_TT_COLLECTION -- OT spec (this can't be CFF)

type1:
  PS                 -- T1_SPEC.pdf (`normal' Type 1 font)
  PS_MM              -- 5015.Type1_Supp.pdf (Multiple Masters)
  PS_TYPE_0          -- PLRM.pdf (not handled yet)
  PS_TYPE_3          -- PLRM.pdf (never supported)
  PS_TYPE_14         -- PLRM.pdf (never supported?)
  SFNT_TYPE_1        -- Type 1 GX Font Format (for the Mac;
                        not handled yet)

type42:
  PS_TYPE_42         -- 5012.Type42_Spec.pdf

winfonts:
  WINFNT             -- MS Windows 3 Developer's Notes
  WINFNT_VECTOR      -- MS Windows 3 Developer's Notes
                        (not handled yet)


[1] Support should be rather simple since this is identical to `CFF'
    in a PS wrapper.

[2] Support should be trivial since those font types directly
    correspond to CID font types (regardless whether a particular CID
    font type is actually supported or not).  We just need such fonts
    for testing...

[3] I'm not sure whether this subtype is really useful.


For completeness, I would like to have the documentation for the Type
1 GX Font Format.  According to the bibliography in 5180.sfnt.pdf, it
is on the Apple Developers CD-ROM.  Is there a good guy who could send
this to me, either in PDF format (preferred) or as a PS document?


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]