/third_party/flutter/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 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 …]
|
/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/flutter/skia/src/pdf/ |
D | SkPDFMakeCIDGlyphWidthsArray.cpp | 47 static SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument 48 if (emSize == 1000) { in from_font_units() 51 return scaled * 1000 / emSize; in from_font_units() 55 static SkScalar scale_from_font_units(int16_t val, uint16_t emSize) { in scale_from_font_units() argument 56 return from_font_units(SkIntToScalar(val), emSize); in scale_from_font_units() 115 uint16_t emSize, in compose_advance_data() argument 121 *defaultAdvance = scale_from_font_units(range.fAdvance[0], emSize); in compose_advance_data() 127 advanceArray->appendScalar(scale_from_font_units(range.fAdvance[j], emSize)); in compose_advance_data() 136 result->appendScalar(scale_from_font_units(range.fAdvance[0], emSize)); in compose_advance_data() 163 int emSize; in SkPDFMakeCIDGlyphWidthsArray() local [all …]
|
D | SkPDFFont.cpp | 64 inline SkScalar from_font_units(SkScalar scaled, uint16_t emSize) { in from_font_units() argument 65 return emSize == 1000 ? scaled : scaled * 1000 / emSize; in from_font_units() 68 inline SkScalar scaleFromFontUnits(int16_t val, uint16_t emSize) { in scaleFromFontUnits() argument 69 return from_font_units(SkIntToScalar(val), emSize); in scaleFromFontUnits() 238 uint16_t emSize, in PopulateCommonFontDescriptor() argument 243 scaleFromFontUnits(metrics.fAscent, emSize)); in PopulateCommonFontDescriptor() 245 scaleFromFontUnits(metrics.fDescent, emSize)); in PopulateCommonFontDescriptor() 247 scaleFromFontUnits(metrics.fStemV, emSize)); in PopulateCommonFontDescriptor() 249 scaleFromFontUnits(metrics.fCapHeight, emSize)); in PopulateCommonFontDescriptor() 252 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 | 107 uint16_t emSize,
|
D | SkPDFDevice.cpp | 822 int emSize; in internalDrawGlyphRun() local 823 SkStrikeSpec strikeSpec = SkStrikeSpec::MakePDFVector(*typeface, &emSize); in internalDrawGlyphRun() 826 SkScalar advanceScale = textSize * glyphRunFont.getScaleX() / emSize; in internalDrawGlyphRun() 829 SkScalar textScaleY = textSize / emSize; in internalDrawGlyphRun()
|
/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()
|
/third_party/mingw-w64/mingw-w64-headers/include/ |
D | dwrite_3.h | 117 FLOAT emSize, in DECLARE_INTERFACE_() 127 FLOAT emSize, in DECLARE_INTERFACE_() 134 FLOAT emSize, in DECLARE_INTERFACE_() 140 FLOAT emSize, in DECLARE_INTERFACE_() 272 FLOAT emSize, in DECLARE_INTERFACE_() 282 FLOAT emSize, in DECLARE_INTERFACE_() 289 FLOAT emSize, in DECLARE_INTERFACE_() 295 FLOAT emSize, in DECLARE_INTERFACE_() 431 FLOAT emSize, in DECLARE_INTERFACE_() 441 FLOAT emSize, in DECLARE_INTERFACE_() [all …]
|
D | dwrite_2.h | 417 FLOAT emSize, in DECLARE_INTERFACE_() 427 FLOAT emSize, in DECLARE_INTERFACE_() 434 FLOAT emSize, in DECLARE_INTERFACE_() 440 FLOAT emSize, in DECLARE_INTERFACE_()
|
D | dwrite.h | 985 FLOAT emSize, in DECLARE_INTERFACE_() 995 FLOAT emSize, in DECLARE_INTERFACE_() 1002 FLOAT emSize, in DECLARE_INTERFACE_() 1009 FLOAT emSize, in DECLARE_INTERFACE_() 1026 …tGdiCompatibleMetrics(This,emSize,pixelsPerDip,transform,fontFaceMetrics) (This)->lpVtbl->GetGdiCo… argument 1027 …s,emSize,pixelsPerDip,transform,useGdiNatural,glyphIndices,glyphCount,glyphMetrics,isSideways) (Th… argument 1030 …utline(This,emSize,glyphIndices,glyphOffsets,glyphCount,isSideways,isRightToLeft,geometrySink) (Th… argument 1033 …deringMode(This,emSize,pixelsPerDip,measuringMode,renderingParams,renderingMode) (This)->lpVtbl->G… argument
|
D | dwrite_1.h | 284 FLOAT emSize, in DECLARE_INTERFACE_() 294 FLOAT emSize, in DECLARE_INTERFACE_() 301 FLOAT emSize, in DECLARE_INTERFACE_() 308 FLOAT emSize, in DECLARE_INTERFACE_()
|
D | prntfont.h | 148 SHORT emSize; member
|
/third_party/mingw-w64/mingw-w64-headers/include/gdiplus/ |
D | gdipluspath.h | 311 const FontFamily *family, INT style, REAL emSize, in AddString() argument 318 style, emSize, &layoutRect, in AddString() 322 const FontFamily *family, INT style, REAL emSize, in AddString() argument 329 style, emSize, &layoutRect, in AddString() 333 const FontFamily *family, INT style, REAL emSize, in AddString() argument 339 style, emSize, &layoutRect, in AddString() 343 const FontFamily *family, INT style, REAL emSize, in AddString() argument 349 style, emSize, &layoutRect, in AddString()
|
D | gdiplusheaders.h | 333 Font(const FontFamily *family, REAL emSize, 340 Font(const WCHAR *familyName, REAL emSize,
|
D | gdiplusimpl.h | 745 REAL emSize, INT style, Unit unit): in Font() argument 750 emSize, style, unit, &nativeFont); in Font() 786 __inline__ Font::Font(const WCHAR *familyName, REAL emSize, INT style, in Font() argument 798 nativeFamily, emSize, style, unit, &nativeFont); in Font()
|