|
QGIS API Documentation
2.0.1-Dufour
|
#include <qgsfontutils.h>
Static Public Member Functions | |
| static bool | fontMatchOnSystem (const QFont &f) |
| Check whether exact font is on system. | |
| static bool | fontFamilyOnSystem (const QString &family) |
| Check whether font family is on system in a quick manner, which does not compare [foundry]. | |
| static bool | fontFamilyMatchOnSystem (const QString &family, QString *chosen=0, bool *match=0) |
| Check whether font family is on system. | |
| static bool | updateFontViaStyle (QFont &f, const QString &fontstyle, bool fallback=false) |
| Updates font with named style and retain all font properties. | |
Definition at line 22 of file qgsfontutils.h.
|
static |
Check whether font family is on system.
| family | The family to test |
| chosen | The actual family (possibly from different foundry) returned by system |
| match | Whether the family [foundry] returned by system is a match |
Definition at line 38 of file qgsfontutils.cpp.
Referenced by QgsPalLayerSettings::readFromLayer().
|
static |
Check whether font family is on system in a quick manner, which does not compare [foundry].
| family | The family to test |
Definition at line 31 of file qgsfontutils.cpp.
Referenced by QgsPalLayerSettings::parseTextStyle().
|
static |
Check whether exact font is on system.
| f | The font to test for match |
Definition at line 25 of file qgsfontutils.cpp.
|
static |
Updates font with named style and retain all font properties.
| f | The font to update |
| fontstyle | The style to try and switch the font to |
| fallback | If no matching fontstyle found for font, assign most similar or first style found to font |
Definition at line 91 of file qgsfontutils.cpp.
Referenced by QgsPalLayerSettings::parseTextStyle(), and QgsPalLayerSettings::readFromLayer().
1.8.1.2