|
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, int aStrokeWidth, int aFontWidth, int aFontHeight, bool aBold=false, bool aItalic=false) |
| std::vector< PDF_STROKE_FONT_SUBSET * > | AllSubsets () const |
Private Types | |
| using | STYLE_KEY = std::tuple<bool, bool, int, int, int> |
Private Member Functions | |
| PDF_STROKE_FONT_SUBSET * | ensureSubsetForGlyph (wxUniChar aCode, int aStrokeWidth, int aFontWidth, int aFontHeight, bool aBold, bool aItalic) |
Static Private Member Functions | |
| static STYLE_KEY | styleKey (bool aBold, bool aItalic, int aStrokeWidth, int aFontWidth, int aFontHeight) |
Private Attributes | |
| std::unique_ptr< KIFONT::STROKE_FONT > | m_font |
| double | m_unitsPerEm |
| unsigned | m_nextSubsetIndex |
| std::map< STYLE_KEY, STYLE_GROUP > | m_styleGroups |
Definition at line 141 of file pdf_stroke_font.h.
|
private |
Definition at line 159 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 540 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, | ||
| int | aStrokeWidth, | ||
| int | aFontWidth, | ||
| int | aFontHeight, | ||
| bool | aBold = false, | ||
| bool | aItalic = false ) |
Definition at line 432 of file pdf_stroke_font.cpp.
References PDF_STROKE_FONT_SUBSET::EnsureGlyph(), and ensureSubsetForGlyph().
|
private |
Definition at line 476 of file pdf_stroke_font.cpp.
References std::abs(), PDF_STROKE_FONT_SUBSET::EnsureGlyph(), ADVANCED_CFG::GetCfg(), group, m_font, m_nextSubsetIndex, ADVANCED_CFG::m_PDFStrokeFontBoldMultiplier, ADVANCED_CFG::m_PDFStrokeFontWidthFactor, m_styleGroups, m_unitsPerEm, and styleKey().
Referenced by EncodeString().
| 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().
|
staticprivate |
Definition at line 421 of file pdf_stroke_font.cpp.
References std::abs().
Referenced by ensureSubsetForGlyph().
|
private |
Definition at line 169 of file pdf_stroke_font.h.
Referenced by ensureSubsetForGlyph(), PDF_STROKE_FONT_MANAGER(), and Reset().
|
private |
Definition at line 171 of file pdf_stroke_font.h.
Referenced by ensureSubsetForGlyph(), PDF_STROKE_FONT_MANAGER(), and Reset().
|
private |
Definition at line 172 of file pdf_stroke_font.h.
Referenced by AllSubsets(), ensureSubsetForGlyph(), and Reset().
|
private |
Definition at line 170 of file pdf_stroke_font.h.
Referenced by ensureSubsetForGlyph(), and PDF_STROKE_FONT_MANAGER().