Initial hack for OpenGL glyph caching on Windows

Desktop / LibreOffice - Tor Lillqvist [collabora.com] - 19 August 2015 01:27 UTC

Shows text roughly correctly, but many problems. Conditional at run-time on the SAL_ENABLE_GLYPH_CACHING environment variable in addition to SAL_FORCEGL.

One obvious thing that needs fixing is making sure that the glyphs are rendered into the texture without overlap. Compensating negative
values in the ABC::abcA and ABC::abdC width is not enough.

Also, the cache should be changed to actually have "cache" functionality, i.e. entries should expire based on some criterion.

d4ade4a Initial hack for OpenGL glyph caching on Windows
vcl/inc/win/salgdi.h | 1 +
vcl/win/source/gdi/winlayout.cxx | 341 ++++++++++++++++++++++++++++++++++++++
vcl/win/source/gdi/winlayout.hxx | 8 +-
3 files changed, 349 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share