freetype
[Top][All Lists]
Advanced

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

[ft] devanagari fonts - shifting of pen position


From: Deepti Chunduru
Subject: [ft] devanagari fonts - shifting of pen position
Date: Tue, 26 May 2009 11:07:28 +0530


Hi,

I am using freetype to render devanagari fonts.

I need to calculate the shift in pen position using the formula :
                pointsize * resolution/(72*upem)                
              where pointsize = FUnits * point

This would help me in calculating the shift in pen position.
How can i get  funits of a glyph for a font/character?

Currently i use:
pen_x += slot->advance.x >> 6
But this shift gives a lot of gap between two glyphs

Is there any other way to calculate correct shift to obtain correct spacing?


Thnx,
Deepti
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you



reply via email to

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