Changeset View
Changeset View
Standalone View
Standalone View
core/fontinfo.cpp
Show All 21 Lines | 21 | FontInfoPrivate() | |||
---|---|---|---|---|---|
22 | : type( FontInfo::Unknown ), embedType( FontInfo::NotEmbedded ), | 22 | : type( FontInfo::Unknown ), embedType( FontInfo::NotEmbedded ), | ||
23 | canBeExtracted( false ) | 23 | canBeExtracted( false ) | ||
24 | { | 24 | { | ||
25 | } | 25 | } | ||
26 | 26 | | |||
27 | bool operator==( const FontInfoPrivate &rhs ) const | 27 | bool operator==( const FontInfoPrivate &rhs ) const | ||
28 | { | 28 | { | ||
29 | return name == rhs.name && | 29 | return name == rhs.name && | ||
30 | substituteName == rhs.substituteName && | ||||
30 | type == rhs.type && | 31 | type == rhs.type && | ||
31 | embedType == rhs.embedType && | 32 | embedType == rhs.embedType && | ||
32 | file == rhs.file && | 33 | file == rhs.file && | ||
33 | canBeExtracted == rhs.canBeExtracted; | 34 | canBeExtracted == rhs.canBeExtracted; | ||
34 | } | 35 | } | ||
35 | 36 | | |||
36 | QString name; | 37 | QString name; | ||
38 | QString substituteName; | ||||
37 | FontInfo::FontType type; | 39 | FontInfo::FontType type; | ||
38 | FontInfo::EmbedType embedType; | 40 | FontInfo::EmbedType embedType; | ||
39 | bool canBeExtracted; | 41 | bool canBeExtracted; | ||
40 | QString file; | 42 | QString file; | ||
41 | QVariant nativeId; | 43 | QVariant nativeId; | ||
42 | }; | 44 | }; | ||
43 | 45 | | |||
44 | 46 | | |||
Show All 16 Lines | 62 | { | |||
61 | return d->name; | 63 | return d->name; | ||
62 | } | 64 | } | ||
63 | 65 | | |||
64 | void FontInfo::setName( const QString& name ) | 66 | void FontInfo::setName( const QString& name ) | ||
65 | { | 67 | { | ||
66 | d->name = name; | 68 | d->name = name; | ||
67 | } | 69 | } | ||
68 | 70 | | |||
71 | QString FontInfo::substituteName() const | ||||
72 | { | ||||
73 | return d->substituteName; | ||||
74 | } | ||||
75 | | ||||
76 | void FontInfo::setSubstituteName( const QString& substituteName ) | ||||
77 | { | ||||
78 | d->substituteName = substituteName; | ||||
79 | } | ||||
80 | | ||||
69 | FontInfo::FontType FontInfo::type() const | 81 | FontInfo::FontType FontInfo::type() const | ||
70 | { | 82 | { | ||
71 | return d->type; | 83 | return d->type; | ||
72 | } | 84 | } | ||
73 | 85 | | |||
74 | void FontInfo::setType( FontInfo::FontType type ) | 86 | void FontInfo::setType( FontInfo::FontType type ) | ||
75 | { | 87 | { | ||
76 | d->type = type; | 88 | d->type = type; | ||
▲ Show 20 Lines • Show All 61 Lines • Show Last 20 Lines |