[Qgis-user] How retrieve the size of a font truetype
Andrea Peri
aperi2007 at gmail.com
Mon Nov 2 01:11:58 PST 2015
Hi,
I'm try-ing, in a python plugin, to retrieve the size of a font label.
I have this code:
unicode( fontDef).encode('utf8'), fm.height() )
But it is retrieve the wrong value.
Infact If I try to set a font size of 9 dpi using the qgis interface,
when try to retrieve it return me a value of 21.
I try to use a
fm.size(),
but it seem don't exist.
So perhaps it could be have a differente method to retrieve the label font size.
Thx.
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
More information about the Qgis-user
mailing list