Lines Matching defs:textMetric
155 TEXTMETRIC textMetric;
156 if (0 == GetTextMetrics(hdc, &textMetric)) {
157 textMetric.tmPitchAndFamily = TMPF_VECTOR;
159 GetTextMetrics(hdc, &textMetric);
162 if (!(textMetric.tmPitchAndFamily & TMPF_VECTOR)) {
163 return textMetric.tmLastChar;
191 TEXTMETRIC textMetric;
192 if (0 == GetTextMetrics(hdc, &textMetric)) {
193 textMetric.tmPitchAndFamily = TMPF_VECTOR;
195 GetTextMetrics(hdc, &textMetric);
198 if (!(textMetric.tmPitchAndFamily & TMPF_VECTOR)) {
199 return textMetric.tmMaxCharWidth;
243 TEXTMETRIC textMetric;
244 if (0 == GetTextMetrics(hdc, &textMetric)) {
246 if (0 == GetTextMetrics(hdc, &textMetric)) {
247 textMetric.tmPitchAndFamily = TMPF_TRUETYPE;
252 this->setIsFixedPitch((textMetric.tmPitchAndFamily & TMPF_FIXED_PITCH) == 0);
253 this->setFontStyle(SkFontStyle(textMetric.tmWeight, style.width(), style.slant()));
258 fCanBeLCD = !((textMetric.tmPitchAndFamily & TMPF_VECTOR) &&
259 (textMetric.tmPitchAndFamily & TMPF_DEVICE));