[Prev: ByteArray] [Home] [Next: Pixmap]

Font

The Font represents a font. Instances of Font can be passed to C++ slots that take arguments of type QFont.

Font Properties
family

The fonts family or name, such as SansSerif.

pointSize

The point size of the font. A point is 1/96 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

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 600 pixels pr inch.

bold

True if the font is bold; otherwise false.

italic

True if the font is italic; otherwise false.

underline

True if the font is underline; otherwise false.

strikeout

True if the strikeout is on; otherwise false.

[Prev: ByteArray] [Home] [Next: Pixmap]