KiCad PCB EDA Suite
|
#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_SUBSET * | ensureSubsetForGlyph (wxUniChar aCode, bool aBold, bool aItalic) |
STYLE_GROUP & | groupFor (bool aBold, bool aItalic) |
Static Private Member Functions | |
static unsigned | styleKey (bool aBold, bool aItalic) |
Private Attributes | |
std::unique_ptr< KIFONT::STROKE_FONT > | m_font |
double | m_unitsPerEm |
unsigned | m_nextSubsetIndex |
std::map< unsigned, STYLE_GROUP > | m_styleGroups |
Definition at line 139 of file pdf_stroke_font.h.
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().
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.
void PDF_STROKE_FONT_MANAGER::EncodeString | ( | const wxString & | aText, |
std::vector< PDF_STROKE_FONT_RUN > * | aRuns, | ||
bool | aBold = false, | ||
bool | aItalic = false ) |
Definition at line 427 of file pdf_stroke_font.cpp.
References PDF_STROKE_FONT_SUBSET::EnsureGlyph(), and ensureSubsetForGlyph().
|
private |
Definition at line 470 of file pdf_stroke_font.cpp.
References PDF_STROKE_FONT_SUBSET::EnsureGlyph(), group, groupFor(), m_font, m_nextSubsetIndex, and m_unitsPerEm.
Referenced by EncodeString().
|
private |
Definition at line 421 of file pdf_stroke_font.cpp.
References m_styleGroups, and styleKey().
Referenced by ensureSubsetForGlyph().
void PDF_STROKE_FONT_MANAGER::Reset | ( | ) |
Definition at line 411 of file pdf_stroke_font.cpp.
References KIFONT::STROKE_FONT::LoadFont(), m_font, m_nextSubsetIndex, and m_styleGroups.
Referenced by PDF_STROKE_FONT_MANAGER().
|
inlinestaticprivate |
Definition at line 157 of file pdf_stroke_font.h.
Referenced by groupFor().
|
private |
Definition at line 167 of file pdf_stroke_font.h.
Referenced by ensureSubsetForGlyph(), PDF_STROKE_FONT_MANAGER(), and Reset().
|
private |
Definition at line 169 of file pdf_stroke_font.h.
Referenced by ensureSubsetForGlyph(), PDF_STROKE_FONT_MANAGER(), and Reset().
|
private |
Definition at line 170 of file pdf_stroke_font.h.
Referenced by AllSubsets(), groupFor(), and Reset().
|
private |
Definition at line 168 of file pdf_stroke_font.h.
Referenced by ensureSubsetForGlyph(), and PDF_STROKE_FONT_MANAGER().