Lines Matching defs:FontMetrics
745 struct FontMetrics { struct
749 enum FontMetricsFlags { argument
754 uint32_t fFlags; //!< Bit field to identify which values are unknown
755 … SkScalar fTop; //!< The greatest distance above the baseline for any glyph (will be <= 0)
756 SkScalar fAscent; //!< The recommended distance above the baseline (will be <= 0)
757 SkScalar fDescent; //!< The recommended distance below the baseline (will be >= 0)
758 … SkScalar fBottom; //!< The greatest distance below the baseline for any glyph (will be >= 0)
759 … SkScalar fLeading; //!< The recommended distance to add between lines of text (will be >= 0)
760 SkScalar fAvgCharWidth; //!< the average character width (>= 0)
761 SkScalar fMaxCharWidth; //!< the max character width (>= 0)
762 SkScalar fXMin; //!< The minimum bounding box x value for all glyphs
763 SkScalar fXMax; //!< The maximum bounding box x value for all glyphs
764 SkScalar fXHeight; //!< The height of an 'x' in px, or 0 if no 'x' in face
765 SkScalar fCapHeight; //!< The cap height (> 0), or 0 if cannot be determined.
766 SkScalar fUnderlineThickness; //!< underline thickness, or 0 if cannot be determined
774 SkScalar fUnderlinePosition; //!< underline position, or 0 if cannot be determined
780 bool hasUnderlineThickness(SkScalar* thickness) const { in hasUnderlineThickness()
813 SkScalar getFontMetrics(FontMetrics* metrics, SkScalar scale = 0) const; argument