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
[email protected]
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
_______________________________________________
Freetype mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype