Searched refs:fFontMetrics (Results 1 – 13 of 13) sorted by relevance
/external/skia/modules/skparagraph/src/ |
D | Run.cpp | 42 info.fFont.getMetrics(&fFontMetrics); in Run() 55 fCorrectAscent = fFontMetrics.fAscent - fFontMetrics.fLeading * 0.5; in calculateMetrics() 56 fCorrectDescent = fFontMetrics.fDescent + fFontMetrics.fLeading * 0.5; in calculateMetrics() 211 fFontMetrics.fLeading = 0; in updateMetrics() 214 fFontMetrics.fAscent = baselineAdjustment - offset; in updateMetrics() 215 fFontMetrics.fDescent = baselineAdjustment + height - offset; in updateMetrics() 219 fFontMetrics.fAscent = baselineAdjustment - height; in updateMetrics() 220 fFontMetrics.fDescent = baselineAdjustment; in updateMetrics() 224 fFontMetrics.fAscent = baselineAdjustment; in updateMetrics() 225 fFontMetrics.fDescent = baselineAdjustment + height; in updateMetrics() [all …]
|
D | Decorations.cpp | 137 textStyle.getFontMetrics(&fFontMetrics); in calculateThickness() 141 if ((fFontMetrics.fFlags & SkFontMetrics::FontMetricsFlags::kUnderlineThicknessIsValid_Flag) && in calculateThickness() 142 fFontMetrics.fUnderlineThickness > 0) { in calculateThickness() 143 fThickness = fFontMetrics.fUnderlineThickness; in calculateThickness() 147 … if ((fFontMetrics.fFlags & SkFontMetrics::FontMetricsFlags::kStrikeoutThicknessIsValid_Flag) && in calculateThickness() 148 fFontMetrics.fStrikeoutThickness > 0) { in calculateThickness() 149 fThickness = fFontMetrics.fStrikeoutThickness; in calculateThickness() 159 … if ((fFontMetrics.fFlags & SkFontMetrics::FontMetricsFlags::kUnderlinePositionIsValid_Flag) && in calculatePosition() 160 fFontMetrics.fUnderlinePosition > 0) { in calculatePosition() 161 fPosition = fFontMetrics.fUnderlinePosition; in calculatePosition() [all …]
|
D | Run.h | 85 …return SkVector::Make(fAdvance.fX, fFontMetrics.fDescent - fFontMetrics.fAscent + fFontMetrics.fLe… in advance() 88 SkScalar ascent() const { return fFontMetrics.fAscent; } in ascent() 89 SkScalar descent() const { return fFontMetrics.fDescent; } in descent() 90 SkScalar leading() const { return fFontMetrics.fLeading; } in leading() 193 SkFontMetrics fFontMetrics; variable
|
D | Decorations.h | 28 SkFontMetrics fFontMetrics; variable
|
D | TextLine.cpp | 141 …InternalLineMetrics(run.fFontMetrics.fAscent, run.fFontMetrics.fDescent, run.fFontMetrics.fLeading… in TextLine() 603 if (SkScalarIsFinite(run->fFontMetrics.fAscent)) { in measureTextInsideOneRun() 609 … result.clip = SkRect::MakeXYWH(runOffsetInLine, run->fFontMetrics.fAscent, run->advance().fX, 0); in measureTextInsideOneRun()
|
/external/skqp/tools/fonts/ |
D | SkTestSVGTypeface.cpp | 59 , fFontMetrics(fontMetrics) in SkTestSVGTypeface() 100 *metrics = fFontMetrics; in getFontMetrics() 340 out->writeScalarAsText(fFontMetrics.fXMin); in exportTtxCommon() 343 out->writeScalarAsText(-fFontMetrics.fBottom); in exportTtxCommon() 346 out->writeScalarAsText(fFontMetrics.fXMax); in exportTtxCommon() 349 out->writeScalarAsText(-fFontMetrics.fTop); in exportTtxCommon() 387 out->writeDecAsText(-fFontMetrics.fAscent); in exportTtxCommon() 390 out->writeDecAsText(-fFontMetrics.fDescent); in exportTtxCommon() 393 out->writeDecAsText(fFontMetrics.fLeading); in exportTtxCommon() 399 out->writeScalarAsText(fFontMetrics.fXMax - fFontMetrics.fXMin); in exportTtxCommon() [all …]
|
D | SkTestSVGTypeface.h | 139 const SkFontMetrics fFontMetrics; variable
|
/external/skia/tools/fonts/ |
D | TestSVGTypeface.cpp | 59 , fFontMetrics(fontMetrics) in TestSVGTypeface() 127 void TestSVGTypeface::getFontMetrics(SkFontMetrics* metrics) const { *metrics = fFontMetrics; } in getFontMetrics() 405 out->writeScalarAsText(fFontMetrics.fXMin); in exportTtxCommon() 408 out->writeScalarAsText(-fFontMetrics.fBottom); in exportTtxCommon() 411 out->writeScalarAsText(fFontMetrics.fXMax); in exportTtxCommon() 414 out->writeScalarAsText(-fFontMetrics.fTop); in exportTtxCommon() 451 out->writeDecAsText(-fFontMetrics.fAscent); in exportTtxCommon() 454 out->writeDecAsText(-fFontMetrics.fDescent); in exportTtxCommon() 457 out->writeDecAsText(fFontMetrics.fLeading); in exportTtxCommon() 463 out->writeScalarAsText(fFontMetrics.fXMax - fFontMetrics.fXMin); in exportTtxCommon() [all …]
|
D | TestSVGTypeface.h | 153 const SkFontMetrics fFontMetrics; variable
|
/external/skqp/src/core/ |
D | SkStrike.h | 115 return fFontMetrics; in getFontMetrics() 205 SkFontMetrics fFontMetrics; variable
|
D | SkStrike.cpp | 31 , fFontMetrics{fontMetrics}
|
/external/skia/src/core/ |
D | SkScalerCache.h | 80 return fFontMetrics; in getFontMetrics() 145 const SkFontMetrics fFontMetrics; variable
|
D | SkScalerCache.cpp | 33 , fFontMetrics{use_or_generate_metrics(fontMetrics, fScalerContext.get())}
|