diff options
author | nyamatongwe <unknown> | 2011-03-30 10:27:05 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2011-03-30 10:27:05 +1100 |
commit | f88ad3864ccdf534e46cc004b377b2c08d318a04 (patch) | |
tree | 2efa44a4ecfe7b1b864c2c049d1bc6397b779bc3 /macosx/PlatMacOSX.cxx | |
parent | ef7f8a349a89dd7d72d62f7a162cb3e553ca4ba6 (diff) | |
download | scintilla-mirror-f88ad3864ccdf534e46cc004b377b2c08d318a04.tar.gz |
Optimize font use by only allocating platform font resources for unique fonts
and using aliases of these in the Style objects.
Font measurement is also performed once for each unique font and the results
copied into each style.
No change is needed in callers.
On PLAT_WX, the font ascent is cached in the Font object when Ascent is called
but this is not copied into the aliases as ascent is protected. Therefore the
code that copies the FontID into the alias also calls Ascent to ensure the
ascent value is cached.
Diffstat (limited to 'macosx/PlatMacOSX.cxx')
0 files changed, 0 insertions, 0 deletions