logo       

Re: generating correct sfnt ttf files: msg#00038

fonts.fontforge.user

Subject: Re: generating correct sfnt ttf files

Hi,

On Tue, 29 Aug 2006 13:27:19 -0400
Qianqian Fang <fangq@xxxxxxxxxxxxxxxxxxx> wrote:
>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.

Sorry for my poor English in previous post (in above thread),
I was not thinking the issue were bug. I think it's incompatibility
of expected bitmap font design/handling among fontconfig, freetype2,
and fontforge.

>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.

Please wait 24 hours for detailed analysis of the issue
(if you have any friend who can read Japanese, check my
blog at https://www.codeblog.org/blog/mpsuzuki)
It's too late (now 4:30 am, in Japan :-))

>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?

No, freetype2 sets FT_FACE_FLAG_SCALABLE when there is
glyf or CFF tables are included, even if they includes
only gid=0 fallback glyph.

>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.

I'm writing a patch to modify fontconfig to scan bitmap-
only sfnt.

Regards,
mpsuzuki

-------------------------------------------------------------------------
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