Measuring text lengths with Pango
- From: Daniel d'Andrada Tenório de Carvalho <daniel carvalho indt org br>
- To: gtk-i18n-list gnome org
- Subject: Measuring text lengths with Pango
- Date: Wed, 22 Feb 2006 09:38:47 -0300
Hi everyone,
I need to write some code to arrange text paragraphs along with image
boxes in off-screen, "real", coordinates (cm, mm, in, etc).
But Pango seems to be aways bounded to device units (pixels), which is
not what I want.
An exaple: I want to know the length, in centimeters, of the sentence
"Hello, World!" on a 12pt Times New Roman font.
I've spent quite a few hours trying to find out how could I use Pango to
give me that info but I had no success yet (yes, I'm a newbie).
Can you guys give me some directions?
Thanks in advance,
Daniel d'Andrada T. de Carvalho - INdT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]