freetype
[Top][All Lists]
Advanced

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

Re: [ft] devanagari fonts - shifting of pen position


From: Govind
Subject: Re: [ft] devanagari fonts - shifting of pen position
Date: Tue, 26 May 2009 11:23:42 +0530
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Deepti Chunduru wrote:

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


  

_______________________________________________ Freetype mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/freetype
Hi,
 you can calculate funits by looking into font file you are using.
FUnits =  (font's ascender- font's descender).
I hope, it might work for you.

Regards
Govind Choudhary

reply via email to

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