Skip to content

Conversation

@jhenstridge
Copy link
Member

@jhenstridge jhenstridge commented Apr 7, 2021

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):

annotations-test2.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 to fill for colour to be applied. It's possible some other properties might need adjusting too.

@defnull
Copy link

defnull commented Apr 16, 2021

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 :/

@Zorlin
Copy link

Zorlin commented Apr 16, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants