#include <djv_common.h>
Public Member Functions | |
| FontConfig (const String &inFontName=NullString, size_t inSize=0) | |
| FontConfig (const FontConfig &inFontConfig) | |
| FontConfig & | operator= (const FontConfig &inFontConfig) |
| bool | operator== (const FontConfig &inFontConfig) const |
| bool | operator!= (const FontConfig &inFontConfig) const |
| bool | isValid () const |
Public Attributes | |
| String | fontName |
| size_t | size |
This structure preserves font configuration.
| Celartem::DjVu::FontConfig::FontConfig | ( | const String & | inFontName = NullString, |
|
| size_t | inSize = 0 | |||
| ) | [inline] |
Initialize the instance.
| inFontName | Font name. See fontName. | |
| inSize | Font size in points. |
| Celartem::DjVu::FontConfig::FontConfig | ( | const FontConfig & | inFontConfig | ) | [inline] |
Duplicate a FontConfig instance.
| inFontConfig | An instance to duplicate. |
| bool Celartem::DjVu::FontConfig::isValid | ( | ) | const [inline] |
Determines whether the instance is valid or not.
ture if the instance has valid font-face information; otherwise false. | bool Celartem::DjVu::FontConfig::operator!= | ( | const FontConfig & | inFontConfig | ) | const [inline] |
Compare this instance with another (check inequality).
| inFontConfig | Another FontConfig instance to compare with. |
true if there're any differences between the instances. | FontConfig& Celartem::DjVu::FontConfig::operator= | ( | const FontConfig & | inFontConfig | ) | [inline] |
Duplicate a FontConfig instance.
| inFontConfig | An instance to duplicate. |
| bool Celartem::DjVu::FontConfig::operator== | ( | const FontConfig & | inFontConfig | ) | const [inline] |
Compare this instance with another (check equality).
| inFontConfig | Another FontConfig instance to compare with. |
true if no difference between the instances. Font name; so called font-family.
Please note that fonts on a machine may not be installed on another machine and you had better specify very common font-family name. The following is a list of such very common font-families: -helvetica (Helvetica, Arial, ...) -typewriter (Lucida Console, Consolas, -courier (Courier New, ...) -times (Times New Romain, ...) -gothic (Japanese Gothic Font; MS P Gothic, ...) -mincho (Japanese Mincho Font; MS P Mincho, ...) -default (Platform, OS, Locale dependent but GUI default font)
Referenced by isValid(), operator=(), and operator==().
Font size in points.
1 point is corresponding to 1/72 inch.
Referenced by isValid(), operator=(), and operator==().