Seite 1 von 1

Fonts zerfleddert / unschoen (englischer text)

Verfasst: 17. Dezember 2004 10:01
von microdigi
we have nasty difficulties and inconvenience with fonts.

whatever i specify in the qt-designer - it obviously does not matter.
the font changes with any release of our software.
and especially if we move to different linux distributions.
it changes at will. and it looks always ugly.

we need just two fonts:

one monospace (in variuos sizes)
we use courier 10 pitch today

one proportional font
sans serife is that favorite.

how can i be CERTAIN
that these two fonts are really used
in the final application?
presumed they exist on the system at all.

if tried to attach a font to the application
as taken from examples, but it still changes at will.

any help is very much appreciated.

whish you a merry christmas.

dieter.giersch@jet-software.com
microdigi@web.de

Verfasst: 17. Dezember 2004 14:36
von nando
Hi
if you are sure the font you want to use is installed on the base system AND if you are sure that your X has antialiased fonts enabled
there shouldn't be any problems.
i apply the master font if the application simply with

QApplication::setFont(MyFont);

The parameter MyFont a QFont object.

I only have problems when i try to run the application on a system where either the selected fonts aren't installed or like mention above the X enviroment doesn't support antialiasing.

Greetings,
Nando

Verfasst: 17. Dezember 2004 18:24
von gandalf
for my opinion you should make a test of installed fonds before starting software and you should then define other fonds to use if your favourit font isn't installed take care that you can avoid to a font that schould be installed of most platforms

cheers gandalf