dfrg / swash

Font introspection, complex text shaping and glyph rendering.
Apache License 2.0
584 stars 34 forks source link

Add the ability to flip outlines #47

Closed MoSal closed 4 months ago

MoSal commented 4 months ago

If I'm not mistaken, Transform does not cover horizontal/vertical flip use-cases.

dfrg commented 4 months ago

I believe h_flip and v_flip should be equivalent to Transform::scale(-1.0, 1.0) and Transform::scale(1.0, -1.0) respectively. Do these not provide the desired effect?

MoSal commented 4 months ago

Yep. I suspected I was missing something obvious.