wxMaxima
Loading...
Searching...
No Matches
Data Structures
FontRenderabilityCache.h File Reference

Declares FontRenderabilityCache: which chars can each font render? More...

#include <wx/confbase.h>
#include <wx/font.h>
#include <wx/hashmap.h>
#include <wx/string.h>
#include <unordered_map>
Include dependency graph for FontRenderabilityCache.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  FontRenderabilityCache
 Caches which characters each font can actually render. More...
 

Detailed Description

Declares FontRenderabilityCache: which chars can each font render?

Another step of splitting the Configuration god class: finding out whether a font actually renders a character (rather than drawing nothing or a placeholder glyph) means rasterizing it and comparing bitmaps, which is way too slow to do on every use - so the verdicts are cached per font, and the cache is persisted in the configuration storage. That probe-and-cache logic now lives in this class; Configuration owns one and delegates its existing accessors, so its dependents are unaffected.