bbb-render icon indicating copy to clipboard operation
bbb-render copied to clipboard

make-xges: Perform a simplistic conversion of text annotations

Open jhenstridge opened this issue 4 years ago • 2 comments

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

jhenstridge avatar Apr 07 '21 12:04 jhenstridge

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

defnull avatar Apr 16 '21 16:04 defnull

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 .

Zorlin avatar Apr 16 '21 19:04 Zorlin