PDA

View Full Version : setFont doesn't work



DadaLee
7th August 2008, 02:32
:confused:In order to support chinese translation, I use "wenquanyi:*:*" as font parameter when configure. The function "setFont" in code seems not working, and even if I change the font size in qpe.conf. But it actually works correct when I use the default font "dejavu_sans_condensed:*:*". Why?

DadaLee
11th August 2008, 06:29
:oI find the reson. That's because the font "wenquanyi" is specified in pixels. So it should use setPixelSize() instead of setPointSize().