int GraphicTextWidth(const wxString &aText, const wxSize &aSize, bool italic, bool bold)
The full X size is GraphicTextWidth + the thickness of graphic lines.
int GetPenSizeForBold(int aTextSize)
Function GetPensizeForBold.
int Clamp_Text_PenSize(int aPenSize, int aSize, bool aBold=true)
As a rule, pen width should not be >1/4em, otherwise the character will be cluttered up in its own fa...
void GRHaloText(wxDC *aDC, const wxPoint &aPos, COLOR4D aBgColor, COLOR4D aColor1, COLOR4D aColor2, const wxString &aText, double aOrient, const wxSize &aSize, enum EDA_TEXT_HJUSTIFY_T aH_justify, enum EDA_TEXT_VJUSTIFY_T aV_justify, int aWidth, bool aItalic, bool aBold, void(*aCallback)(int x0, int y0, int xf, int yf, void *aData)=nullptr, void *aCallbackData=nullptr, PLOTTER *aPlotter=nullptr)
Draw graphic text with a border so that it can be read on different backgrounds.
int GetPenSizeForNormal(int aTextSize)
void GRText(wxDC *aDC, const wxPoint &aPos, COLOR4D aColor, const wxString &aText, double aOrient, const wxSize &aSize, enum EDA_TEXT_HJUSTIFY_T aH_justify, enum EDA_TEXT_VJUSTIFY_T aV_justify, int aWidth, bool aItalic, bool aBold, void(*aCallback)(int x0, int y0, int xf, int yf, void *aData)=nullptr, void *aCallbackData=nullptr, PLOTTER *aPlotter=nullptr)
Draw a graphic text (like footprint text)