logo       

Re: generating correct sfnt ttf files: msg#00044

fonts.fontforge.user

Subject: Re: generating correct sfnt ttf files

On Tue, 2006-08-29 at 10:27, Qianqian Fang wrote:

> I posted a question on fontconfig mailing list asking about the
> recognition of a SFNT TTF
> it seems* the FT_FACE_FLAG_SCALABLE is somehow left on.
Um...
This is a freetype bit, nothing to do with the sfnt format. And if you
have a truetype sfnt I would expect this bit to be set.

If you are talking about bitmap-only sfnts rather than TTF sfnts then:
FontForge can produce 3 different kinds of these depending on the
platform.
One of these formats (the one designed for the Windows platform) does
contain a tiny glyf table (Windows does not support bitmap only sfnts so
I try to trick it by giving it a glyf table and then setting things up
so that table is never used). If you are generating a bitmap font in
that format, FreeType would see the (unused) 'glyf' table and might
think it was scaleable.
Make sure you generate either OpenType Bitmaps, or sbit only dfonts.

> 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:
This checkbox is only relevant if you are changing the em-size. That's
why it is right beside the em-size field.

> Under "OS/2-misc" tag, I saw there is a "Only embedded bitmap" checkbox,
This checkbox is relevant to the FSType field of the OS/2 table. Again,
it is beside other parts of FSType
> wondering if this corresponds to the FT_FACE_FLAG_SFNT flag for
> freetype2 ?
Nope.
> <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
Again this is a freetype flag. FontForge cannot set it.

> a side question, I am wondering if TTF/OTF supports embedding gray-scale
> (4bit/8bit) bitmap glyphs?
It does. (So does fontforge)
> Freetype2 supports multi-bit BDF format,
I'm aware of that. (So does fontforge).
> If freetype2 and fontforge support grayscale bitmap SFNT ttf,
I'm almost certain that freetype does, but that's more a question for
the freetype list.
> then I think an AAed bitmap CJK sfnt
> font (by smoothing hand-hinted CJK glyph) would be the best for
> on-screen rendering.
It would still be large, though not as large as the BDF font file.
Generating one by hand would take a lot of work. Generating multiple
point-sizes... But if you want to do it...


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