|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles | Qt Script for Applications | ![]() |
[Prev: ByteArray] [Home] [Next: Pixmap]
The Font class represents a font. Instances of Font can be passed to C++ slots that take arguments of type QFont.
family : String; The fonts family or name, such as SansSerif.
pointSize : Number; The point size of the font. A point is 1/72 inch. Using point size will give you a fixed sized independent of the device the font is used on. For instance, a screen has different resolution than a printer.
pixelSize : Number; The pixel size of the font. The size of a pixel is determined by the device the font is used for. For instance, a printer may have a resolution of have 600 pixels/inch, whereas a monitor may only achieve 120 pixels/inch.
bold : Boolean; True if the font is bold; otherwise false.
italic : Boolean; True if the font is italic; otherwise false.
underline : Boolean; True if the font is underline; otherwise false.
strikeout : Boolean; True if the strikeout is on; otherwise false.
[Prev: ByteArray] [Home] [Next: Pixmap]
Copyright © 2001-2006 Trolltech | Trademarks | QSA version 1.1.5
|