8#ifndef SkFontMetrics_DEFINED
9#define SkFontMetrics_DEFINED
22 this->fTop == that.
fTop &&
23 this->fAscent == that.
fAscent &&
25 this->fBottom == that.
fBottom &&
29 this->fXMin == that.
fXMin &&
30 this->fXMax == that.
fXMax &&
45 kUnderlineThicknessIsValid_Flag = 1 << 0,
46 kUnderlinePositionIsValid_Flag = 1 << 1,
47 kStrikeoutThicknessIsValid_Flag = 1 << 2,
48 kStrikeoutPositionIsValid_Flag = 1 << 3,
49 kBoundsInvalid_Flag = 1 << 4,
78 *thickness = fUnderlineThickness;
93 *position = fUnderlinePosition;
108 *thickness = fStrikeoutThickness;
123 *position = fStrikeoutPosition;
static constexpr bool SkToBool(const T &x)
SkScalar fTop
greatest extent above origin of any glyph bounding box, typically negative; deprecated with variable ...
SkScalar fLeading
distance to add between lines, typically positive or zero
bool operator==(const SkFontMetrics &that) const
SkScalar fAvgCharWidth
average character width, zero if unknown
SkScalar fStrikeoutPosition
distance from baseline to bottom of stroke, typically negative
SkScalar fStrikeoutThickness
strikeout thickness
SkScalar fMaxCharWidth
maximum character width, zero if unknown
SkScalar fBottom
greatest extent below origin of any glyph bounding box, typically positive; deprecated with variable ...
bool hasUnderlinePosition(SkScalar *position) const
uint32_t fFlags
FontMetricsFlags indicating which metrics are valid.
SkScalar fAscent
distance to reserve above baseline, typically negative
bool hasUnderlineThickness(SkScalar *thickness) const
SkScalar fXHeight
height of lower-case 'x', zero if unknown, typically negative
bool hasStrikeoutPosition(SkScalar *position) const
SkScalar fUnderlineThickness
underline thickness
SkScalar fDescent
distance to reserve below baseline, typically positive
SkScalar fCapHeight
height of an upper-case letter, zero if unknown, typically negative
bool hasStrikeoutThickness(SkScalar *thickness) const
SkScalar fXMin
greatest extent to left of origin of any glyph bounding box, typically negative; deprecated with vari...
SkScalar fUnderlinePosition
distance from baseline to top of stroke, typically positive
SkScalar fXMax
greatest extent to right of origin of any glyph bounding box, typically positive; deprecated with var...