freetype
[Top][All Lists]
Advanced

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

[ft] Embedded bitmaps in a TTF


From: Nik Napalm
Subject: [ft] Embedded bitmaps in a TTF
Date: Wed, 7 May 2008 14:44:02 +0000

Hi, I've a font that uses embedded bitmaps between certain point sizes, now when I use FT_Load_Char in the range these bitmaps reside, the bitmaps get displayed correctly but there seems that the metrics are based on the bitmaps bounds rather than the matrics had an outline been used, mainly advance etc, I know this font displays fine in WordPad which usually makes a mess of some fonts so I guess I'm getting the metrics wrong or doing something else silly.
 
At the moment I've tried getting values from slot->metrics->hori* and width/height, these work fine for anything that doesn't use embedded bitmaps, I've also tried following the samples on displaying fonts by using slot->bitmap_left/top/width/rows etc and these yield the same results, so I wondered what the correct procedure is for getting metrics ? or would it be a case of getting the metrics ignoring the bitmap metrics and if so how would I do this ?
 
Regards,
 
Nik.


Messenger's gone Mobile! Get it now!

reply via email to

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