[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetype-devel
Subject:    Re: [ft-devel] Re: Bad Font
From:       David Somers <dsomers () omz13 ! com>
Date:       2005-03-14 20:57:28
Message-ID: 200503142157.36414.dsomers () omz13 ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sunday 13 March 2005 08:15, Werner LEMBERG wrote:
> Given that David Somers is interested to support fonts with the new
> SING table -- which also don't have a `head' table -- I wonder how to
> implement that properly.
>
> What about the following: If the font uses the SFNT format, check the
> existence of the `head' table.  If it is in the font, treat it as
> usual.  Otherwise, if there is a `CFF ' table, extract the CFF data
> and handle it as a pure CFF.  If a `SING' table is present, also use
> the data from `cmap' table.

Werner,

I think that last test should be: if SING *and* META are present....

Remember, if there is a SING table and no META table, or vice versa, 
sfnt_dir_check should (must!) treat that condition as a bad font.

Also, be aware that if there is no head, then FT_Get_Sfnt_Table(face, 
ft_sfnt_head) should retun null. Perhsps sfnt_dir_check should be modded to 
set a flag somewhere to indicate that the face is a variant of a sfnt, so 
other functions can act as appropriate. (May be setting face->os2.version to 
something like FFFC, etc.... either that, or is it worth adding a new item to 
the face structure to hold this condition?)

For those on this list who aren't familiar with SING, the following may be of 
use:

SING Glyphlet is an extension to OpenType developed by Adobe primarily to 
facilitate adding supplemental glyphs to an OpenType font (with emphasis on, 
but not necessariy limited to, gaiji to a CJK font). A SING Glyphlet Font is 
an OpenType font that contains the outline(s), either in a 'glyf' or 'CFF' 
table, for a glyph; 'cmap', 'BASE', and 'GSUB' tables are present with the 
same format and functionaliy as a regular OpenType font; there are no 'name', 
'head', 'OS/2', and 'post' tables; there are two new tables, 'SING' which 
contains details about the glyphlet, and 'META' which contains metadata.

Further information on the SING Glyphlet format can be found at:  
http://www.adobe.com/products/indesign/sing_gaiji.html

The specifications for the SING and META tables are not available at the 
moment, but I have been informed that they will be made public/available 
sometime.

Adobe have a Technology Preview available as follows:

windows:
http://www.adobe.com/support/downloads/detail.jsp?ftpID=2436
mac
http://www.adobe.com/support/downloads/detail.jsp?ftpID=2437

Greetings from Luxembourg.

-- 
David Somers
VoIP: FWD 622885
PGP Key = 7E613D4E
Fingerprint = 53A0 D84B 7F90 F227 2EAB  4FD7 6278 E2A8 7E61 3D4E

[Attachment #5 (application/pgp-signature)]

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/freetype-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic