Re: [ft] FT_New_Memory_Face and .ttc

2006-01-18 Thread Niels-Peter Nielsen
Let N := num. of tables Min:= min(offset of tables) Offset := Min - (12 + 16 * N). Then Offset should be the offset of the face in the TTC file. Even if it is not, it won't harm freetype. Adjusting the offsets might work if done on the TTF that is

Re: [ft] FT_New_Memory_Face and .ttc

2006-01-17 Thread Michael Day
Hi, I am interested in this GetFontData/TTC problem also, as it is currently affecting Prince, our XML + CSS to PDF formatter, which uses FreeType. N := num. of tables Min:= min(offset of tables) Offset := Min - (12 + 16 * N). I don't quite follow this -- is the

Re: [ft] FT_New_Memory_Face and .ttc

2006-01-17 Thread Chia-I Wu
On Tue, Jan 17, 2006 at 07:40:54PM +1100, Michael Day wrote: N := num. of tables Min:= min(offset of tables) Offset := Min - (12 + 16 * N). I don't quite follow this -- is the number of tables the number of tables in the individual font face? Given that GetFontData

Re: [ft] FT_New_Memory_Face and .ttc

2006-01-14 Thread Michael Day
I have a problem getting FT_New_Memory_Face to work with fonts that are stored in .ttc files. I have experienced this problem too, using freetype 2.1.9. Cheers, Michael -- Print XML with Prince! http://www.princexml.com ___ Freetype mailing

[ft] FT_New_Memory_Face and .ttc

2006-01-14 Thread Niels-Peter Nielsen
Hello, I have a problem getting FT_New_Memory_Face to work with fonts that are stored in .ttc files. In my application, I use a standard Windows font selection dialog and create a font from the returned LOGFONT structure. I select the font into a device context and then call GetFontData. The

Re: [ft] FT_New_Memory_Face

2005-07-16 Thread Werner LEMBERG
I have a question regarding FT_New_Memory_Face(). I have converted my arial.ttf file to an array of unsigned bytes, and I have compiled and linked this array into my application. I then pass a pointer to the array to FT_New_Memory_Face(), however it returns a non-zero status. [...] Please