aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ContractionState.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-03-30 10:27:05 +1100
committernyamatongwe <devnull@localhost>2011-03-30 10:27:05 +1100
commit8d7937803d186c9a5ad3e256fc93503ba861ee78 (patch)
tree0b1009491da396da383186d0560c11966362de40 /src/ContractionState.h
parent3ed550474301fa98e75c23d1f9c55763b296224e (diff)
downloadscintilla-mirror-8d7937803d186c9a5ad3e256fc93503ba861ee78.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/ContractionState.h')
0 files changed, 0 insertions, 0 deletions