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

#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 GLYPHglyphForCode (int aCode) const
 

Private Attributes

const KIFONT::STROKE_FONTm_font
 
double m_unitsPerEm
 
std::string m_resourceName
 
std::string m_cmapName
 
std::map< wxUniChar, int > m_unicodeToCode
 
std::vector< GLYPHm_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
 

Detailed Description

Definition at line 45 of file pdf_stroke_font.h.

Constructor & Destructor Documentation

◆ PDF_STROKE_FONT_SUBSET()

Member Function Documentation

◆ BuildDifferencesArray()

std::string PDF_STROKE_FONT_SUBSET::BuildDifferencesArray ( ) const

◆ BuildToUnicodeCMap()

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().

◆ BuildWidthsArray()

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().

◆ CharProcsHandle()

int PDF_STROKE_FONT_SUBSET::CharProcsHandle ( ) const
inline

Definition at line 103 of file pdf_stroke_font.h.

References m_charProcsHandle.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ CMapName()

const std::string & PDF_STROKE_FONT_SUBSET::CMapName ( ) const
inline

Definition at line 89 of file pdf_stroke_font.h.

References m_cmapName.

◆ CodeForGlyph()

int PDF_STROKE_FONT_SUBSET::CodeForGlyph ( wxUniChar aCode) const

Definition at line 248 of file pdf_stroke_font.cpp.

References m_unicodeToCode.

◆ Contains()

bool PDF_STROKE_FONT_SUBSET::Contains ( wxUniChar aCode) const

Definition at line 158 of file pdf_stroke_font.cpp.

References m_unicodeToCode.

◆ EnsureGlyph()

◆ FirstChar()

int PDF_STROKE_FONT_SUBSET::FirstChar ( ) const

◆ FontBBoxMaxX()

double PDF_STROKE_FONT_SUBSET::FontBBoxMaxX ( ) const
inline

Definition at line 85 of file pdf_stroke_font.h.

References m_bboxMaxX.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ FontBBoxMaxY()

double PDF_STROKE_FONT_SUBSET::FontBBoxMaxY ( ) const
inline

Definition at line 86 of file pdf_stroke_font.h.

References m_bboxMaxY.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ FontBBoxMinX()

double PDF_STROKE_FONT_SUBSET::FontBBoxMinX ( ) const
inline

Definition at line 83 of file pdf_stroke_font.h.

References m_bboxMinX.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ FontBBoxMinY()

double PDF_STROKE_FONT_SUBSET::FontBBoxMinY ( ) const
inline

Definition at line 84 of file pdf_stroke_font.h.

References m_bboxMinY.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ FontHandle()

int PDF_STROKE_FONT_SUBSET::FontHandle ( ) const
inline

Definition at line 106 of file pdf_stroke_font.h.

References m_fontHandle.

Referenced by PDF_PLOTTER::endPlotEmitResources().

◆ GlyphCount()

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().

◆ glyphForCode()

const PDF_STROKE_FONT_SUBSET::GLYPH * PDF_STROKE_FONT_SUBSET::glyphForCode ( int aCode) const
private

Definition at line 390 of file pdf_stroke_font.cpp.

References m_glyphs.

Referenced by BuildDifferencesArray().

◆ glyphIndexForUnicode()

int PDF_STROKE_FONT_SUBSET::glyphIndexForUnicode ( wxUniChar aCode) const
private

Definition at line 367 of file pdf_stroke_font.cpp.

References m_font.

Referenced by EnsureGlyph().

◆ Glyphs() [1/2]

std::vector< GLYPH > & PDF_STROKE_FONT_SUBSET::Glyphs ( )
inline

Definition at line 93 of file pdf_stroke_font.h.

References m_glyphs.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ Glyphs() [2/2]

const std::vector< GLYPH > & PDF_STROKE_FONT_SUBSET::Glyphs ( ) const
inline

Definition at line 94 of file pdf_stroke_font.h.

References m_glyphs.

◆ IsBold()

bool PDF_STROKE_FONT_SUBSET::IsBold ( ) const
inline

Definition at line 90 of file pdf_stroke_font.h.

References m_isBold.

◆ IsFull()

bool PDF_STROKE_FONT_SUBSET::IsFull ( ) const

Definition at line 259 of file pdf_stroke_font.cpp.

References m_nextCode.

Referenced by EnsureGlyph().

◆ IsItalic()

bool PDF_STROKE_FONT_SUBSET::IsItalic ( ) const
inline

Definition at line 91 of file pdf_stroke_font.h.

References m_isItalic.

◆ LastChar()

int PDF_STROKE_FONT_SUBSET::LastChar ( ) const

◆ makeGlyphName()

std::string PDF_STROKE_FONT_SUBSET::makeGlyphName ( int aCode) const
private

Definition at line 384 of file pdf_stroke_font.cpp.

Referenced by EnsureGlyph().

◆ ResourceName()

const std::string & PDF_STROKE_FONT_SUBSET::ResourceName ( ) const
inline

Definition at line 88 of file pdf_stroke_font.h.

References m_resourceName.

Referenced by PDF_PLOTTER::emitStrokeFonts(), and PDF_PLOTTER::endPlotEmitResources().

◆ SetCharProcsHandle()

void PDF_STROKE_FONT_SUBSET::SetCharProcsHandle ( int aHandle)
inline

Definition at line 102 of file pdf_stroke_font.h.

References m_charProcsHandle.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ SetFontHandle()

