Circling back to this thread took a while. On Fri, Jun 30, 2023 at 6:47 PM Werner LEMBERG <w...@gnu.org> wrote:
> > > I have the output with TRACE7, it's quite big, should I post it here > > or if you suggest other sharing means? > > This is probably not necessary; mentioning the debugging support was > basically meant for your own education. > Okay sure, that was one of the best help I could get. > > > I am posting my script if you want to try at your end > > Thanks, but I'm not a Python guy, so I won't test this by myself. > No problem. > > > font = pygame.freetype.Font("/usr/share/fonts/truetype/Sarai/Sarai.ttf", > 50) > pygame spec says its font size. > > I haven't found this font in the internet. What I could find, > however, was a font called `Sarai Regular.ttf` (from 2007, version > 1.0). The number 50 indicates the PPEM value, right? Font size. > If so, hinting > doesn't matter much, provided the hints are OK[*]: at such large sizes > it is normally rather irrelevant whether you use hinting or not since > the difference is very small. > Okay. > > Anyway, attached you can see three images of `Sarai Regular`, showing > the output of `ftview` at a size of 16ppem: > > * after pressing key 'B' to show TrueType hinting > * after pressing key 'C' to show 'light' (i.e., auto) hinting > * pressing 'h' to switch off hinting. > > As far as I can tell, the auto-hinted version looks quite good. > Tried all and I agree with your assessment. > > > Werner > > > [*] It's not OK for this particular font, for example, look at glyph > 'glyph177' (glyph index 182), which distorts the horizontal bar. >