Re: [hackers] Announcing libschrift (a TrueType font rendering library)

From: Thomas Oltmann <>
Date: Mon, 20 Apr 2020 16:00:04 +0200

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:

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:

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

This archive was generated by hypermail 2.3.0 : Mon Apr 20 2020 - 16:12:38 CEST