| 
    KiCad PCB EDA Suite
    
   | 
 
#include <pdf_outline_font.h>
Classes | |
| struct | GLYPH_KEY | 
Public Member Functions | |
| PDF_OUTLINE_FONT_SUBSET (KIFONT::OUTLINE_FONT *aFont, unsigned aSubsetIndex) | |
| uint16_t | EnsureGlyph (uint32_t aGlyphIndex, const std::u32string &aUnicode) | 
| bool | HasGlyphs () const | 
| const std::string & | ResourceName () const | 
| const std::string & | BaseFontName () const | 
| const std::vector< double > & | Widths () const | 
| const std::vector< uint16_t > & | CIDToGID () const | 
| const std::vector< std::u32string > & | CIDToUnicode () const | 
| double | UnitsPerEm () const | 
| double | Ascent () const | 
| double | Descent () const | 
| double | CapHeight () const | 
| double | ItalicAngle () const | 
| double | StemV () const | 
| double | BBoxMinX () const | 
| double | BBoxMinY () const | 
| double | BBoxMaxX () const | 
| double | BBoxMaxY () const | 
| int | Flags () const | 
| const std::vector< uint8_t > & | FontFileData () | 
| std::string | BuildWidthsArray () const | 
| std::string | BuildToUnicodeCMap () const | 
| std::string | BuildCIDToGIDStream () const | 
| void | SetFontFileHandle (int aHandle) | 
| int | FontFileHandle () const | 
| void | SetFontDescriptorHandle (int aHandle) | 
| int | FontDescriptorHandle () const | 
| void | SetCIDFontHandle (int aHandle) | 
| int | CIDFontHandle () const | 
| void | SetCIDMapHandle (int aHandle) | 
| int | CIDMapHandle () const | 
| void | SetToUnicodeHandle (int aHandle) | 
| int | ToUnicodeHandle () const | 
| void | SetFontHandle (int aHandle) | 
| int | FontHandle () const | 
| KIFONT::OUTLINE_FONT * | Font () const | 
| void | ForceSyntheticStyle (bool aBold, bool aItalic, double aItalicAngleDeg) | 
Private Member Functions | |
| void | ensureNotdef () | 
Static Private Member Functions | |
| static std::string | makeResourceName (unsigned aSubsetIndex) | 
| static std::string | makeSubsetName (KIFONT::OUTLINE_FONT *aFont, unsigned aSubsetIndex) | 
| static std::string | sanitizeFontName (const wxString &aName) | 
Private Attributes | |
| KIFONT::OUTLINE_FONT * | m_font | 
| std::string | m_resourceName | 
| std::string | m_baseFontName | 
| std::vector< double > | m_widths | 
| std::vector< uint16_t > | m_cidToGid | 
| std::vector< std::u32string > | m_cidToUnicode | 
| std::map< GLYPH_KEY, uint16_t > | m_glyphMap | 
| double | m_unitsPerEm | 
| double | m_ascent | 
| double | m_descent | 
| double | m_capHeight | 
| double | m_italicAngle | 
| double | m_stemV | 
| double | m_bboxMinX | 
| double | m_bboxMinY | 
| double | m_bboxMaxX | 
| double | m_bboxMaxY | 
| int | m_flags | 
| std::vector< uint8_t > | m_fontData | 
| bool | m_fontDataLoaded | 
| uint16_t | m_nextCID | 
| int | m_fontFileHandle | 
| int | m_fontDescriptorHandle | 
| int | m_cidFontHandle | 
| int | m_cidMapHandle | 
| int | m_toUnicodeHandle | 
| int | m_fontHandle | 
Definition at line 53 of file pdf_outline_font.h.
| PDF_OUTLINE_FONT_SUBSET::PDF_OUTLINE_FONT_SUBSET | ( | KIFONT::OUTLINE_FONT * | aFont, | 
| unsigned | aSubsetIndex ) | 
Definition at line 105 of file pdf_outline_font.cpp.
References KIFONT::OUTLINE_FONT::GetFace(), KIFONT::OUTLINE_FONT::IsBold(), KIFONT::OUTLINE_FONT::IsItalic(), m_ascent, m_baseFontName, m_bboxMaxX, m_bboxMaxY, m_bboxMinX, m_bboxMinY, m_capHeight, m_cidFontHandle, m_cidMapHandle, m_cidToGid, m_cidToUnicode, m_descent, m_flags, m_font, m_fontDataLoaded, m_fontDescriptorHandle, m_fontFileHandle, m_fontHandle, m_italicAngle, m_nextCID, m_resourceName, m_stemV, m_toUnicodeHandle, m_unitsPerEm, m_widths, makeResourceName(), and makeSubsetName().
      
  | 
  inline | 
Definition at line 70 of file pdf_outline_font.h.
References m_ascent.
      
  | 
  inline | 
Definition at line 63 of file pdf_outline_font.h.
References m_baseFontName.
      
  | 
  inline | 