void PDF_STROKE_FONT_SUBSET::SetFontHandle ( int aHandle)
inline

Definition at line 105 of file pdf_stroke_font.h.

References m_fontHandle.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ SetToUnicodeHandle()

void PDF_STROKE_FONT_SUBSET::SetToUnicodeHandle ( int aHandle)
inline

Definition at line 108 of file pdf_stroke_font.h.

References m_toUnicodeHandle.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ ToUnicodeHandle()

int PDF_STROKE_FONT_SUBSET::ToUnicodeHandle ( ) const
inline

Definition at line 109 of file pdf_stroke_font.h.

References m_toUnicodeHandle.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ UnitsPerEm()

double PDF_STROKE_FONT_SUBSET::UnitsPerEm ( ) const
inline

Definition at line 81 of file pdf_stroke_font.h.

References m_unitsPerEm.

Referenced by PDF_PLOTTER::emitStrokeFonts().

◆ Widths()

const std::vector< double > & PDF_STROKE_FONT_SUBSET::Widths ( ) const
inline

Definition at line 96 of file pdf_stroke_font.h.

References m_widths.

Member Data Documentation

◆ m_bboxMaxX

double PDF_STROKE_FONT_SUBSET::m_bboxMaxX
private

Definition at line 130 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), FontBBoxMaxX(), and PDF_STROKE_FONT_SUBSET().

◆ m_bboxMaxY

double PDF_STROKE_FONT_SUBSET::m_bboxMaxY
private

Definition at line 131 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), FontBBoxMaxY(), and PDF_STROKE_FONT_SUBSET().

◆ m_bboxMinX

double PDF_STROKE_FONT_SUBSET::m_bboxMinX
private

Definition at line 128 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), FontBBoxMinX(), and PDF_STROKE_FONT_SUBSET().

◆ m_bboxMinY

double PDF_STROKE_FONT_SUBSET::m_bboxMinY
private

Definition at line 129 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), FontBBoxMinY(), and PDF_STROKE_FONT_SUBSET().

◆ m_charProcsHandle

int PDF_STROKE_FONT_SUBSET::m_charProcsHandle
private

Definition at line 132 of file pdf_stroke_font.h.

Referenced by CharProcsHandle(), PDF_STROKE_FONT_SUBSET(), and SetCharProcsHandle().

◆ m_cmapName

std::string PDF_STROKE_FONT_SUBSET::m_cmapName
private

Definition at line 122 of file pdf_stroke_font.h.

Referenced by BuildToUnicodeCMap(), CMapName(), and PDF_STROKE_FONT_SUBSET().

◆ m_font

const KIFONT::STROKE_FONT* PDF_STROKE_FONT_SUBSET::m_font
private

Definition at line 119 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), glyphIndexForUnicode(), and PDF_STROKE_FONT_SUBSET().

◆ m_fontHandle

int PDF_STROKE_FONT_SUBSET::m_fontHandle
private

Definition at line 133 of file pdf_stroke_font.h.

Referenced by FontHandle(), PDF_STROKE_FONT_SUBSET(), and SetFontHandle().

◆ m_glyphs

std::vector<GLYPH> PDF_STROKE_FONT_SUBSET::m_glyphs
private

◆ m_isBold

bool PDF_STROKE_FONT_SUBSET::m_isBold
private

Definition at line 135 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), IsBold(), and PDF_STROKE_FONT_SUBSET().

◆ m_isItalic

bool PDF_STROKE_FONT_SUBSET::m_isItalic
private

Definition at line 136 of file pdf_stroke_font.h.

Referenced by IsItalic(), and PDF_STROKE_FONT_SUBSET().

◆ m_lastCode

int PDF_STROKE_FONT_SUBSET::m_lastCode
private

Definition at line 127 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), LastChar(), and PDF_STROKE_FONT_SUBSET().

◆ m_nextCode

int PDF_STROKE_FONT_SUBSET::m_nextCode
private

Definition at line 126 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), IsFull(), and PDF_STROKE_FONT_SUBSET().

◆ m_resourceName

std::string PDF_STROKE_FONT_SUBSET::m_resourceName
private

Definition at line 121 of file pdf_stroke_font.h.

Referenced by PDF_STROKE_FONT_SUBSET(), and ResourceName().

◆ m_toUnicodeHandle

int PDF_STROKE_FONT_SUBSET::m_toUnicodeHandle
private

Definition at line 134 of file pdf_stroke_font.h.

Referenced by PDF_STROKE_FONT_SUBSET(), SetToUnicodeHandle(), and ToUnicodeHandle().

◆ m_unicodeToCode

std::map<wxUniChar, int> PDF_STROKE_FONT_SUBSET::m_unicodeToCode
private

Definition at line 123 of file pdf_stroke_font.h.

Referenced by CodeForGlyph(), Contains(), and EnsureGlyph().

◆ m_unitsPerEm

double PDF_STROKE_FONT_SUBSET::m_unitsPerEm
private

Definition at line 120 of file pdf_stroke_font.h.

Referenced by EnsureGlyph(), PDF_STROKE_FONT_SUBSET(), and UnitsPerEm().

◆ m_widths

std::vector<double> PDF_STROKE_FONT_SUBSET::m_widths
private

Definition at line 125 of file pdf_stroke_font.h.

Referenced by BuildWidthsArray(), EnsureGlyph(), PDF_STROKE_FONT_SUBSET(), and Widths().


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