Lines 55-60
Link Here
|
55 |
unsigned mbOutline : 1; // Outline Flag |
55 |
unsigned mbOutline : 1; // Outline Flag |
56 |
unsigned mbRTL : 1; // RTL Flag |
56 |
unsigned mbRTL : 1; // RTL Flag |
57 |
unsigned mbBiDiStrong : 1; // BiDi Flag |
57 |
unsigned mbBiDiStrong : 1; // BiDi Flag |
|
|
58 |
unsigned mbMonospaced : 1; |
58 |
|
59 |
|
59 |
ImpFontAttribute( |
60 |
ImpFontAttribute( |
60 |
const String& rFamilyName, |
61 |
const String& rFamilyName, |
Lines 63-68
Link Here
|
63 |
bool bSymbol, |
64 |
bool bSymbol, |
64 |
bool bVertical, |
65 |
bool bVertical, |
65 |
bool bItalic, |
66 |
bool bItalic, |
|
|
67 |
bool bMonospaced, |
66 |
bool bOutline, |
68 |
bool bOutline, |
67 |
bool bRTL, |
69 |
bool bRTL, |
68 |
bool bBiDiStrong) |
70 |
bool bBiDiStrong) |
Lines 75-81
Link Here
|
75 |
mbItalic(bItalic), |
77 |
mbItalic(bItalic), |
76 |
mbOutline(bOutline), |
78 |
mbOutline(bOutline), |
77 |
mbRTL(bRTL), |
79 |
mbRTL(bRTL), |
78 |
mbBiDiStrong(bBiDiStrong) |
80 |
mbBiDiStrong(bBiDiStrong), |
|
|
81 |
mbMonospaced(bMonospaced) |
79 |
{ |
82 |
{ |
80 |
} |
83 |
} |
81 |
|
84 |
|
Lines 89-94
Link Here
|
89 |
bool getOutline() const { return mbOutline; } |
92 |
bool getOutline() const { return mbOutline; } |
90 |
bool getRTL() const { return mbRTL; } |
93 |
bool getRTL() const { return mbRTL; } |
91 |
bool getBiDiStrong() const { return mbBiDiStrong; } |
94 |
bool getBiDiStrong() const { return mbBiDiStrong; } |
|
|
95 |
bool getMonospaced() const { return mbMonospaced; } |
92 |
|
96 |
|
93 |
bool operator==(const ImpFontAttribute& rCompare) const |
97 |
bool operator==(const ImpFontAttribute& rCompare) const |
94 |
{ |
98 |
{ |
Lines 100-106
Link Here
|
100 |
&& getItalic() == rCompare.getItalic() |
104 |
&& getItalic() == rCompare.getItalic() |
101 |
&& getOutline() == rCompare.getOutline() |
105 |
&& getOutline() == rCompare.getOutline() |
102 |
&& getRTL() == rCompare.getRTL() |
106 |
&& getRTL() == rCompare.getRTL() |
103 |
&& getBiDiStrong() == rCompare.getBiDiStrong()); |
107 |
&& getBiDiStrong() == rCompare.getBiDiStrong() |
|
|
108 |
&& getMonospaced() == rCompare.getMonospaced()); |
104 |
} |
109 |
} |
105 |
|
110 |
|
106 |
static ImpFontAttribute* get_global_default() |
111 |
static ImpFontAttribute* get_global_default() |
Lines 112-118
Link Here
|
112 |
pDefault = new ImpFontAttribute( |
117 |
pDefault = new ImpFontAttribute( |
113 |
String(), String(), |
118 |
String(), String(), |
114 |
0, |
119 |
0, |
115 |
false, false, false, false, false, false); |
120 |
false, false, false, false, false, false, false); |
116 |
|
121 |
|
117 |
// never delete; start with RefCount 1, not 0 |
122 |
// never delete; start with RefCount 1, not 0 |
118 |
pDefault->mnRefCount++; |
123 |
pDefault->mnRefCount++; |
Lines 129-139
Link Here
|
129 |
bool bSymbol, |
134 |
bool bSymbol, |
130 |
bool bVertical, |
135 |
bool bVertical, |
131 |
bool bItalic, |
136 |
bool bItalic, |
|
|
137 |
bool bMonospaced, |
132 |
bool bOutline, |
138 |
bool bOutline, |
133 |
bool bRTL, |
139 |
bool bRTL, |
134 |
bool bBiDiStrong) |
140 |
bool bBiDiStrong) |
135 |
: mpFontAttribute(new ImpFontAttribute( |
141 |
: mpFontAttribute(new ImpFontAttribute( |
136 |
rFamilyName, rStyleName, nWeight, bSymbol, bVertical, bItalic, bOutline, bRTL, bBiDiStrong)) |
142 |
rFamilyName, rStyleName, nWeight, bSymbol, bVertical, bItalic, bMonospaced, bOutline, bRTL, bBiDiStrong)) |
137 |
{ |
143 |
{ |
138 |
} |
144 |
} |
139 |
|
145 |
|
Lines 246-251
Link Here
|
246 |
return mpFontAttribute->getBiDiStrong(); |
252 |
return mpFontAttribute->getBiDiStrong(); |
247 |
} |
253 |
} |
248 |
|
254 |
|
|
|
255 |
bool FontAttribute::getMonospaced() const |
256 |
{ |
257 |
return mpFontAttribute->getMonospaced(); |
258 |
} |
259 |
|
260 |
|
249 |
} // end of namespace attribute |
261 |
} // end of namespace attribute |
250 |
} // end of namespace drawinglayer |
262 |
} // end of namespace drawinglayer |
251 |
|
263 |
|