columns_ui
columns_ui copied to clipboard
Use DirectWrite to render text
If possible.
See also colour fonts: https://docs.microsoft.com/en-us/windows/win32/directwrite/color-fonts
Hi!
i've implemented a win7 compatible GDI dwrite renderer (color fonts/emoji support), finetuned to be gdi text-metrics compatible, in my fork of foo_spider_monkey_panel, however i'm currently refactoring / breaking up my branch it's on, but still, the sources could be useful for refrerence:
- implementation: utils/dwrite_renderer.cpp + utils/dwrite_renderer.h
- usage examples (a try at GDI and a GDI+ compatible wrapper call): js_objects/gdi_graphics.cpp#L1329-L1602 (warning: horrendously long functions, in dire need of refactoring)
Thanks, that could be useful when I get to this 😄
+1 for this, for the color emoji support. I increasingly see these used in song titles.