Lines Matching defs:FontMetrics
721 struct FontMetrics { struct
725 enum FontMetricsFlags { argument
730 uint32_t fFlags; //!< Bit field to identify which values are unknown
731 … SkScalar fTop; //!< The greatest distance above the baseline for any glyph (will be <= 0)
732 SkScalar fAscent; //!< The recommended distance above the baseline (will be <= 0)
733 SkScalar fDescent; //!< The recommended distance below the baseline (will be >= 0)
734 … SkScalar fBottom; //!< The greatest distance below the baseline for any glyph (will be >= 0)
735 … SkScalar fLeading; //!< The recommended distance to add between lines of text (will be >= 0)
736 SkScalar fAvgCharWidth; //!< the average character width (>= 0)
737 SkScalar fMaxCharWidth; //!< the max character width (>= 0)
738 SkScalar fXMin; //!< The minimum bounding box x value for all glyphs
739 SkScalar fXMax; //!< The maximum bounding box x value for all glyphs
740 SkScalar fXHeight; //!< The height of an 'x' in px, or 0 if no 'x' in face
741 SkScalar fCapHeight; //!< The cap height (> 0), or 0 if cannot be determined.
742 SkScalar fUnderlineThickness; //!< underline thickness, or 0 if cannot be determined
750 SkScalar fUnderlinePosition; //!< underline position, or 0 if cannot be determined
756 bool hasUnderlineThickness(SkScalar* thickness) const { in hasUnderlineThickness()
789 SkScalar getFontMetrics(FontMetrics* metrics, SkScalar scale = 0) const; argument