KiCad PCB EDA Suite
|
#include <font.h>
Public Member Functions | |
double | GetOverbarVerticalPosition (double aGlyphHeight) const |
Compute the vertical position of an overbar. | |
double | GetUnderlineVerticalPosition (double aGlyphHeight) const |
Compute the vertical position of an underline. | |
double | GetInterline (double aFontHeight) const |
Static Public Member Functions | |
static const METRICS & | Default () |
Public Attributes | |
double | m_InterlinePitch = 1.68 |
double | m_OverbarHeight = 1.23 |
double | m_UnderlineOffset = -0.16 |
|
static |
Definition at line 52 of file font.cpp.
References g_defaultMetrics.
Referenced by LABEL_MANAGER::Add(), KIGFX::GAL::BitmapText(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), GENDRILL_WRITER_BASE::genDrillMapFile(), SCH_ITEM::GetFontMetrics(), BOARD_ITEM::GetFontMetrics(), DS_DRAW_ITEM_BASE::GetFontMetrics(), EDA_TEXT::getFontMetrics(), TUNING_STATUS_VIEW_ITEM::ViewDraw(), ROUTER_STATUS_VIEW_ITEM::ViewDraw(), and KIGFX::ANCHOR_DEBUG::ViewDraw().
|
inline |
Definition at line 114 of file font.h.
Referenced by KIFONT::OUTLINE_FONT::GetInterline(), and KIFONT::STROKE_FONT::GetInterline().
|
inline |
Compute the vertical position of an overbar.
This is the distance between the text baseline and the overbar.
Definition at line 100 of file font.h.
Referenced by drawMarkup().
|
inline |
Compute the vertical position of an underline.
This is the distance between the text baseline and the underline.
Definition at line 109 of file font.h.
Referenced by drawMarkup().
double KIFONT::METRICS::m_OverbarHeight = 1.23 |
Definition at line 123 of file font.h.
Referenced by SCHEMATIC_SETTINGS::SCHEMATIC_SETTINGS(), PANEL_SETUP_FORMATTING::TransferDataFromWindow(), and PANEL_SETUP_FORMATTING::TransferDataToWindow().