Hi Hiltjo!
> It looks interesting. I think it's useful if you're using the drw.c interfaces
> (as a wrapper) for this. It can be found in the libsl repo:
>
> https://git.suckless.org/libsl/files.html
Yeah that's probably the best course of action here.
I'm just not quite sure how to do the matching of font names to
concrete file paths;
drw currently uses FontConfig for this, but I don't know if that thing
can even work
without FreeType2.
> I've had a similar project based on a stripped-down/cleanup version of stb_truetype:
> https://github.com/nothings/stb/blob/master/stb_truetype.h
Actually, stb_truetype has also been a bit of an inspiration for libschrift.
Its author, Sean Barrett, has a great writeup of his rasterization algorithm,
which was very helpful in getting me going.
Since then though, I developed my own much simpler algorithm that relies on
2D raycasting instead of scanline rasterization (which is what
stb_truetype does).
Best regards,
Thomas Oltmann
Received on Mon Apr 20 2020 - 16:00:04 CEST