45 virtual std::vector<myscript::iink::graphics::Rectangle>
getCharacterBoundingBoxes(std::shared_ptr<Text> text,
const std::vector<TextSpan>& spans) = 0;
70 virtual std::vector<GlyphMetrics>
getGlyphMetrics(std::shared_ptr<Text> text,
const std::vector<TextSpan>& spans) {
return {}; }
Definition: IFontMetricsProvider.h:32
virtual std::vector< myscript::iink::graphics::Rectangle > getCharacterBoundingBoxes(std::shared_ptr< Text > text, const std::vector< TextSpan > &spans)=0
virtual ~IFontMetricsProvider()=default
virtual std::vector< GlyphMetrics > getGlyphMetrics(std::shared_ptr< Text > text, const std::vector< TextSpan > &spans)
Definition: IFontMetricsProvider.h:70
virtual bool supportsGlyphMetrics()
Definition: IFontMetricsProvider.h:63
virtual float getFontSizePx(const myscript::iink::graphics::Style &style)=0
Definition: IFontMetricsProvider.h:21
float rightSideBearing
Definition: IFontMetricsProvider.h:24
float leftSideBearing
Definition: IFontMetricsProvider.h:23
graphics::Rectangle boundingBox
Definition: IFontMetricsProvider.h:22