KiCad PCB EDA Suite
|
#include <pdf_stroke_font.h>
Classes | |
struct | GLYPH |
Public Member Functions | |
PDF_STROKE_FONT_SUBSET (const KIFONT::STROKE_FONT *aFont, double aUnitsPerEm, unsigned aSubsetIndex, bool aBold, bool aItalic) | |
bool | Contains (wxUniChar aCode) const |
int | EnsureGlyph (wxUniChar aCode) |
int | CodeForGlyph (wxUniChar aCode) const |
bool | IsFull () const |
int | GlyphCount () const |
int | FirstChar () const |
int | LastChar () const |
double | UnitsPerEm () const |
double | FontBBoxMinX () const |
double | FontBBoxMinY () const |
double | FontBBoxMaxX () const |
double | FontBBoxMaxY () const |
const std::string & | ResourceName () const |
const std::string & | CMapName () const |
bool | IsBold () const |
bool | IsItalic () const |
std::vector< GLYPH > & | Glyphs () |
const std::vector< GLYPH > & | Glyphs () const |
const std::vector< double > & | Widths () const |
std::string | BuildDifferencesArray () const |
std::string | BuildWidthsArray () const |
std::string | BuildToUnicodeCMap () const |
void | SetCharProcsHandle (int aHandle) |
int | CharProcsHandle () const |
void | SetFontHandle (int aHandle) |
int | FontHandle () const |
void | SetToUnicodeHandle (int aHandle) |
int | ToUnicodeHandle () const |
Private Member Functions | |
int | glyphIndexForUnicode (wxUniChar aCode) const |
std::string | makeGlyphName (int aCode) const |
const GLYPH * | glyphForCode (int aCode) const |
Private Attributes | |
const KIFONT::STROKE_FONT * | m_font |
double | m_unitsPerEm |
std::string | m_resourceName |
std::string | m_cmapName |
std::map< wxUniChar, int > | m_unicodeToCode |
std::vector< GLYPH > | m_glyphs |
std::vector< double > | m_widths |
int | m_nextCode |
int | m_lastCode |
double | m_bboxMinX |
double | m_bboxMinY |
double | m_bboxMaxX |
double | m_bboxMaxY |
int | m_charProcsHandle |
int | m_fontHandle |
int | m_toUnicodeHandle |
bool | m_isBold |
bool | m_isItalic |
Definition at line 45 of file pdf_stroke_font.h.
PDF_STROKE_FONT_SUBSET::PDF_STROKE_FONT_SUBSET | ( | const KIFONT::STROKE_FONT * | aFont, |
double | aUnitsPerEm, | ||
unsigned | aSubsetIndex, | ||
bool | aBold, | ||
bool | aItalic ) |
Definition at line 118 of file pdf_stroke_font.cpp.
References m_bboxMaxX, m_bboxMaxY, m_bboxMinX, m_bboxMinY, PDF_STROKE_FONT_SUBSET::GLYPH::m_charProcHandle, m_charProcsHandle, m_cmapName, PDF_STROKE_FONT_SUBSET::GLYPH::m_code, m_font, m_fontHandle, PDF_STROKE_FONT_SUBSET::GLYPH::m_glyphIndex, m_glyphs, m_isBold, m_isItalic, m_lastCode, PDF_STROKE_FONT_SUBSET::GLYPH::m_maxX, PDF_STROKE_FONT_SUBSET::GLYPH::m_maxY, PDF_STROKE_FONT_SUBSET::GLYPH::m_minX, PDF_STROKE_FONT_SUBSET::GLYPH::m_minY, PDF_STROKE_FONT_SUBSET::GLYPH::m_name, m_nextCode, m_resourceName, PDF_STROKE_FONT_SUBSET::GLYPH::m_stream, m_toUnicodeHandle, PDF_STROKE_FONT_SUBSET::GLYPH::m_unicode, m_unitsPerEm, PDF_STROKE_FONT_SUBSET::GLYPH::m_width, and m_widths.
std::string PDF_STROKE_FONT_SUBSET::BuildDifferencesArray | ( | ) | const |
Definition at line 283 of file pdf_stroke_font.cpp.
References FirstChar(), glyphForCode(), LastChar(), and PDF_STROKE_FONT_SUBSET::GLYPH::m_name.
Referenced by PDF_PLOTTER::emitStrokeFonts().
std::string PDF_STROKE_FONT_SUBSET::BuildToUnicodeCMap | ( | ) | const |
Definition at line 322 of file pdf_stroke_font.cpp.
References m_cmapName, and m_glyphs.
Referenced by PDF_PLOTTER::emitStrokeFonts().
std::string PDF_STROKE_FONT_SUBSET::BuildWidthsArray | ( | ) | const |
Definition at line 306 of file pdf_stroke_font.cpp.
References FirstChar(), LastChar(), and m_widths.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 103 of file pdf_stroke_font.h.
References m_charProcsHandle.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 89 of file pdf_stroke_font.h.
References m_cmapName.
int PDF_STROKE_FONT_SUBSET::CodeForGlyph | ( | wxUniChar | aCode | ) | const |
Definition at line 248 of file pdf_stroke_font.cpp.
References m_unicodeToCode.
bool PDF_STROKE_FONT_SUBSET::Contains | ( | wxUniChar | aCode | ) | const |
Definition at line 158 of file pdf_stroke_font.cpp.
References m_unicodeToCode.
int PDF_STROKE_FONT_SUBSET::EnsureGlyph | ( | wxUniChar | aCode | ) |
Definition at line 164 of file pdf_stroke_font.cpp.
References ADVANCED_CFG::GetCfg(), BOX2< Vec >::GetOrigin(), BOX2< Vec >::GetSize(), glyphIndexForUnicode(), IsFull(), m_bboxMaxX, m_bboxMaxY, m_bboxMinX, m_bboxMinY, PDF_STROKE_FONT_SUBSET::GLYPH::m_charProcHandle, PDF_STROKE_FONT_SUBSET::GLYPH::m_code, m_font, PDF_STROKE_FONT_SUBSET::GLYPH::m_glyphIndex, m_glyphs, m_isBold, m_lastCode, PDF_STROKE_FONT_SUBSET::GLYPH::m_maxX, PDF_STROKE_FONT_SUBSET::GLYPH::m_maxY, PDF_STROKE_FONT_SUBSET::GLYPH::m_minX, PDF_STROKE_FONT_SUBSET::GLYPH::m_minY, PDF_STROKE_FONT_SUBSET::GLYPH::m_name, m_nextCode, ADVANCED_CFG::m_PDFStrokeFontKerningFactor, ADVANCED_CFG::m_PDFStrokeFontYOffset, PDF_STROKE_FONT_SUBSET::GLYPH::m_stream, PDF_STROKE_FONT_SUBSET::GLYPH::m_unicode, m_unicodeToCode, m_unitsPerEm, PDF_STROKE_FONT_SUBSET::GLYPH::m_width, m_widths, makeGlyphName(), VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by PDF_STROKE_FONT_MANAGER::EncodeString(), and PDF_STROKE_FONT_MANAGER::ensureSubsetForGlyph().
int PDF_STROKE_FONT_SUBSET::FirstChar | ( | ) | const |
Definition at line 271 of file pdf_stroke_font.cpp.
Referenced by BuildDifferencesArray(), BuildWidthsArray(), and PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 85 of file pdf_stroke_font.h.
References m_bboxMaxX.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 86 of file pdf_stroke_font.h.
References m_bboxMaxY.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 83 of file pdf_stroke_font.h.
References m_bboxMinX.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 84 of file pdf_stroke_font.h.
References m_bboxMinY.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 106 of file pdf_stroke_font.h.
References m_fontHandle.
Referenced by PDF_PLOTTER::endPlotEmitResources().
int PDF_STROKE_FONT_SUBSET::GlyphCount | ( | ) | const |
Definition at line 265 of file pdf_stroke_font.cpp.
References m_glyphs.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
private |
Definition at line 390 of file pdf_stroke_font.cpp.
References m_glyphs.
Referenced by BuildDifferencesArray().
|
private |
|
inline |
Definition at line 93 of file pdf_stroke_font.h.
References m_glyphs.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 94 of file pdf_stroke_font.h.
References m_glyphs.
|
inline |
Definition at line 90 of file pdf_stroke_font.h.
References m_isBold.
bool PDF_STROKE_FONT_SUBSET::IsFull | ( | ) | const |
Definition at line 259 of file pdf_stroke_font.cpp.
References m_nextCode.
Referenced by EnsureGlyph().
|
inline |
Definition at line 91 of file pdf_stroke_font.h.
References m_isItalic.
int PDF_STROKE_FONT_SUBSET::LastChar | ( | ) | const |
Definition at line 277 of file pdf_stroke_font.cpp.
References m_lastCode.
Referenced by BuildDifferencesArray(), BuildWidthsArray(), and PDF_PLOTTER::emitStrokeFonts().
|
private |
Definition at line 384 of file pdf_stroke_font.cpp.
Referenced by EnsureGlyph().
|
inline |
Definition at line 88 of file pdf_stroke_font.h.
References m_resourceName.
Referenced by PDF_PLOTTER::emitStrokeFonts(), and PDF_PLOTTER::endPlotEmitResources().
|
inline |
Definition at line 102 of file pdf_stroke_font.h.
References m_charProcsHandle.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 105 of file pdf_stroke_font.h.
References m_fontHandle.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 108 of file pdf_stroke_font.h.
References m_toUnicodeHandle.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 109 of file pdf_stroke_font.h.
References m_toUnicodeHandle.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 81 of file pdf_stroke_font.h.
References m_unitsPerEm.
Referenced by PDF_PLOTTER::emitStrokeFonts().
|
inline |
Definition at line 96 of file pdf_stroke_font.h.
References m_widths.
|
private |
Definition at line 130 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), FontBBoxMaxX(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 131 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), FontBBoxMaxY(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 128 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), FontBBoxMinX(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 129 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), FontBBoxMinY(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 132 of file pdf_stroke_font.h.
Referenced by CharProcsHandle(), PDF_STROKE_FONT_SUBSET(), and SetCharProcsHandle().
|
private |
Definition at line 122 of file pdf_stroke_font.h.
Referenced by BuildToUnicodeCMap(), CMapName(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 119 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), glyphIndexForUnicode(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 133 of file pdf_stroke_font.h.
Referenced by FontHandle(), PDF_STROKE_FONT_SUBSET(), and SetFontHandle().
|
private |
Definition at line 124 of file pdf_stroke_font.h.
Referenced by BuildToUnicodeCMap(), EnsureGlyph(), GlyphCount(), glyphForCode(), Glyphs(), Glyphs(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 135 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), IsBold(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 136 of file pdf_stroke_font.h.
Referenced by IsItalic(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 127 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), LastChar(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 126 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), IsFull(), and PDF_STROKE_FONT_SUBSET().
|
private |
Definition at line 121 of file pdf_stroke_font.h.
Referenced by PDF_STROKE_FONT_SUBSET(), and ResourceName().
|
private |
Definition at line 134 of file pdf_stroke_font.h.
Referenced by PDF_STROKE_FONT_SUBSET(), SetToUnicodeHandle(), and ToUnicodeHandle().
|
private |
Definition at line 123 of file pdf_stroke_font.h.
Referenced by CodeForGlyph(), Contains(), and EnsureGlyph().
|
private |
Definition at line 120 of file pdf_stroke_font.h.
Referenced by EnsureGlyph(), PDF_STROKE_FONT_SUBSET(), and UnitsPerEm().
|
private |
Definition at line 125 of file pdf_stroke_font.h.
Referenced by BuildWidthsArray(), EnsureGlyph(), PDF_STROKE_FONT_SUBSET(), and Widths().