Home
last modified time | relevance | path

Searched refs:emSize (Results 1 – 11 of 11) sorted by relevance

/external/skia/tools/fonts/
Dcreate_test_font.cpp91 static void output_fixed(SkScalar num, int emSize, SkString* out) { in output_fixed() argument
92 int hex = (int) (num * 65536 / emSize); in output_fixed()
97 static void output_scalar(SkScalar num, int emSize, SkString* out) { in output_scalar() argument
98 num /= emSize; in output_scalar()
116 static int output_points(const SkPoint* pts, int emSize, int count, SkString* ptsOut) { in output_points() argument
118 output_scalar(pts[index].fX, emSize, ptsOut); in output_points()
119 output_scalar(pts[index].fY, emSize, ptsOut); in output_points()
125 int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, in output_path_data() argument
138 output_points(&pts[0], emSize, 1, ptsOut); in output_path_data()
141 output_points(&pts[1], emSize, 1, ptsOut); in output_path_data()
[all …]
/external/skqp/tools/fonts/
Dcreate_test_font.cpp91 static void output_fixed(SkScalar num, int emSize, SkString* out) { in output_fixed() argument
92 int hex = (int) (num * 65536 / emSize); in output_fixed()
97 static void output_scalar(SkScalar num, int emSize, SkString* out) { in output_scalar() argument
98 num /= emSize; in output_scalar()
116 static int output_points(const SkPoint* pts, int emSize, int count, SkString* ptsOut) { in output_points() argument
118 output_scalar(pts[index].fX, emSize, ptsOut); in output_points()
119 output_scalar(pts[index].fY, emSize, ptsOut); in output_points()
125 int emSize, SkString* ptsOut, SkTDArray<SkPath::Verb>* verbs, in output_path_data() argument
138 output_points(&pts[0], emSize, 1, ptsOut); in output_path_data()
141 output_points(&pts[1], emSize, 1, ptsOut); in output_path_data()
[all …]
/external/skqp/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp46 static SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument
47 if (emSize == 1000) { in from_font_units()
50 return scaled * 1000 / emSize; in from_font_units()
54 static SkScalar scale_from_font_units(int16_t val, uint16_t emSize) { in scale_from_font_units() argument
55 return from_font_units(SkIntToScalar(val), emSize); in scale_from_font_units()
114 uint16_t emSize, in compose_advance_data() argument
127 scale_from_font_units(range.fAdvance[j], emSize)); in compose_advance_data()
137 scale_from_font_units(range.fAdvance[0], emSize)); in compose_advance_data()
148 uint16_t emSize, in SkPDFMakeCIDGlyphWidthsArray() argument
207 compose_advance_data(curRange, emSize, defaultAdvance, result.get()); in SkPDFMakeCIDGlyphWidthsArray()
[all …]
DSkPDFFont.cpp59 SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument
60 if (emSize == 1000) { in from_font_units()
63 return scaled * 1000 / emSize; in from_font_units()
67 SkScalar scaleFromFontUnits(int16_t val, uint16_t emSize) { in scaleFromFontUnits() argument
68 return from_font_units(SkIntToScalar(val), emSize); in scaleFromFontUnits()
243 uint16_t emSize, in add_common_font_descriptor_entries() argument
248 scaleFromFontUnits(metrics.fAscent, emSize)); in add_common_font_descriptor_entries()
250 scaleFromFontUnits(metrics.fDescent, emSize)); in add_common_font_descriptor_entries()
252 scaleFromFontUnits(metrics.fStemV, emSize)); in add_common_font_descriptor_entries()
254 scaleFromFontUnits(metrics.fCapHeight, emSize)); in add_common_font_descriptor_entries()
[all …]
DSkPDFMakeCIDGlyphWidthsArray.h20 uint16_t emSize,
DSkPDFDevice.cpp1103 int emSize; in internalDrawGlyphRun() local
1104 auto glyphCache = SkPDFFont::MakeVectorCache(typeface, &emSize); in internalDrawGlyphRun()
1107 SkScalar advanceScale = textSize * glyphRunFont.getScaleX() / emSize; in internalDrawGlyphRun()
1110 SkScalar textScaleY = textSize / emSize; in internalDrawGlyphRun()
/external/skia/src/pdf/
DSkPDFMakeCIDGlyphWidthsArray.cpp46 static SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument
47 if (emSize == 1000) { in from_font_units()
50 return scaled * 1000 / emSize; in from_font_units()
54 static SkScalar scale_from_font_units(int16_t val, uint16_t emSize) { in scale_from_font_units() argument
55 return from_font_units(SkIntToScalar(val), emSize); in scale_from_font_units()
114 uint16_t emSize, in compose_advance_data() argument
127 scale_from_font_units(range.fAdvance[j], emSize)); in compose_advance_data()
137 scale_from_font_units(range.fAdvance[0], emSize)); in compose_advance_data()
148 uint16_t emSize, in SkPDFMakeCIDGlyphWidthsArray() argument
207 compose_advance_data(curRange, emSize, defaultAdvance, result.get()); in SkPDFMakeCIDGlyphWidthsArray()
[all …]
DSkPDFFont.cpp60 SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument
61 if (emSize == 1000) { in from_font_units()
64 return scaled * 1000 / emSize; in from_font_units()
68 SkScalar scaleFromFontUnits(int16_t val, uint16_t emSize) { in scaleFromFontUnits() argument
69 return from_font_units(SkIntToScalar(val), emSize); in scaleFromFontUnits()
244 uint16_t emSize, in add_common_font_descriptor_entries() argument
249 scaleFromFontUnits(metrics.fAscent, emSize)); in add_common_font_descriptor_entries()
251 scaleFromFontUnits(metrics.fDescent, emSize)); in add_common_font_descriptor_entries()
253 scaleFromFontUnits(metrics.fStemV, emSize)); in add_common_font_descriptor_entries()
255 scaleFromFontUnits(metrics.fCapHeight, emSize)); in add_common_font_descriptor_entries()
[all …]
DSkPDFMakeCIDGlyphWidthsArray.h20 uint16_t emSize,
DSkPDFDevice.cpp1090 int emSize; in internalDrawGlyphRun() local
1091 auto glyphCache = SkPDFFont::MakeVectorCache(typeface, &emSize); in internalDrawGlyphRun()
1094 SkScalar advanceScale = textSize * glyphRunFont.getScaleX() / emSize; in internalDrawGlyphRun()
1097 SkScalar textScaleY = textSize / emSize; in internalDrawGlyphRun()
/external/pdfium/core/fxge/win32/
Dfx_win32_gdipext.cpp418 REAL emSize,