FONTAINE
1.0
|
#include <FontFace.h>
Classes | |
struct | compare |
Public Types | |
enum | FAMILY { SERIF, SANS, CURSIVE, FANTASY, MONOSPACE } |
enum | STYLE { NORMAL, ITALIC, OBLIQUE } |
enum | VARIANT { NORMAL_VARIANT, SMALL_CAPS } |
enum | WEIGHT { NORMAL_WEIGHT, BOLD, W100, W200, W300, W400, W500, W600, W700, W800, W900 } |
enum | STROKE { UNMODULATED, SEMIMODULATED, MODULATED } |
enum | NAMEID { NID_COPYRIGHT =0, NID_FONT_FAMILY =1, NID_FONT_SUBFAM =2, NID_UNIQUE_ID =3, NID_FULL_NAME =4, NID_VERSION =5, NID_POSTSCRIPT =6, NID_TRADEMARK =7, NID_VENDOR =8, NID_DESIGNER =9, NID_DESCRIPTION =10, NID_URL_VENDOR =11, NID_URL_DESIGNER =12, NID_LICENSE =13, NID_URL_LICENSE =14, NID_RESERVED =15, NID_PREF_NAME =16, NID_PREF_SUBFAM =17, NID_MAC_FULLNAME =18, NID_SAMPLETEXT =19, NID_FINDFONT_NM =20 } |
Public Member Functions | |
FontFace (FontLibrary &library, const std::string &fileName) | |
~FontFace () | |
bool | hasUnicodeValue (UTF32) const |
std::string | getBasicReport (void) const |
std::string | getOrthographyReport (void) const |
void | setReportOnMissing (bool x) |
void | setReportOnFragmentary (bool x) |
void | setReportOnPartial (bool x) |
void | setReportOnFull (bool x) |
const std::string & | getFileName (void) const |
const std::string & | getCommonName (void) const |
const std::string & | getNativeName (void) const |
const std::string & | getSubFamily (void) const |
std::string | getLicenseReport (void) const |
const std::string & | getCopyright (void) const |
unsigned | getGlyphCount (void) const |
unsigned | getCharacterCount (void) const |
FAMILY | getFamily (void) const |
STYLE | getStyle (void) const |
VARIANT | getVariant (void) const |
WEIGHT | getWeight (void) const |
STROKE | getStroke (void) const |
bool | hasVerticalMetrics (void) const |
bool | isFixedWidth (void) const |
bool | hasFixedSizes (void) const |
void | fillReport (MLR *mlr) |
Private Member Functions | |
UTF8String | _getPlatform3Encoding1String (unsigned length, const FT_Byte *string) const |
UTF8String | _getPlatform1Encoding0String (unsigned length, const FT_Byte *string) const |
UTF8String | _getStringFromTrueTypeFont (FT_SfntName &fontName) const |
unsigned int | _getUnicodeValues (void) |
bool | _checkOrthography (const OrthographyData *pData) |
void | _checkOrthographies (void) |
bool | _checkLicense (const std::string &test, const LicenseData *pData) |
bool | _checkAllKnownLicenses (const std::string &licenseString) |
void | _storeCopyrightSummary (const std::string ©rightString) |
void | _checkLicenses (void) |
Private Attributes | |
FT_Face | _face |
std::string | _fileName |
std::string | _commonName |
std::string | _nativeName |
std::string | _subFamily |
std::string | _copyright |
std::string | _licenseURL |
std::string | _version |
std::string | _vendor |
std::string | _designer |
std::string | _vendorURL |
std::string | _designerURL |
unsigned | _glyphCount |
FAMILY | _genericFamily |
STYLE | _style |
VARIANT | _variant |
WEIGHT | _weight |
STROKE | _stroke |
std::vector< const OrthographyResults * > | _supportedOrthographies |
const LicenseData * | _licenseData |
bool | _hasVerticalMetrics |
bool | _isFixedWidth |
bool | _hasFixedSizes |
std::set< UTF32 > | _unicodeValues |
bool | _reportMissing |
bool | _reportFragmentary |
bool | _reportPartial |
bool | _reportFull |
enum FontFace::FAMILY |
enum FontFace::NAMEID |
enum FontFace::STROKE |
enum FontFace::STYLE |
enum FontFace::VARIANT |
enum FontFace::WEIGHT |
FontFace::FontFace | ( | FontLibrary & | library, |
const std::string & | fileName | ||
) |
References _checkLicenses(), _checkOrthographies(), _commonName, _designer, _designerURL, _face, _fileName, _getPlatform1Encoding0String(), _getPlatform3Encoding1String(), _getUnicodeValues(), _glyphCount, _hasFixedSizes, _hasVerticalMetrics, _isFixedWidth, _nativeName, _reportFragmentary, _reportFull, _reportMissing, _reportPartial, _style, _subFamily, _vendor, _vendorURL, _version, _weight, BOLD, FontLibrary::get(), ITALIC, NID_DESIGNER, NID_FONT_FAMILY, NID_FONT_SUBFAM, NID_URL_DESIGNER, NID_URL_VENDOR, NID_VENDOR, NID_VERSION, NORMAL, and NORMAL_WEIGHT.
FontFace::~FontFace | ( | ) |
References _face.
|
private |
References _checkLicense(), MagentaOpenLicense::pData, MPLUSLicense::pData, GUSTLicense::pData, XFree86License::pData, PublicDomain::pData, GPLWithFontException::pData, AladdinFreePublicLicense::pData, UtopiaLicense::pData, MITLicense::pData, Freeware::pData, BitstreamVeraLicense::pData, LGPL::pData, ArphicPublicLicense::pData, ApacheLicense::pData, IPALicense::pData, GPL::pData, STIXLicense::pData, CC_BY::pData, OpenFontLicense::pData, CC_BY_SA::pData, and CC_ZERO::pData.
Referenced by _checkLicenses().
|
private |
References _licenseData, AladdinFreePublicLicense::pData, and LicenseData::searchKeys.
Referenced by _checkAllKnownLicenses().
|
private |
References _checkAllKnownLicenses(), _face, _getStringFromTrueTypeFont(), _licenseData, _licenseURL, _storeCopyrightSummary(), NID_COPYRIGHT, NID_LICENSE, NID_URL_LICENSE, and UnknownLicense::pData.
Referenced by FontFace().
|
private |
References _checkOrthography(), hasUnicodeValue(), PhagsPa::pData, TaiLe::pData, Carian::pData, NewTaiLue::pData, Miao::pData, Venda::pData, Euro::pData, Kaithi::pData, OlChiki::pData, SylotiNagri::pData, VedicExtensions::pData, Gothic::pData, Bamum::pData, KayahLi::pData, OldSouthArabian::pData, LinearBIdeograms::pData, MeroiticHieroglyphs::pData, EgyptianHieroglyphs::pData, Runic::pData, Yi::pData, ZhuYinFuHao::pData, ChessSymbols::pData, Hangul::pData, Cherokee::pData, Food::pData, Rejang::pData, Hebrew::pData, Ogham::pData, MeroiticCursive::pData, Syriac::pData, Thaana::pData, MeeteiMayak::pData, Saurashtra::pData, Batak::pData, Balinese::pData, Buginese::pData, Sundanese::pData, TaiViet::pData, Thai::pData, MathematicalNumerals::pData, BasicCyrillic::pData, Khmer::pData, Javanese::pData, Jamo::pData, Lepcha::pData, Mongolian::pData, ClaudianLetters::pData, Kana::pData, CanadianSyllabics::pData, Glagolitic::pData, LatinLigatures::pData, Emoticons::pData, Armenian::pData, MendeKikakui::pData, Chakma::pData, Cham::pData, Brahmi::pData, Farsi::pData, Limbu::pData, CypriotSyllabary::pData, Ahom::pData, Astronomy::pData, Georgian::pData, BasicLatin::pData, TaiTham::pData, Romanian::pData, Uighur::pData, Arabic::pData, LinearBSyllabary::pData, Myanmar::pData, MathematicalGreek::pData, ArchaicGreekLetters::pData, WesternEuropean::pData, Kazakh::pData, Devanagari::pData, Pashto::pData, Tibetan::pData, AleutCyrillic::pData, Hanunoo::pData, Coptic::pData, Kharoshthi::pData, Turkish::pData, BasicGreek::pData, AleutLatin::pData, Urdu::pData, Ethiopic::pData, Currencies::pData, Catalan::pData, Polynesian::pData, Kannada::pData, Pinyin::pData, Bengali::pData, Sindhi::pData, PolytonicGreek::pData, IgboOnwu::pData, Osmanya::pData, Lao::pData, Dutch::pData, Afrikaans::pData, Baltic::pData, Tifinagh::pData, Nko::pData, MathematicalLatin::pData, Tamil::pData, Gurmukhi::pData, Sinhala::pData, Gujarati::pData, CentralEuropean::pData, Oriya::pData, IPA::pData, MathematicalOperators::pData, Telugu::pData, Malayalam::pData, Kokuji::pData, Vietnamese::pData, Vai::pData, PanAfricanLatin::pData, Jinmeiyo::pData, HongKongSupplementaryCharacterSet::pData, SouthKoreanHanja::pData, Joyo::pData, TraditionalChinese::pData, and SimplifiedChinese::pData.
Referenced by FontFace().
|
private |
References _supportedOrthographies, hasUnicodeValue(), OrthographyData::key, START_RANGE_PAIR, and OrthographyData::values.
Referenced by _checkOrthographies().
|
private |
References Encoding::macRomanToUTF32().
Referenced by _getStringFromTrueTypeFont(), and FontFace().
|
private |
Referenced by _getStringFromTrueTypeFont(), and FontFace().
|
private |
References _getPlatform1Encoding0String(), and _getPlatform3Encoding1String().
Referenced by _checkLicenses().
|
private |
References _face, and _unicodeValues.
Referenced by FontFace().
|
private |
References _copyright, COPYRIGHT_SUMMARY_STRING_LENGTH, and UTF8String::unicodeSubStringOnWordBoundary().
Referenced by _checkLicenses().
void FontFace::fillReport | ( | MLR * | mlr | ) |
References _commonName, _copyright, _designer, _designerURL, _glyphCount, _hasFixedSizes, _isFixedWidth, _licenseData, _licenseURL, _nativeName, _reportFragmentary, _reportFull, _reportMissing, _reportPartial, _style, _subFamily, _supportedOrthographies, _unicodeValues, _vendor, _vendorURL, _version, _weight, MLR::addKeyValuePair(), BOLD, MLR::end(), MLR::endList(), OrthographyResults::FRAGMENTARY, OrthographyResults::FULL, ITALIC, LicenseData::name, OrthographyResults::PARTIAL, MLR::start(), MLR::startList(), and LicenseData::url.
Referenced by main().
std::string FontFace::getBasicReport | ( | void | ) | const |
References _commonName, _face, _hasFixedSizes, _hasVerticalMetrics, _isFixedWidth, _nativeName, _style, _subFamily, _unicodeValues, _weight, BOLD, and ITALIC.
unsigned FontFace::getCharacterCount | ( | void | ) | const |
References _unicodeValues.
const std::string & FontFace::getCommonName | ( | void | ) | const |
References _commonName.
const std::string & FontFace::getCopyright | ( | void | ) | const |
References _copyright.
FontFace::FAMILY FontFace::getFamily | ( | void | ) | const |
References _genericFamily.
const std::string & FontFace::getFileName | ( | void | ) | const |
References _fileName.
unsigned FontFace::getGlyphCount | ( | void | ) | const |
References _glyphCount.
std::string FontFace::getLicenseReport | ( | void | ) | const |
References _licenseData, LicenseData::name, and LicenseData::url.
const std::string & FontFace::getNativeName | ( | void | ) | const |
References _nativeName.
std::string FontFace::getOrthographyReport | ( | void | ) | const |
FontFace::STROKE FontFace::getStroke | ( | void | ) | const |
References _stroke.
FontFace::STYLE FontFace::getStyle | ( | void | ) | const |
References _style.
const std::string & FontFace::getSubFamily | ( | void | ) | const |
References _subFamily.
FontFace::VARIANT FontFace::getVariant | ( | void | ) | const |
References _variant.
FontFace::WEIGHT FontFace::getWeight | ( | void | ) | const |
References _weight.
bool FontFace::hasFixedSizes | ( | void | ) | const |
References _hasFixedSizes.
bool FontFace::hasUnicodeValue | ( | UTF32 | v | ) | const |
References _unicodeValues.
Referenced by _checkOrthographies(), and _checkOrthography().
bool FontFace::hasVerticalMetrics | ( | void | ) | const |
References _hasVerticalMetrics.
bool FontFace::isFixedWidth | ( | void | ) | const |
References _isFixedWidth.
void FontFace::setReportOnFragmentary | ( | bool | x | ) |
References _reportFragmentary.
Referenced by main().
void FontFace::setReportOnFull | ( | bool | x | ) |
References _reportFull.
Referenced by main().
void FontFace::setReportOnMissing | ( | bool | x | ) |
References _reportMissing.
Referenced by main().
void FontFace::setReportOnPartial | ( | bool | x | ) |
References _reportPartial.
Referenced by main().
|
private |
Referenced by fillReport(), FontFace(), getBasicReport(), getCommonName(), and FontFace::compare::operator()().
|
private |
Referenced by _storeCopyrightSummary(), fillReport(), and getCopyright().
|
private |
Referenced by fillReport(), and FontFace().
|
private |
Referenced by fillReport(), and FontFace().
|
private |
Referenced by _checkLicenses(), _getUnicodeValues(), FontFace(), getBasicReport(), and ~FontFace().
|
private |
Referenced by FontFace(), and getFileName().
|
private |
Referenced by getFamily().
|
private |
Referenced by fillReport(), FontFace(), and getGlyphCount().
|
private |
Referenced by fillReport(), FontFace(), getBasicReport(), and hasFixedSizes().
|
private |
Referenced by FontFace(), getBasicReport(), and hasVerticalMetrics().
|
private |
Referenced by fillReport(), FontFace(), getBasicReport(), and isFixedWidth().
|
private |
Referenced by _checkLicense(), _checkLicenses(), fillReport(), and getLicenseReport().
|
private |
Referenced by _checkLicenses(), and fillReport().
|
private |
Referenced by fillReport(), FontFace(), getBasicReport(), and getNativeName().
|
private |
Referenced by fillReport(), FontFace(), getOrthographyReport(), and setReportOnFragmentary().
|
private |
Referenced by fillReport(), FontFace(), getOrthographyReport(), and setReportOnFull().
|
private |
Referenced by fillReport(), FontFace(), getOrthographyReport(), and setReportOnMissing().
|
private |
Referenced by fillReport(), FontFace(), getOrthographyReport(), and setReportOnPartial().
|
private |
Referenced by getStroke().
|
private |
Referenced by fillReport(), FontFace(), getBasicReport(), and getStyle().
|
private |
Referenced by fillReport(), FontFace(), getBasicReport(), getSubFamily(), and FontFace::compare::operator()().
|
private |
Referenced by _checkOrthography(), fillReport(), and getOrthographyReport().
|
private |
Referenced by _getUnicodeValues(), fillReport(), getBasicReport(), getCharacterCount(), and hasUnicodeValue().
|
private |
Referenced by getVariant().
|
private |
Referenced by fillReport(), and FontFace().
|
private |
Referenced by fillReport(), and FontFace().
|
private |
Referenced by fillReport(), and FontFace().
|
private |
Referenced by fillReport(), FontFace(), getBasicReport(), and getWeight().