Home
last modified time | relevance | path

Searched refs:fontMetrics (Results 1 – 12 of 12) sorted by relevance

/external/skqp/src/core/
DSkRemoteGlyphCache.cpp468 SkFontMetrics fontMetrics; in writePendingGlyphs() local
469 fContext->getFontMetrics(&fontMetrics); in writePendingGlyphs()
470 serializer->write<SkFontMetrics>(fontMetrics); in writePendingGlyphs()
643 SkFontMetrics fontMetrics; in readStrikeData() local
644 if (!deserializer.read<SkFontMetrics>(&fontMetrics)) READ_FAILURE in readStrikeData()
665 *client_desc, std::move(scaler), &fontMetrics, in readStrikeData()
DSkStrikeCache.cpp421 SkFontMetrics fontMetrics; in createStrike() local
423 fontMetrics = *maybeMetrics; in createStrike()
425 scaler->getFontMetrics(&fontMetrics); in createStrike()
428 return new Node{this, desc, std::move(scaler), fontMetrics, std::move(pinner)}; in createStrike()
DSkStrike.cpp28 const SkFontMetrics& fontMetrics) in SkStrike() argument
31 , fFontMetrics{fontMetrics}
/external/skia/src/core/
DSkRemoteGlyphCache.cpp399 SkFontMetrics fontMetrics; in writePendingGlyphs() local
400 fContext->getFontMetrics(&fontMetrics); in writePendingGlyphs()
401 serializer->write<SkFontMetrics>(fontMetrics); in writePendingGlyphs()
1009 SkFontMetrics fontMetrics{}; in readStrikeData() local
1011 if (!deserializer.read<SkFontMetrics>(&fontMetrics)) READ_FAILURE in readStrikeData()
1040 *client_desc, std::move(scaler), &fontMetrics, in readStrikeData()
DSkScalerCache.cpp30 const SkFontMetrics* fontMetrics) in SkScalerCache() argument
33 , fFontMetrics{use_or_generate_metrics(fontMetrics, fScalerContext.get())}
/external/cldr/tools/java/org/unicode/cldr/tool/
DGenerateApproximateWidths.java207 private double getTotalWidth(FontMetrics fontMetrics) { in getTotalWidth() argument
208 Rectangle2D rect1 = fontMetrics.getStringBounds(buffer, 0, bufferLen, g); in getTotalWidth()
/external/skia/src/pdf/
DSkPDFFont.cpp187 const SkAdvancedTypefaceMetrics* fontMetrics = SkPDFFont::GetMetrics(face, doc); in GetFontResource() local
188 SkASSERT(fontMetrics); // SkPDFDevice::internalDrawText ensures the typeface is good. in GetFontResource()
190 const SkAdvancedTypefaceMetrics& metrics = *fontMetrics; in GetFontResource()
/external/skqp/src/pdf/
DSkPDFFont.cpp194 const SkAdvancedTypefaceMetrics* fontMetrics = SkPDFFont::GetMetrics(face, doc); in GetFontResource() local
195 SkASSERT(fontMetrics); // SkPDFDevice::internalDrawText ensures the typeface is good. in GetFontResource()
197 const SkAdvancedTypefaceMetrics& metrics = *fontMetrics; in GetFontResource()
/external/skia/tests/
DSerializationTest.cpp470 SkFontMetrics fontMetrics, cloneMetrics; in TestTypefaceSerialization() local
471 font.getMetrics(&fontMetrics); in TestTypefaceSerialization()
473 REPORTER_ASSERT(reporter, fontMetrics == cloneMetrics, in TestTypefaceSerialization()
/external/skia/modules/skparagraph/src/
DTextLine.cpp928 SkFontMetrics fontMetrics; in getMetrics() local
929 run->fFont.getMetrics(&fontMetrics); in getMetrics()
930 StyleMetrics styleMetrics(&style, fontMetrics); in getMetrics()
/external/skqp/tools/fonts/
DSkTestSVGTypeface.cpp53 const SkFontMetrics& fontMetrics, in SkTestSVGTypeface() argument
59 , fFontMetrics(fontMetrics) in SkTestSVGTypeface()
/external/skia/tools/fonts/
DTestSVGTypeface.cpp53 const SkFontMetrics& fontMetrics, in TestSVGTypeface() argument
59 , fFontMetrics(fontMetrics) in TestSVGTypeface()