[Qt-interest] Deploying Qt with non-system fonts
Andreas Unger
andi.unger05 at gmail.com
Wed Oct 14 15:55:44 CEST 2009
On Mon, Oct 12, 2009 at 11:39 PM, Girish Ramakrishnan <girish at forwardbias.in
> wrote
> Just package the font as part of the app (put it in your qrc). Then load
> the font in Qt. I have a small example here -
> http://git.forwardbias.in/?p=hacks/customfont.git;a=summary.
>
>
Thanks. That was helpful, I was able to get the fonts working. There's
something about fonts in general that bothers me.There are times when I
create applications of a fixed geometry, say 800x480, using qtcreator.
However, the size of the fonts that I see while designing the application
differs from what I see on qt designer when I run the application. For
example, I might I might add some text to a certain area in the application
and set it to a fixed size, say 14px. The text fits in the area but when I
write the same text during runtime using the same font and same size, the
text is too big to fit in the area, so I have to downsize it to say 10px.
The fonts also look ugly and distorted I run the application on a windows CE
or embedded linux device with 800x480 resolution, the font seems to be much
smaller. I feel that there's some configuration to with resolutions and
dpi's that I'm not aware of. How can I make sure that the fonts are
consistently the same and the appearance of the text on the embedded devices
is similar to what I see on my desktop? Could someone help me out? How do I
fix this problem?
Cheers,
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091014/cdd1eded/attachment.html
More information about the Qt-interest-old
mailing list