|
QCAD
Open Source 2D CAD
|
Copyright (c) 2011-2018 by Andrew Mustun. More...
#include <RFont.h>
Public Member Functions | |
| const QStringList | getAuthors () const |
| QList< double > | getAuxLinePositions () const |
| QString | getAuxLinePositionsString () const |
| QString | getEncoding () const |
| QString | getFileName () const |
| RPainterPath | getGlyph (const QChar &ch, bool draft=false) const |
| QMap< QChar, RPainterPath > | getGlyphMap () const |
| QList< QChar > | getGlyphNames () const |
| double | getLetterSpacing () const |
| double | getLineSpacingFactor () const |
| const QStringList | getNames () const |
| RPainterPath | getShape (const QString &name) const |
| QString | getShapeName (const QChar &ch) const |
| QList< QString > | getShapeNames () const |
| double | getWordSpacing () const |
| bool | isLoaded () const |
| bool | isValid () const |
| bool | load () |
| Loads the font into memory. | |
| RFont () | |
| Copyright (c) 2011-2018 by Andrew Mustun. | |
| RFont (const QString &fileName) | |
| Constructor. | |
| ~RFont () | |
Private Attributes | |
| QStringList | authors |
| Authors. | |
| QList< double > | auxLinePositions |
| Aux line positions for CXF editing. | |
| QString | encoding |
| Font encoding (see docu for QTextCodec) | |
| QString | fileName |
| Font file name. | |
| QMap< QChar, QPainterPath > | glyphDraftMap |
| QMap< QChar, RPainterPath > | 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. | |
| QMap< QChar, QString > | numNameMap |
| QMap< QString, RPainterPath > | shapeMap |
| list of shapes (used for complex line types) | |
| double | wordSpacing |
| Default word spacing for this font. | |
Copyright (c) 2011-2018 by Andrew Mustun.
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD. Represents a CXF font.
| RFont::RFont | ( | ) |
Copyright (c) 2011-2018 by Andrew Mustun.
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD. Constructor.
| RFont::RFont | ( | const QString & | fileName | ) |
Constructor.
| RFont::~RFont | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| RPainterPath RFont::getGlyph | ( | const QChar & | ch, |
| bool | draft = false ) const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| RPainterPath RFont::getShape | ( | const QString & | name | ) | const |
| QString RFont::getShapeName | ( | const QChar & | ch | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| bool RFont::load | ( | ) |
Loads the font into memory.
| true | font was already loaded or is loaded now. |
| false | font could not be loaded. |
|
private |
Authors.
|
private |
Aux line positions for CXF editing.
|
private |
Font encoding (see docu for QTextCodec)
|
private |
Font file name.
|
private |
|
private |
list of glyphs as painter paths (letters)
|
private |
Default letter spacing for this font.
|
private |
Default line spacing factor for this font.
|
private |
Is this font currently loaded into memory?
|
private |
Font names.
|
private |
|
private |
list of shapes (used for complex line types)
|
private |
Default word spacing for this font.