wxMaxima
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
wxPdfFontFallback Class Reference

Internal state of the font fallback feature of one wxPdfDocument instance. More...

#include <pdffontfallback.h>

Public Member Functions

void ClearCache ()
 Forget all cached lookup results (called whenever the configuration changes)
 
bool IsEnabled () const
 Check whether fallback is configured at all.
 

Data Fields

std::vector< wxPdfFont > m_fonts
 Fonts explicitly added by the user via wxPdfDocument::AddFallbackFont(), in priority order.
 
bool m_useSystemFonts
 Flag whether the fonts installed on the system should be searched after m_fonts.
 
std::vector< wxPdfFontExtended > m_resolved
 Concrete fonts that were selected for at least one character ("slots")
 
std::vector< wxPdfFont > m_resolvedFonts
 The user level font object belonging to each entry of m_resolved.
 
std::map< wxString, int > m_slotByKey
 Maps a font key (name + encoding) to its index in m_resolved.
 
std::map< wxUint64, int > m_cache
 Lookup cache: (style << 32 | code point) -> slot index, or -1 if no font has the glyph.
 

Detailed Description

Internal state of the font fallback feature of one wxPdfDocument instance.

The state is kept out of the public header on purpose: it uses STL containers (which would trigger DLL-interface warnings in an exported class) and it is an implementation detail that may change without affecting the ABI of wxPdfDocument.

Field Documentation

◆ m_resolved

std::vector<wxPdfFontExtended> wxPdfFontFallback::m_resolved

Concrete fonts that were selected for at least one character ("slots")

Text runs refer to these by index. The fonts are kept as wxPdfFontExtended so that widths and glyph coverage can be queried without registering the font in the document; registration happens only when text is actually output.


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