Searched refs:fFontMetrics (Results 1 – 15 of 15) sorted by relevance
/third_party/flutter/skia/modules/skparagraph/src/ |
D | Run.h | 68 return SkVector::Make(fAdvance.fX, fFontMetrics.fDescent - fFontMetrics.fAscent); in advance() 71 SkScalar ascent() const { return fFontMetrics.fAscent; } in ascent() 77 return fFontMetrics.fAscent - fFontMetrics.fLeading / 2; in correctAscent() 79 return fFontMetrics.fAscent * fHeightMultiplier * fFont.getSize() / in correctAscent() 80 (fFontMetrics.fDescent - fFontMetrics.fAscent + fFontMetrics.fLeading / 2); in correctAscent() 85 return fFontMetrics.fDescent + fFontMetrics.fLeading / 2; in correctDescent() 87 return fFontMetrics.fDescent * fHeightMultiplier * fFont.getSize() / in correctDescent() 88 (fFontMetrics.fDescent - fFontMetrics.fAscent + fFontMetrics.fLeading / 2); in correctDescent() 93 return fFontMetrics.fAscent; in correctLeading() 95 return fFontMetrics.fLeading * fHeightMultiplier * fFont.getSize() / in correctLeading() [all …]
|
D | Run.cpp | 39 info.fFont.getMetrics(&fFontMetrics); in Run()
|
/third_party/skia/modules/skparagraph/src/ |
D | Run.cpp | 44 info.fFont.getMetrics(&fFontMetrics); in Run() 57 fCorrectAscent = fFontMetrics.fAscent - fFontMetrics.fLeading * 0.5; in calculateMetrics() 58 fCorrectDescent = fFontMetrics.fDescent + fFontMetrics.fLeading * 0.5; in calculateMetrics() 216 fFontMetrics.fLeading = 0; in updateMetrics() 219 fFontMetrics.fAscent = baselineAdjustment - offset; in updateMetrics() 220 fFontMetrics.fDescent = baselineAdjustment + height - offset; in updateMetrics() 224 fFontMetrics.fAscent = baselineAdjustment - height; in updateMetrics() 225 fFontMetrics.fDescent = baselineAdjustment; in updateMetrics() 229 fFontMetrics.fAscent = baselineAdjustment; in updateMetrics() 230 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 | 86 …return SkVector::Make(fAdvance.fX, fFontMetrics.fDescent - fFontMetrics.fAscent + fFontMetrics.fLe… in advance() 89 SkScalar ascent() const { return fFontMetrics.fAscent + fBaselineShift; } in ascent() 90 SkScalar descent() const { return fFontMetrics.fDescent + fBaselineShift; } in descent() 91 SkScalar leading() const { return fFontMetrics.fLeading; } in leading() 195 SkFontMetrics fFontMetrics; variable
|
D | Decorations.h | 28 SkFontMetrics fFontMetrics; variable
|
D | TextLine.cpp | 143 …InternalLineMetrics(run.fFontMetrics.fAscent, run.fFontMetrics.fDescent, run.fFontMetrics.fLeading… in TextLine() 608 if (SkScalarIsFinite(run->fFontMetrics.fAscent)) { in measureTextInsideOneRun() 614 … result.clip = SkRect::MakeXYWH(runOffsetInLine, run->fFontMetrics.fAscent, run->advance().fX, 0); in measureTextInsideOneRun()
|
/third_party/flutter/skia/tools/fonts/ |
D | TestSVGTypeface.cpp | 59 , fFontMetrics(fontMetrics) in TestSVGTypeface() 127 void TestSVGTypeface::getFontMetrics(SkFontMetrics* metrics) const { *metrics = fFontMetrics; } in getFontMetrics() 403 out->writeScalarAsText(fFontMetrics.fXMin); in exportTtxCommon() 406 out->writeScalarAsText(-fFontMetrics.fBottom); in exportTtxCommon() 409 out->writeScalarAsText(fFontMetrics.fXMax); in exportTtxCommon() 412 out->writeScalarAsText(-fFontMetrics.fTop); in exportTtxCommon() 449 out->writeDecAsText(-fFontMetrics.fAscent); in exportTtxCommon() 452 out->writeDecAsText(-fFontMetrics.fDescent); in exportTtxCommon() 455 out->writeDecAsText(fFontMetrics.fLeading); in exportTtxCommon() 461 out->writeScalarAsText(fFontMetrics.fXMax - fFontMetrics.fXMin); in exportTtxCommon() [all …]
|
D | TestSVGTypeface.h | 152 const SkFontMetrics fFontMetrics; variable
|
/third_party/skia/tools/fonts/ |
D | TestSVGTypeface.cpp | 60 , fFontMetrics(fontMetrics) in TestSVGTypeface() 128 void TestSVGTypeface::getFontMetrics(SkFontMetrics* metrics) const { *metrics = fFontMetrics; } in getFontMetrics() 406 out->writeScalarAsText(fFontMetrics.fXMin); in exportTtxCommon() 409 out->writeScalarAsText(-fFontMetrics.fBottom); in exportTtxCommon() 412 out->writeScalarAsText(fFontMetrics.fXMax); in exportTtxCommon() 415 out->writeScalarAsText(-fFontMetrics.fTop); in exportTtxCommon() 452 out->writeDecAsText(-fFontMetrics.fAscent); in exportTtxCommon() 455 out->writeDecAsText(-fFontMetrics.fDescent); in exportTtxCommon() 458 out->writeDecAsText(fFontMetrics.fLeading); in exportTtxCommon() 464 out->writeScalarAsText(fFontMetrics.fXMax - fFontMetrics.fXMin); in exportTtxCommon() [all …]
|
D | TestSVGTypeface.h | 157 const SkFontMetrics fFontMetrics; variable
|
/third_party/flutter/skia/src/core/ |
D | SkStrike.h | 93 return fFontMetrics; in getFontMetrics() 190 SkFontMetrics fFontMetrics; variable
|
D | SkStrike.cpp | 25 , fFontMetrics{fontMetrics}
|
/third_party/skia/src/core/ |
D | SkScalerCache.h | 79 return fFontMetrics; in getFontMetrics() 141 const SkFontMetrics fFontMetrics; variable
|
D | SkScalerCache.cpp | 31 , fFontMetrics{use_or_generate_metrics(fontMetrics, fScalerContext.get())}
|