Scribus
Open source desktop publishing at your fingertips
|
Main class SCFonts. Subclass of QDict<ScFace>. This class replaces the previous SCFonts typedef, and is nearly as convenient. The chief difference from the application point of view is that while data can still be retrieved with SCFonts[fontname], this cannot be used to add members. Since the only piece of code that will generally add members is scfonts.h, this is not a major problem. More...
#include <scfonts.h>
Public Member Functions | |
void | updateFontMap () |
void | GetFonts (QString pf, bool showFontInfo=false) |
ScFace | LoadScalableFont (const QString &filename) |
void | AddScalableFonts (const QString &path, QString DocName="") |
const ScFace & | findFont (const QString &fontName, ScribusDoc *doc=NULL) |
Returns a font with that name; creates a replacement font if not found. | |
QMap< QString, QString > | getSubstitutions (const QList< QString > skip=QList< QString >()) const |
Returns a map of pairs (scName, replacementName). Using this map for replaceFonts() will make substitutions permanent. | |
void | setSubstitutions (const QMap< QString, QString > &substitutes, ScribusDoc *doc=NULL) |
Changes replacement fonts to point to new real fonts. For all keys 'nam' in 'substitutes', findFont(name).isReplacement() must be true. | |
void | removeFont (QString name) |
Public Attributes | |
QMap< QString, QStringList > | fontMap |
maps family name to face variants | |
Protected Attributes | |
bool | showFontInformation |
Main class SCFonts. Subclass of QDict<ScFace>. This class replaces the previous SCFonts typedef, and is nearly as convenient. The chief difference from the application point of view is that while data can still be retrieved with SCFonts[fontname], this cannot be used to add members. Since the only piece of code that will generally add members is scfonts.h, this is not a major problem.