Home
last modified time | relevance | path

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

/external/skia/modules/skparagraph/src/
DTextLine.cpp379 SkFontMetrics fontMetrics; in paintDecorations() local
382 combined.getFontMetrics(&fontMetrics); in paintDecorations()
384 if ((fontMetrics.fFlags & SkFontMetrics::FontMetricsFlags::kUnderlineThicknessIsValid_Flag) && in paintDecorations()
385 fontMetrics.fUnderlineThickness > 0) { in paintDecorations()
386 thickness = fontMetrics.fUnderlineThickness; in paintDecorations()
401 … if ((fontMetrics.fFlags & SkFontMetrics::FontMetricsFlags::kUnderlinePositionIsValid_Flag) && in paintDecorations()
402 fontMetrics.fUnderlinePosition > 0) { in paintDecorations()
403 position = fontMetrics.fUnderlinePosition; in paintDecorations()
413 … if ((fontMetrics.fFlags & SkFontMetrics::FontMetricsFlags::kStrikeoutThicknessIsValid_Flag) && in paintDecorations()
414 fontMetrics.fStrikeoutThickness > 0) { in paintDecorations()
[all …]
/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.cpp678 SkFontMetrics fontMetrics; in writePendingGlyphs() local
679 fContext->getFontMetrics(&fontMetrics); in writePendingGlyphs()
680 serializer->write<SkFontMetrics>(fontMetrics); in writePendingGlyphs()
929 SkFontMetrics fontMetrics{}; in readStrikeData() local
931 if (!deserializer.read<SkFontMetrics>(&fontMetrics)) READ_FAILURE in readStrikeData()
957 *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.java206 private double getTotalWidth(FontMetrics fontMetrics) { in getTotalWidth() argument
207 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/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()