freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] Re: [Freetype] font family names


From: David F. Newman
Subject: [Devel] Re: [Freetype] font family names
Date: Fri, 29 Dec 2000 18:19:17 -0500 (EST)

On Fri, 29 Dec 2000, Werner LEMBERG wrote:

> No, both MS and FreeType are behaving correctly.  Below is the output
> from Just van Rossum's ttDump for the `name' table; the key point is
> that FreeType, by default, returns the first valid name record, and
> this is `New' (for Apple) -- the author of this font hasn't filled
> correct values for the Apple platform.  Unfortunately, we don't have
> implemented an extension in FT2 to select name records, so you have to
> access the structures directly.
> 
OK.  I have discovered what I was missing.  I did see those other
name records with the langid = 0x0406 but they looked like 0 length
strings.  But this was because I was assuming TT_Get_Name_String()
was always returning a string of single byte characters.  However,
if I looked at the length parameter that is returned I saw that
it wasn't 0 length and was actually twice as long as I thought it
_should_ be.  So when I looked at it as a string of two bytes 
characters I found my missing text and, sure enough, it turned
out to be "18thCentury".

Do you know how ttdump determined that the string was 2 byte
chars?  Are all name strings with Microsoft platform id's
2 bytes, or does one have to look at the langid and determine
if the language requires 2 byte chars, in this case 0x0406
is TT_MS_LANGID_DANISH_DENMARK.

-Dave





reply via email to

[Prev in Thread] Current Thread [Next in Thread]