58 bool IsStroke()
const override {
return true; }
66 static STROKE_FONT* LoadFont(
const wxString& aFontName );
73 double GetInterline(
double aGlyphHeight,
const METRICS& aFontMetrics )
const override;
75 VECTOR2I GetTextAsGlyphs(
BOX2I* aBoundingBox, std::vector<std::unique_ptr<GLYPH>>* aGlyphs,
76 const wxString& aText,
const VECTOR2I& aSize,
80 unsigned GetGlyphCount()
const;
84 const BOX2D& GetGlyphBoundingBox(
unsigned aIndex )
const;
93 void loadNewStrokeFont(
const char*
const aNewStrokeFont[],
int aNewStrokeFontSize );
96 const std::vector<std::shared_ptr<GLYPH>>*
m_glyphs;
Implement a stroke font drawing.
bool IsStroke() const override
const std::vector< BOX2D > * m_glyphBoundingBoxes
const std::vector< std::shared_ptr< GLYPH > > * m_glyphs
Abstract interface for drawing on a 2D-surface.
unsigned int TEXT_STYLE_FLAGS
The Cairo implementation of the graphics abstraction layer.
VECTOR2< int32_t > VECTOR2I