logo       

generating correct sfnt ttf files: msg#00037

fonts.fontforge.user

Subject: generating correct sfnt ttf files

hi

I posted a question on fontconfig mailing list asking about the
recognition of a SFNT TTF
font. *mpsuzuki pointed out that this is due to the font file is not
well posed. The
discussion can be found at:

*http://lists.freedesktop.org/archives/fontconfig/2006-August/002364.html

I haven't got chance to verify this by myself, but from from *mpsuzuki's
detailed reply,
it seems* the FT_FACE_FLAG_SCALABLE is somehow left on.

I created the wqy sfnt font file from fontforge 20050310 (later version
will crash
when saving to sfnt ttf/otf). I looked at the "General" tab of Font Info
dialog, there is
a "Scale Outlines" checkbox, looks like the place to set this bit,
however, it seems
does not working: if I uncheck it and save the font to ttf, and reopen
the generated
sfnt file, this flag is still on.

Under "OS/2-misc" tag, I saw there is a "Only embedded bitmap" checkbox,
I am
wondering if this corresponds to the FT_FACE_FLAG_SFNT flag for
freetype2 ?
<http://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_FACE_FLAG_XXX>
does fontforge set this flag (and other necessary) automatically when
generating sfnt
ttf/otf or I need to do it manually?

a side question, I am wondering if TTF/OTF supports embedding gray-scale
(4bit/8bit)
bitmap glyphs? Freetype2 supports multi-bit BDF format, unfortunately,
CJK fonts are
too large if packed into this format and the rendering would be horribly
slow. If freetype2
and fontforge support grayscale bitmap SFNT ttf, then I think an AAed
bitmap CJK sfnt
font (by smoothing hand-hinted CJK glyph) would be the best for
on-screen rendering.

thanks

Qianqian



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise