Public Types | |
| enum | GenericFamilyType { NoFamily, StandardFamily, SerifFamily, SansSerifFamily, MonospaceFamily, CursiveFamily, FantasyFamily } |
Public Member Functions | |
| FontDescription () | |
| FontDescription default constructor. | |
| bool | operator== (const FontDescription &) const |
| operator== | |
| bool | operator!= (const FontDescription &other) const |
| operator!= | |
| const FontFamily & | family () const |
| get font family | |
| FontFamily & | firstFamily () |
| get first family | |
| float | specifiedSize () const |
| get specified size | |
| float | computedSize () const |
| get computed size | |
| bool | italic () const |
| get italic status | |
| int | computedPixelSize () const |
| get computed pixel size | |
| bool | smallCaps () const |
| get smallCaps status | |
| bool | isAbsoluteSize () const |
| get if it's absolute size | |
| FontWeight | weight () const |
| get the font weight | |
| FontWeight | lighterWeight () const |
| get the font lighter weight | |
| FontWeight | bolderWeight () const |
| get font bolder Weight | |
| GenericFamilyType | genericFamily () const |
| get generic font family | |
| bool | usePrinterFont () const |
| test if you use printer font | |
| FontRenderingMode | renderingMode () const |
| iget font rendering mode | |
| int | keywordSize () const |
| get keyword size | |
| FontTraitsMask | traitsMask () const |
| get font traits mask | |
| void | setFamily (const FontFamily &family) |
| set font family | |
| void | setComputedSize (float s) |
| set computed size | |
| void | setSpecifiedSize (float s) |
| set specified size | |
| void | setItalic (bool i) |
| set italic status | |
| void | setSmallCaps (bool c) |
| set SmallCaps status | |
| void | setIsAbsoluteSize (bool s) |
| set absolute size status | |
| void | setWeight (FontWeight w) |
| set font weight | |
| void | setGenericFamily (GenericFamilyType genericFamily) |
| set generic font family description | |
| void | setUsePrinterFont (bool p) |
| set if you use printer font | |
| void | setRenderingMode (FontRenderingMode mode) |
| set font rendering mode | |
| void | setKeywordSize (int s) |
| set keyword size | |
| WKAL::FontDescription::FontDescription | ( | ) |
| bool WKAL::FontDescription::operator== | ( | const FontDescription & | ) | const [inline] |
operator==
| [in] | : | FontDescription |
| [out] | : | false if it's not equal bool eq = fd == fdOther;
|
| [in] | : | FontDescription& |
| [out] | : | true if it's equal bool eq = fd == fdOther;
|
| bool WKAL::FontDescription::operator!= | ( | const FontDescription & | other | ) | const |
| const FontFamily& WKAL::FontDescription::family | ( | ) | const |
get font family
| [out] | : | font family FontFamily fa = fd->family(); |
| FontFamily& WKAL::FontDescription::firstFamily | ( | ) |
get first family
| [out] | : | font family FontFamily fa = fd->firstFamily(); |
| float WKAL::FontDescription::specifiedSize | ( | ) | const |
get specified size
| [out] | : | size float size = fd->specifiedSize();
|
| float WKAL::FontDescription::computedSize | ( | ) | const |
get computed size
| [out] | : | computed size float size = fd->computedSize();
|
| bool WKAL::FontDescription::italic | ( | ) | const |
get italic status
| [out] | : | status bool it = fd->italic()
|
| int WKAL::FontDescription::computedPixelSize | ( | ) | const |
get computed pixel size
| [out] | : | computed pixel size int cps = fd->computedPixelSize();
|
| bool WKAL::FontDescription::smallCaps | ( | ) | const |
get smallCaps status
| [out] | : | status bool sc = fd->smallCaps();
|
| bool WKAL::FontDescription::isAbsoluteSize | ( | ) | const |
get if it's absolute size
| [out] | : | absolute size status bool as = fd->isAbsoluteSize();
|
| FontWeight WKAL::FontDescription::weight | ( | ) | const |
| FontWeight WKAL::FontDescription::lighterWeight | ( | ) | const |
get the font lighter weight
| [out] | : | font lighter weight FontWeight fw = fd->lighterWeight(); |
| FontWeight WKAL::FontDescription::bolderWeight | ( | ) | const |
| GenericFamilyType WKAL::FontDescription::genericFamily | ( | ) | const |
get generic font family
| [out] | : | generic font family GenericFamilyType gff = fd->genericFamily(); |
| bool WKAL::FontDescription::usePrinterFont | ( | ) | const |
test if you use printer font
| [out] | : | true or false bool upf = fd->usePrinterFont();
|
| FontRenderingMode WKAL::FontDescription::renderingMode | ( | ) | const |
iget font rendering mode
| [out] | : | font rendering mode FontRenderingMode frm = fd->renderingMode(); |
| int WKAL::FontDescription::keywordSize | ( | ) | const |
get keyword size
| [out] | : | keyword size int ks = fd->keywordSize();
|
| FontTraitsMask WKAL::FontDescription::traitsMask | ( | ) | const |
| void WKAL::FontDescription::setFamily | ( | const FontFamily & | family | ) |
set font family
| [in] | : | font family fd->setFamily(fa); |
| void WKAL::FontDescription::setComputedSize | ( | float | s | ) |
set computed size
| [in] | : | computed size fd->setComputedSize(12.0); |
| void WKAL::FontDescription::setSpecifiedSize | ( | float | s | ) |
set specified size
| [in] | : | specified size fd->setSpecifiedSize(12.0); |
| void WKAL::FontDescription::setItalic | ( | bool | i | ) |
set italic status
| [in] | : | status fd->setItalic(false);
|
| void WKAL::FontDescription::setSmallCaps | ( | bool | c | ) |
set SmallCaps status
| [in] | : | status fd->setSmallCaps(true);
|
| void WKAL::FontDescription::setIsAbsoluteSize | ( | bool | s | ) |
set absolute size status
| [in] | : | status fd->setIsAbsoluteSize(false);
|
| void WKAL::FontDescription::setWeight | ( | FontWeight | w | ) |
set font weight
| [in] | : | font weight fd->setWeight(w); |
| void WKAL::FontDescription::setGenericFamily | ( | GenericFamilyType | genericFamily | ) |
set generic font family description
| [in] | : | generic font family fd->setGenericFamily(gf); |
| void WKAL::FontDescription::setUsePrinterFont | ( | bool | p | ) |
set if you use printer font
| [in] | : | status fd->setUsePrinterFont(true);
|
| void WKAL::FontDescription::setRenderingMode | ( | FontRenderingMode | mode | ) |
set font rendering mode
| [in] | : | font rendering mode fd->setRenderingMode(mode); |
| void WKAL::FontDescription::setKeywordSize | ( | int | s | ) |
set keyword size
| [in] | : | size fd->setKeywordSize(12); |