KiCad PCB EDA Suite
Loading...
Searching...
No Matches
KIFONT Namespace Reference

Classes

struct  CONTOUR
 
class  FONT
 FONT is an abstract base class for both outline and stroke fonts. More...
 
class  GLYPH
 
class  METRICS
 
class  OUTLINE_DECOMPOSER
 
class  OUTLINE_FONT
 Class OUTLINE_FONT implements outline font drawing. More...
 
class  OUTLINE_GLYPH
 
class  STROKE_FONT
 Implement a stroke font drawing. More...
 
class  STROKE_GLYPH
 
class  VERSION_INFO
 Container for library version helpers. More...
 

Typedefs

typedef std::vector< VECTOR2DGLYPH_POINTS
 
typedef std::vector< GLYPH_POINTSGLYPH_POINTS_LIST
 
typedef std::vector< BOX2DGLYPH_BOUNDING_BOX_LIST
 
typedef std::vector< CONTOURCONTOURS
 

Variables

constexpr int GLYPH_DEFAULT_DPI = 72
 FreeType default. More...
 
constexpr int GLYPH_RESOLUTION = 288
 
constexpr double GLYPH_SIZE_SCALER = GLYPH_DEFAULT_DPI / (double) GLYPH_RESOLUTION
 

Typedef Documentation

◆ CONTOURS

typedef std::vector<CONTOUR> KIFONT::CONTOURS

Definition at line 56 of file outline_decomposer.h.

◆ GLYPH_BOUNDING_BOX_LIST

typedef std::vector< BOX2D > KIFONT::GLYPH_BOUNDING_BOX_LIST

Definition at line 117 of file glyph.h.

◆ GLYPH_POINTS

typedef std::vector< VECTOR2D > KIFONT::GLYPH_POINTS

Definition at line 115 of file glyph.h.

◆ GLYPH_POINTS_LIST

typedef std::vector< GLYPH_POINTS > KIFONT::GLYPH_POINTS_LIST

Definition at line 116 of file glyph.h.

Variable Documentation

◆ GLYPH_DEFAULT_DPI

constexpr int KIFONT::GLYPH_DEFAULT_DPI = 72
constexpr

FreeType default.

Definition at line 43 of file glyph.h.

◆ GLYPH_RESOLUTION

constexpr int KIFONT::GLYPH_RESOLUTION = 288
constexpr

◆ GLYPH_SIZE_SCALER

constexpr double KIFONT::GLYPH_SIZE_SCALER = GLYPH_DEFAULT_DPI / (double) GLYPH_RESOLUTION
constexpr

Definition at line 47 of file glyph.h.

Referenced by KIFONT::OUTLINE_FONT::getTextAsGlyphsUnlocked(), and toVector2D().