Open jhenstridge opened 3 years ago
Proper text rendering could be don with pango. I'm working on that. Unfortunately, my fork already diverged too much to make a PR feasible :/
Chuck it in a repo so we can compare them. It might not be that bad.
On Sat, 17 Apr 2021, 00:03 Marcel Hellkamp, @.***> wrote:
Proper text rendering could be don with pango. I'm working on that. Unfortunately, my fork already diverged too much to make a PR feasible :/
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/plugorgau/bbb-render/pull/9#issuecomment-821279330, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKONLBJ2GCH3XPQMCAB6J3TJBNUZANCNFSM42QUYGOQ .
Here's a first attempt to get text annotations working. It is enough to get @symptog's presentation to render the text (at about the 50 second mark):
https://user-images.githubusercontent.com/12724165/113862603-2fc4f100-97db-11eb-9ad5-e7e15becaa00.mp4
... however it has some limitations. Namely it will not wrap long lines to fit the bounding box of the original HTML text. The positioning is not quite the same either, since the SVG text is positioned by the baseline rather than top left of bounding box.
I needed to convert the
color
CSS property tofill
for colour to be applied. It's possible some other properties might need adjusting too.