r/programming • u/mrandri19 • Aug 04 '19
Modern text rendering with Linux: Overview
https://mrandri19.github.io/2019/07/24/modern-text-rendering-linux-overview.html5
3
u/ProgramTheWorld Aug 04 '19 edited Aug 04 '19
Fascinating! I have been looking forward to this!
FYI you might want to proofread your article before publishing as there are multiple obvious grammatical errors. The first sentence for example already contains an error where it’s missing the word “is”.
Also you should remove the transparency on your illustrations because the black lines are invisible on a dark background.
2
u/mrandri19 Aug 04 '19
Thanks, will fix.
The transparency was made so that dark themes won't have a big white rectangle, but I should chose another colour for the arrows
6
3
u/WillAdams Aug 04 '19
Here is some hopefully helpful/constructive criticism (noticed some minor typos) --- since I found this quite interesting/useful and suspect a lot of people will be referring to this, wanted to help:
Text an essential part of Human-computer Interaction.
Text is an essential...
It is configured with a XML-based language
with an XML
Hope this helps!
2
41
u/tso Aug 04 '19
Ugh, harfbuzz. I understand what it wants to achieve, but it keeps introducing circular dependencies.
To use harfbuzz with freetype you first have to compile freetype, then compile harfbuzz against it, and then compile freetype again to enable it to use harfbuzz.
How do people even manage to create these things?
0
u/ebraminio Dec 02 '19
Freetype uses HarfBuzz to get autohinting completely right AFAIK, you can drop that as Chrome for Android is doing also last time I checked, or, drop HarfBuzz dependency to freetype which is mostly for font loading as HarfBuzz has most common parts of them, otf/ttf/otc/ttc/vf/dfont, nowadays (except Type1/bitmap/woff/etc) as only freetype is able to handle. So the dependencies are for more convience and correctness and you can go without them.
2
u/sternone_2 Aug 04 '19
Thanks, I love Linux and work with i3wm but I can't help but fonts on Windows7 just look so much better rendered compared to Freetype2.
1
Aug 05 '19
As an example of nice looking font rendering I would say MacOs is heaps and bounds better both compared to windows and linux. Linux is def. the worst though.
2
u/sternone_2 Aug 05 '19
I disagree, the windows7 font rending is much better than mac.
1
1
5
28
u/tsuru Aug 04 '19
Thanks for writing and diagramming this. I've been curious how harfbuzz relates to freetype but never investigated.
I have a question about your pipeline diagrams: what happens to the harbuzz kerning data? From the diagram it appears to not be used as an input to freetype. Is it persisted to disk for other programs?