Definition at line 77 of file pdf_outline_font.h.
References m_bboxMaxX.
      
  | 
  inline | 
Definition at line 78 of file pdf_outline_font.h.
References m_bboxMaxY.
      
  | 
  inline | 
Definition at line 75 of file pdf_outline_font.h.
References m_bboxMinX.
      
  | 
  inline | 
Definition at line 76 of file pdf_outline_font.h.
References m_bboxMinY.
| std::string PDF_OUTLINE_FONT_SUBSET::BuildCIDToGIDStream | ( | ) | const | 
Definition at line 355 of file pdf_outline_font.cpp.
References m_cidToGid, and m_nextCID.
| std::string PDF_OUTLINE_FONT_SUBSET::BuildToUnicodeCMap | ( | ) | const | 
Definition at line 302 of file pdf_outline_font.cpp.
References empty(), m_baseFontName, m_cidToUnicode, and m_nextCID.
| std::string PDF_OUTLINE_FONT_SUBSET::BuildWidthsArray | ( | ) | const | 
Definition at line 266 of file pdf_outline_font.cpp.
References m_nextCID, m_widths, and tracePdfPlotter.
      
  | 
  inline | 
Definition at line 72 of file pdf_outline_font.h.
References m_capHeight.
      
  | 
  inline | 
Definition at line 94 of file pdf_outline_font.h.
References m_cidFontHandle.
      
  | 
  inline | 
Definition at line 97 of file pdf_outline_font.h.
References m_cidMapHandle.
      
  | 
  inline | 
Definition at line 66 of file pdf_outline_font.h.
References m_cidToGid.
      
  | 
  inline | 
Definition at line 67 of file pdf_outline_font.h.
References m_cidToUnicode.
      
  | 
  inline | 
Definition at line 71 of file pdf_outline_font.h.
References m_descent.
| uint16_t PDF_OUTLINE_FONT_SUBSET::EnsureGlyph | ( | uint32_t | aGlyphIndex, | 
| const std::u32string & | aUnicode ) | 
Definition at line 179 of file pdf_outline_font.cpp.
References ensureNotdef(), m_cidToGid, m_cidToUnicode, m_font, m_glyphMap, m_nextCID, m_unitsPerEm, m_widths, and tracePdfPlotter.
Referenced by PDF_OUTLINE_FONT_MANAGER::EncodeString().
      
  | 
  private | 
Definition at line 169 of file pdf_outline_font.cpp.
References m_cidToGid, m_cidToUnicode, and m_widths.
Referenced by EnsureGlyph().
      
  | 
  inline | 
Definition at line 79 of file pdf_outline_font.h.
References m_flags.
      
  | 
  inline | 
Definition at line 105 of file pdf_outline_font.h.
References m_font.
Referenced by PDF_OUTLINE_FONT_MANAGER::ensureSubset().
      
  | 
  inline | 
Definition at line 91 of file pdf_outline_font.h.
References m_fontDescriptorHandle.
| const std::vector< uint8_t > & PDF_OUTLINE_FONT_SUBSET::FontFileData | ( | ) | 
Definition at line 235 of file pdf_outline_font.cpp.
References m_font, m_fontData, and m_fontDataLoaded.
      
  | 
  inline | 
Definition at line 88 of file pdf_outline_font.h.
References m_fontFileHandle.
      
  | 
  inline | 
Definition at line 103 of file pdf_outline_font.h.
References m_fontHandle.
      
  | 
  inline | 
Definition at line 107 of file pdf_outline_font.h.
References m_flags, m_italicAngle, and m_stemV.
Referenced by PDF_OUTLINE_FONT_MANAGER::ensureSubset().
| bool PDF_OUTLINE_FONT_SUBSET::HasGlyphs | ( | ) | const | 
Definition at line 164 of file pdf_outline_font.cpp.
References m_nextCID.
      
  | 
  inline | 
Definition at line 73 of file pdf_outline_font.h.
References m_italicAngle.
      
  | 
  staticprivate | 
Definition at line 374 of file pdf_outline_font.cpp.
Referenced by PDF_OUTLINE_FONT_SUBSET().
      
  | 
  staticprivate | 
Definition at line 399 of file pdf_outline_font.cpp.
References KIFONT::FONT::GetName(), name, and sanitizeFontName().
Referenced by PDF_OUTLINE_FONT_SUBSET().
      
  | 
  inline | 
Definition at line 62 of file pdf_outline_font.h.
References m_resourceName.
      
  | 
  staticprivate | 
Definition at line 379 of file pdf_outline_font.cpp.
References UTF8::substr().
Referenced by makeSubsetName().
      
  | 
  inline | 
Definition at line 93 of file pdf_outline_font.h.
References m_cidFontHandle.
      
  | 
  inline | 
Definition at line 96 of file pdf_outline_font.h.
References m_cidMapHandle.
      
  | 
  inline | 
