KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIFONT::METRICS Class Reference

#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 METRICSDefault ()
 

Public Attributes

double m_InterlinePitch = 1.68
 
double m_OverbarHeight = 1.23
 
double m_UnderlineOffset = -0.16
 

Detailed Description

Definition at line 93 of file font.h.

Member Function Documentation

◆ Default()

◆ GetInterline()

double KIFONT::METRICS::GetInterline ( double  aFontHeight) const
inline

◆ GetOverbarVerticalPosition()

double KIFONT::METRICS::GetOverbarVerticalPosition ( double  aGlyphHeight) const
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().

◆ GetUnderlineVerticalPosition()

double KIFONT::METRICS::GetUnderlineVerticalPosition ( double  aGlyphHeight) const
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().

Member Data Documentation

◆ m_InterlinePitch

double KIFONT::METRICS::m_InterlinePitch = 1.68

Definition at line 122 of file font.h.

◆ m_OverbarHeight

double KIFONT::METRICS::m_OverbarHeight = 1.23

◆ m_UnderlineOffset

double KIFONT::METRICS::m_UnderlineOffset = -0.16

Definition at line 124 of file font.h.


The documentation for this class was generated from the following files: