[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freetype] Re: [Fonts]New versions of mkfontscale and FreeType 2 backend
From: |
Keith Packard |
Subject: |
[Freetype] Re: [Fonts]New versions of mkfontscale and FreeType 2 backend |
Date: |
Fri, 19 Apr 2002 10:03:11 -0700 |
Around 17 o'clock on Apr 19, Juliusz Chroboczek wrote:
> I'm currently using two internal interfaces, which I don't wish to
> export to server modules.
(from old mail...)
> (i) to determine whether a font uses glyph names or Unicode indices
> as its native encoding format (only Type 1 fonts fall into the
> former category currently);
I need this as well to fix MathML mode in Mozilla when using Xft. I
believe it would be sufficient (if not exact) to simply check for type1
fonts, with the possible exception of OpenType fonts translated directly
from Type1 fonts. I don't know how you'd check for that case though.
As for accessing the source-specific fields in the font, I've had the PCF
FreeType developer suggest that as the "standard" way of getting at such
information. I'd rather have APIs that returned the private structure
from a font (null if the wrong type) so that a magic strcmp wasn't
necessary, and so that the library could transcode the information from
OpenType (or other "wrapper" font formats) if available. As long as those
datastructures appear in the public API for FreeType, they shouldn't
change without a major library version number change.
Keith Packard XFree86 Core Team Compaq Cambridge Research Lab