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(), BOOST_AUTO_TEST_CASE(), KIGFX::PREVIEW::ANGLE_ITEM::drawPreviewShape(), KIGFX::PREVIEW::DrawTextNextToCursor(), drawTicksAlongLine(), PLOTTER::FlashRegularPolygon(), GENDRILL_WRITER_BASE::genDrillMapFile(), BOARD_ITEM::GetFontMetrics(), DS_DRAW_ITEM_BASE::GetFontMetrics(), SCH_ITEM::GetFontMetrics(), EDA_TEXT::getFontMetrics(), KIGFX::ANCHOR_DEBUG::ViewDraw(), KIGFX::PREVIEW::RULER_ITEM::ViewDraw(), ROUTER_STATUS_VIEW_ITEM::ViewDraw(), and TUNING_STATUS_VIEW_ITEM::ViewDraw().
|
inline |
Definition at line 114 of file font.h.
References m_InterlinePitch.
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.
References m_OverbarHeight.
Referenced by drawMarkup(), and PDF_PLOTTER::drawOverbars().
|
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.
References m_UnderlineOffset.
Referenced by drawMarkup().
double KIFONT::METRICS::m_InterlinePitch = 1.68 |
Definition at line 122 of file font.h.
Referenced by GetInterline().
double KIFONT::METRICS::m_OverbarHeight = 1.23 |
Definition at line 123 of file font.h.
Referenced by GetOverbarVerticalPosition(), PANEL_SETUP_FORMATTING::TransferDataFromWindow(), and PANEL_SETUP_FORMATTING::TransferDataToWindow().
double KIFONT::METRICS::m_UnderlineOffset = -0.16 |
Definition at line 124 of file font.h.
Referenced by GetUnderlineVerticalPosition().