Almar Klein
Almar Klein
> you still have to implement line wrapping, justification and alignment etc yourself. I was hoping there are engines available for that! Yes, that part is done in Python :)...
I've done some digging and organized my understanding of our options in the top post. The first thing we should do, I think, is agree on the goals. I made...
Here's a little Python script I used to call `msdf-atlas-gen`. (I already lost it once when my computer died last week, so I figured I'd post it here.) ```py """...
> You might find this MEP interesting, Wow, I did not realize how similar their needs are to ours. Sounds like it could be a separate lib that more projects...
I'm not sure if I mentioned this before, but freetype can generate an SDF nowadays. That makes things easier.
https://tympanus.net/codrops/2019/10/10/create-text-in-three-js-with-three-bmfont-text/
Here's a diagram from [Rougier's Siggraph talk from 2018](https://www.slideshare.net/NicolasRougier1/siggraph-2018-digital-typography): I propose to mostly follow this schedule. That way we can skip some steps initially, but just fill in the steps...
Yes, we can start with the Latin shortcut :) Maybe having stubs for the other steps, or at least have an implementation that makes it easy to add steps later.
That step is basically this: get the Unicode ints, look the glyph up in the font file, generate an SDF from the glyph, put it in an atlas to upload...
Yes, for shaping I won't try to do that ourselves :) I took a quick look the other day, and there are several harfbuzz wrappers on Pypi. I haven't looked...