KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PDF_STROKE_FONT_MANAGER Class Reference

#include <pdf_stroke_font.h>

Classes

struct  STYLE_GROUP
 

Public Member Functions

 PDF_STROKE_FONT_MANAGER ()
 
void Reset ()
 
void EncodeString (const wxString &aText, std::vector< PDF_STROKE_FONT_RUN > *aRuns, bool aBold=false, bool aItalic=false)
 
std::vector< PDF_STROKE_FONT_SUBSET * > AllSubsets () const
 

Private Member Functions

PDF_STROKE_FONT_SUBSETensureSubsetForGlyph (wxUniChar aCode, bool aBold, bool aItalic)
 
STYLE_GROUPgroupFor (bool aBold, bool aItalic)
 

Static Private Member Functions

static unsigned styleKey (bool aBold, bool aItalic)
 

Private Attributes

std::unique_ptr< KIFONT::STROKE_FONTm_font
 
double m_unitsPerEm
 
unsigned m_nextSubsetIndex
 
std::map< unsigned, STYLE_GROUPm_styleGroups
 

Detailed Description

Definition at line 139 of file pdf_stroke_font.h.

Constructor & Destructor Documentation

◆ PDF_STROKE_FONT_MANAGER()

PDF_STROKE_FONT_MANAGER::PDF_STROKE_FONT_MANAGER ( )

Definition at line 402 of file pdf_stroke_font.cpp.

References m_font, m_nextSubsetIndex, m_unitsPerEm, and Reset().

Member Function Documentation

◆ AllSubsets()

std::vector< PDF_STROKE_FONT_SUBSET * > PDF_STROKE_FONT_MANAGER::AllSubsets ( ) const

Definition at line 497 of file pdf_stroke_font.cpp.

References group, m_styleGroups, and up.

◆ EncodeString()

void PDF_STROKE_FONT_MANAGER::EncodeString ( const wxString & aText,
std::vector< PDF_STROKE_FONT_RUN > * aRuns,
bool aBold = false,
bool aItalic = false )

◆ ensureSubsetForGlyph()

PDF_STROKE_FONT_SUBSET * PDF_STROKE_FONT_MANAGER::ensureSubsetForGlyph ( wxUniChar aCode,
bool aBold,
bool aItalic )
private

◆ groupFor()

PDF_STROKE_FONT_MANAGER::STYLE_GROUP & PDF_STROKE_FONT_MANAGER::groupFor ( bool aBold,
bool aItalic )
private

Definition at line 421 of file pdf_stroke_font.cpp.

References m_styleGroups, and styleKey().

Referenced by ensureSubsetForGlyph().

◆ Reset()

void PDF_STROKE_FONT_MANAGER::Reset ( )

◆ styleKey()

static unsigned PDF_STROKE_FONT_MANAGER::styleKey ( bool aBold,
bool aItalic )
inlinestaticprivate

Definition at line 157 of file pdf_stroke_font.h.

Referenced by groupFor().

Member Data Documentation

◆ m_font

std::unique_ptr<KIFONT::STROKE_FONT> PDF_STROKE_FONT_MANAGER::m_font
private

Definition at line 167 of file pdf_stroke_font.h.

Referenced by ensureSubsetForGlyph(), PDF_STROKE_FONT_MANAGER(), and Reset().

◆ m_nextSubsetIndex

unsigned PDF_STROKE_FONT_MANAGER::m_nextSubsetIndex
private

Definition at line 169 of file pdf_stroke_font.h.

Referenced by ensureSubsetForGlyph(), PDF_STROKE_FONT_MANAGER(), and Reset().

◆ m_styleGroups

std::map<unsigned, STYLE_GROUP> PDF_STROKE_FONT_MANAGER::m_styleGroups
private

Definition at line 170 of file pdf_stroke_font.h.

Referenced by AllSubsets(), groupFor(), and Reset().

◆ m_unitsPerEm

double PDF_STROKE_FONT_MANAGER::m_unitsPerEm
private

Definition at line 168 of file pdf_stroke_font.h.

Referenced by ensureSubsetForGlyph(), and PDF_STROKE_FONT_MANAGER().


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