dfrg / swash

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

Examples #2

Closed Kethku closed 1 year ago

Kethku commented 3 years ago

It would be useful to have a minimal example of shaping some text or similar functionality. This way somebody could bootstrap themselves easier when they find the library.

Side note: incredible work. I've been waiting for a library like this for ages. Between this and rustybuzz, things are looking up.

dfrg commented 3 years ago

Hi Keith!

First, I really do appreciate the sponsorship. Thank you for that and for the kind words.

I have actually been working on the abysmal documentation on and off for the past few hours and will be continuing for a few more. I haven't quite reached the shaper yet, but I will make sure to get some notes and an example there by the end of the day. The usage is a bit unconventional compared to other shapers so it definitely requires some explanation.

If you have any specific questions, please let me know.

kirawi commented 3 years ago

Oh yeah, a demo was posted here: https://github.com/dfrg/swash_demo

TarVK commented 2 weeks ago

This is far from a "minimal" example. It is great to have, but I would still love some very minimalistic examples!