diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-01 19:40:42 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-01 19:40:42 +0000 |
| commit | 43462b24f369a1b5d71be455adbcc1f474b33a1a (patch) | |
| tree | 2ccb6b4897cdd1abe146c65df5b81e33c08600eb /scripts | |
| parent | completions: zsh: add --server and --term to completions (diff) | |
font: cache loaded fonts globally
Each font instance has a ref-counter. Whenever we want to instantiate
a font that has already been loaded, we instead return the
already-loaded instance, and bump the ref counter.
When the last font instance is destroyed, it is also removed from the
cache.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
