Searched refs:emSize (Results 1 – 6 of 6) sorted by relevance
/third_party/skia/tools/fonts/ |
D | create_test_font.cpp | 91 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 135 output_points(&pts[0], emSize, 1, ptsOut); in output_path_data() 138 output_points(&pts[1], emSize, 1, ptsOut); in output_path_data() [all …]
|
/third_party/skia/src/pdf/ |
D | SkPDFMakeCIDGlyphWidthsArray.cpp | 28 SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument 29 if (emSize == 1000) { in from_font_units() 32 return scaled * 1000 / emSize; in from_font_units() 36 SkScalar scale_from_font_units(int16_t val, uint16_t emSize) { in scale_from_font_units() argument 37 return from_font_units(SkIntToScalar(val), emSize); in scale_from_font_units() 104 int emSize; in SkPDFMakeCIDGlyphWidthsArray() local 105 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(typeface, &emSize); in SkPDFMakeCIDGlyphWidthsArray() 124 *defaultAdvance = scale_from_font_units(modeAdvance, emSize); in SkPDFMakeCIDGlyphWidthsArray() 151 result->appendScalar(scale_from_font_units(advance, emSize)); in SkPDFMakeCIDGlyphWidthsArray() 160 advanceArray->appendScalar(scale_from_font_units(advance, emSize)); in SkPDFMakeCIDGlyphWidthsArray() [all …]
|
D | SkPDFFont.cpp | 63 inline SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument 64 return emSize == 1000 ? scaled : scaled * 1000 / emSize; in from_font_units() 67 inline SkScalar scaleFromFontUnits(int16_t val, uint16_t emSize) { in scaleFromFontUnits() argument 68 return from_font_units(SkIntToScalar(val), emSize); in scaleFromFontUnits() 241 uint16_t emSize, in PopulateCommonFontDescriptor() argument 246 scaleFromFontUnits(metrics.fAscent, emSize)); in PopulateCommonFontDescriptor() 248 scaleFromFontUnits(metrics.fDescent, emSize)); in PopulateCommonFontDescriptor() 250 scaleFromFontUnits(metrics.fStemV, emSize)); in PopulateCommonFontDescriptor() 252 scaleFromFontUnits(metrics.fCapHeight, emSize)); in PopulateCommonFontDescriptor() 255 SkPDFMakeArray(scaleFromFontUnits(metrics.fBBox.left(), emSize), in PopulateCommonFontDescriptor() [all …]
|
D | SkPDFType1Font.cpp | 223 inline static SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument 224 return emSize == 1000 ? scaled : scaled * 1000 / emSize; in from_font_units() 231 uint16_t emSize = SkToU16(typeface->getUnitsPerEm()); in make_type1_font_descriptor() local 233 SkPDFFont::PopulateCommonFontDescriptor(&descriptor, *info, emSize, 0); in make_type1_font_descriptor() 302 int emSize; in SkPDFEmitType1Font() local 311 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &emSize); in SkPDFEmitType1Font() 315 widths->appendScalar(from_font_units(glyphs[i]->advanceX(), SkToU16(emSize))); in SkPDFEmitType1Font()
|
D | SkPDFFont.h | 105 uint16_t emSize,
|
D | SkPDFDevice.cpp | 846 int emSize; in internalDrawGlyphRun() local 847 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &emSize); in internalDrawGlyphRun() 850 SkScalar advanceScale = textSize * glyphRunFont.getScaleX() / emSize; in internalDrawGlyphRun() 853 SkScalar textScaleY = textSize / emSize; in internalDrawGlyphRun()
|