Fonts zerfleddert / unschoen (englischer text)

Alles rund um die Programmierung mit Qt
Antworten
microdigi
Beiträge: 3
Registriert: 8. September 2004 12:34
Wohnort: D-29559 Wrestedt
Kontaktdaten:

Fonts zerfleddert / unschoen (englischer text)

Beitrag 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
nando
Beiträge: 321
Registriert: 28. Oktober 2004 13:16

Beitrag 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
gandalf
Beiträge: 39
Registriert: 31. August 2004 17:00
Wohnort: Varel
Kontaktdaten:

Beitrag 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
benutzte QT 3.2 nc auf w2k
Antworten