Represents a CXF font.
More...
#include <RFont.h>
List of all members.
Private Attributes |
| QStringList | authors |
| | Authors.
|
| QString | encoding |
| | Font encoding (see docu for QTextCodec)
|
| QString | fileName |
| | Font file name.
|
| QMap< QChar, QPainterPath > | glyphDraftMap |
| QMap< QChar, QPainterPath > | glyphMap |
| | list of glyphs as painter paths (letters)
|
| double | letterSpacing |
| | Default letter spacing for this font.
|
| double | lineSpacingFactor |
| | Default line spacing factor for this font.
|
| bool | loaded |
| | Is this font currently loaded into memory?
|
| QStringList | names |
| | Font names.
|
| double | wordSpacing |
| | Default word spacing for this font.
|
Detailed Description
Represents a CXF font.
- Scriptable:
- This class is wrapped for script environments.
Constructor & Destructor Documentation
| RFont::RFont |
( |
const QString & |
fileName | ) |
|
Member Function Documentation
| const QStringList RFont::getAuthors |
( |
| ) |
const |
|
inline |
- Returns:
- the author(s) of this font.
| QString RFont::getEncoding |
( |
| ) |
const |
|
inline |
- Returns:
- the encoding of this font.
| QString RFont::getFileName |
( |
| ) |
const |
|
inline |
- Returns:
- the fileName of this font.
| QPainterPath RFont::getGlyph |
( |
const QChar & |
ch, |
|
|
bool |
draft = false |
|
) |
| const |
\par Non-Scriptable:
This function is not available in script environments.
| QMap<QChar, QPainterPath> RFont::getGlyphMap |
( |
| ) |
const |
|
inline |
\par Non-Scriptable:
This function is not available in script environments.
| double RFont::getLetterSpacing |
( |
| ) |
const |
|
inline |
- Returns:
- Default letter spacing for this font
| double RFont::getLineSpacingFactor |
( |
| ) |
const |
|
inline |
- Returns:
- Default line spacing factor for this font
| const QStringList RFont::getNames |
( |
| ) |
const |
|
inline |
- Returns:
- the alternative names of this font.
| double RFont::getWordSpacing |
( |
| ) |
const |
|
inline |
- Returns:
- Default word spacing for this font
| bool RFont::isLoaded |
( |
| ) |
const |
|
inline |
- Returns:
- True if this font is already loaded.
| bool RFont::isValid |
( |
| ) |
const |
|
inline |
Loads the font into memory.
- Return values:
-
| true | font was already loaded or is loaded now. |
| false | font could not be loaded. |
Member Data Documentation
| QStringList RFont::authors |
|
private |
Font encoding (see docu for QTextCodec)
| QMap<QChar, QPainterPath> RFont::glyphDraftMap |
|
private |
| QMap<QChar, QPainterPath> RFont::glyphMap |
|
private |
list of glyphs as painter paths (letters)
| double RFont::letterSpacing |
|
private |
Default letter spacing for this font.
| double RFont::lineSpacingFactor |
|
private |
Default line spacing factor for this font.
Is this font currently loaded into memory?
| double RFont::wordSpacing |
|
private |
Default word spacing for this font.
The documentation for this class was generated from the following files: