Collabora Productivity
LibreOffice Conference 2019, Tirana | Miklos Vajna 4 / 5
Work done: Writer
Good news
●
Everything goes through SwFntObj
●
Can cache GetTextArray(), DrawTextArray(), GetTextWidth(),
GetTextBreak() calls on OutputDevice
Bad news
●
Need a cache: SwFntObj typically doesn’t have a good idea about the
lifecycle of the created text layout
●
For now: SwTextGlyphsKey stores which subset of which text was laid
out on which output device
●
Storing the full output device state is too expensive
●
Can’t handle everything transparently in VCL