aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/KeyMap.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-03-30 10:27:05 +1100
committernyamatongwe <unknown>2011-03-30 10:27:05 +1100
commitf88ad3864ccdf534e46cc004b377b2c08d318a04 (patch)
tree2efa44a4ecfe7b1b864c2c049d1bc6397b779bc3 /src/KeyMap.h
parentef7f8a349a89dd7d72d62f7a162cb3e553ca4ba6 (diff)
downloadscintilla-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 'src/KeyMap.h')
0 files changed, 0 insertions, 0 deletions