int32_t linePitch() const
int32_t m_interlinePercent
int32_t m_charWidthPercent
bool CanMeasure() const
False for a TrueType style; the measuring calls throw IO_ERROR for one.
int32_t RunWidth(const std::string &aText, size_t aBegin, size_t aEnd) const
Width of bytes [aBegin, aEnd); a run that measures 0 is one height wide.
static std::string Encode(const wxString &aText)
The CP1252 bytes of aText; characters CP1252 lacks become 0.
int32_t charWidth(char aChar) const
TEXT_METRICS(const SOURCE_TEXT_STYLE &aStyle)
void checkMeasurable() const
BOX2I TextBox(const wxString &aText, const VECTOR2I &aAnchor, int32_t aAngle, bool aMirrored, int aHAlign, int aVAlign=TEXT_V_BASELINE) const
Every line's cell, inflated by half the pen width, mirrored about the anchor and bounded after rotati...
VECTOR2I UprightAnchor(const wxString &aText, const VECTOR2I &aAnchor, int32_t aAngle, bool aMirrored, int aHAlign, bool aKeepUpright) const
When aKeepUpright and UprightRotation turns the text, the anchor moves to the far end of the first li...
bool TextStaysUpright(const SOURCE_DESIGN &aDesign, bool aSchematic)
Whether aDesign's text is drawn upright: the design's flag, which old schematics imply,...