Open softworkz opened 10 months ago
Geometry strikethrough has an interesting effect xD
For 2D vector graphics, this is not unusual. There's typically a setting somewhere to control the treatment of intersections.
I believe it can also be fixed by inserting an additional point in the path. The logic for intersections also depends on whether the path has an odd or even number of points (but that part is all IIRC only).
Yeah I figured out the fix by the time I posted that, I just find the way it looks funny.
So the fix for that was to use a custom ICanvasTextRenderer, which allows you to override how the underline and strike-through are drew. Per character colors and per character outlines can also be done this way, although the outlines are still elusive. Eventually you need to draw all text as geometries if you want advanced stuff like underline, italics etc
In retrospect it is indeed not that difficult to implement the same level of SSA support as Windows.Media has. In fact, we could easily build something similar to libass with win2D by ourselves.
Just wanted to check back: Has this ever worked for any of you so far?