29#include <QPainterPath>
44 RFont(
const QString& fileName);
48 return !fileName.isEmpty();
83 return lineSpacingFactor;
87 return auxLinePositions;
92 for (
int i=0;
i<auxLinePositions.length();
i++) {
93 ret.append(QString(
"%1").arg(auxLinePositions[
i]));
115 return glyphMap.keys();
118 RPainterPath getGlyph(
const QChar& ch,
bool draft =
false)
const;
121 return shapeMap.keys();
129 QString getShapeName(
const QChar& ch)
const;
Q_DECLARE_METATYPE(RMath *)
int i
Copyright (c) 2011-2018 by Andrew Mustun.
Definition autostart.js:32
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RFont.h:41
QMap< QChar, QPainterPath > glyphDraftMap
Definition RFont.h:145
QMap< QChar, RPainterPath > glyphMap
list of glyphs as painter paths (letters)
Definition RFont.h:141
QList< double > auxLinePositions
Aux line positions for CXF editing.
Definition RFont.h:172
bool isLoaded() const
Definition RFont.h:103
QMap< QChar, QString > numNameMap
Definition RFont.h:144
double getLetterSpacing() const
Definition RFont.h:72
QString fileName
Font file name.
Definition RFont.h:148
double letterSpacing
Default letter spacing for this font.
Definition RFont.h:163
QString getEncoding() const
Definition RFont.h:57
QList< double > getAuxLinePositions() const
Definition RFont.h:86
QStringList authors
Authors.
Definition RFont.h:157
double wordSpacing
Default word spacing for this font.
Definition RFont.h:166
QStringList names
Font names.
Definition RFont.h:154
double getWordSpacing() const
Definition RFont.h:77
double lineSpacingFactor
Default line spacing factor for this font.
Definition RFont.h:169
bool loaded
Is this font currently loaded into memory?
Definition RFont.h:160
QMap< QChar, RPainterPath > getGlyphMap() const
Definition RFont.h:110
QMap< QString, RPainterPath > shapeMap
list of shapes (used for complex line types)
Definition RFont.h:143
QString getAuxLinePositionsString() const
Definition RFont.h:90
const QStringList getAuthors() const
Definition RFont.h:67
QString encoding
Font encoding (see docu for QTextCodec)
Definition RFont.h:151
const QStringList getNames() const
Definition RFont.h:62
bool isValid() const
Definition RFont.h:47
QList< QString > getShapeNames() const
Definition RFont.h:120
double getLineSpacingFactor() const
Definition RFont.h:82
QList< QChar > getGlyphNames() const
Definition RFont.h:114
QString getFileName() const
Definition RFont.h:52
Extended painter path with a z-level and a pen.
Definition RPainterPath.h:48
#define QCADCORE_EXPORT
Definition core_global.h:10