Definition at line 90 of file pdf_outline_font.h.
References m_fontDescriptorHandle.
      
  | 
  inline | 
Definition at line 87 of file pdf_outline_font.h.
References m_fontFileHandle.
      
  | 
  inline | 
Definition at line 102 of file pdf_outline_font.h.
References m_fontHandle.
      
  | 
  inline | 
Definition at line 99 of file pdf_outline_font.h.
References m_toUnicodeHandle.
      
  | 
  inline | 
Definition at line 74 of file pdf_outline_font.h.
References m_stemV.
      
  | 
  inline | 
Definition at line 100 of file pdf_outline_font.h.
References m_toUnicodeHandle.
      
  | 
  inline | 
Definition at line 69 of file pdf_outline_font.h.
References m_unitsPerEm.
Referenced by PDF_OUTLINE_FONT_MANAGER::EncodeString().
      
  | 
  inline | 
Definition at line 65 of file pdf_outline_font.h.
References m_widths.
      
  | 
  private | 
Definition at line 143 of file pdf_outline_font.h.
Referenced by Ascent(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 137 of file pdf_outline_font.h.
Referenced by BaseFontName(), BuildToUnicodeCMap(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 150 of file pdf_outline_font.h.
Referenced by BBoxMaxX(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 151 of file pdf_outline_font.h.
Referenced by BBoxMaxY(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 148 of file pdf_outline_font.h.
Referenced by BBoxMinX(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 149 of file pdf_outline_font.h.
Referenced by BBoxMinY(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 145 of file pdf_outline_font.h.
Referenced by CapHeight(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 159 of file pdf_outline_font.h.
Referenced by CIDFontHandle(), PDF_OUTLINE_FONT_SUBSET(), and SetCIDFontHandle().
      
  | 
  private | 
Definition at line 160 of file pdf_outline_font.h.
Referenced by CIDMapHandle(), PDF_OUTLINE_FONT_SUBSET(), and SetCIDMapHandle().
      
  | 
  private | 
Definition at line 139 of file pdf_outline_font.h.
Referenced by BuildCIDToGIDStream(), CIDToGID(), EnsureGlyph(), ensureNotdef(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 140 of file pdf_outline_font.h.
Referenced by BuildToUnicodeCMap(), CIDToUnicode(), EnsureGlyph(), ensureNotdef(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 144 of file pdf_outline_font.h.
Referenced by Descent(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 152 of file pdf_outline_font.h.
Referenced by Flags(), ForceSyntheticStyle(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 135 of file pdf_outline_font.h.
Referenced by EnsureGlyph(), Font(), FontFileData(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 153 of file pdf_outline_font.h.
Referenced by FontFileData().
      
  | 
  private | 
Definition at line 154 of file pdf_outline_font.h.
Referenced by FontFileData(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 158 of file pdf_outline_font.h.
Referenced by FontDescriptorHandle(), PDF_OUTLINE_FONT_SUBSET(), and SetFontDescriptorHandle().
      
  | 
  private | 
Definition at line 157 of file pdf_outline_font.h.
Referenced by FontFileHandle(), PDF_OUTLINE_FONT_SUBSET(), and SetFontFileHandle().
      
  | 
  private | 
Definition at line 162 of file pdf_outline_font.h.
Referenced by FontHandle(), PDF_OUTLINE_FONT_SUBSET(), and SetFontHandle().
      
  | 
  private | 
Definition at line 141 of file pdf_outline_font.h.
Referenced by EnsureGlyph().
      
  | 
  private | 
Definition at line 146 of file pdf_outline_font.h.
Referenced by ForceSyntheticStyle(), ItalicAngle(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 155 of file pdf_outline_font.h.
Referenced by BuildCIDToGIDStream(), BuildToUnicodeCMap(), BuildWidthsArray(), EnsureGlyph(), HasGlyphs(), and PDF_OUTLINE_FONT_SUBSET().
      
  | 
  private | 
Definition at line 136 of file pdf_outline_font.h.
Referenced by PDF_OUTLINE_FONT_SUBSET(), and ResourceName().
      
  | 
  private | 
Definition at line 147 of file pdf_outline_font.h.
Referenced by ForceSyntheticStyle(), PDF_OUTLINE_FONT_SUBSET(), and StemV().
      
  | 
  private | 
Definition at line 161 of file pdf_outline_font.h.
Referenced by PDF_OUTLINE_FONT_SUBSET(), SetToUnicodeHandle(), and ToUnicodeHandle().
      
  | 
  private | 
Definition at line 142 of file pdf_outline_font.h.
Referenced by EnsureGlyph(), PDF_OUTLINE_FONT_SUBSET(), and UnitsPerEm().
      
  | 
  private | 
Definition at line 138 of file pdf_outline_font.h.
Referenced by BuildWidthsArray(), EnsureGlyph(), ensureNotdef(), PDF_OUTLINE_FONT_SUBSET(), and Widths().