Closed Tux closed 8 months ago
If you $i->save('1.bmp')
with results of text_out(text) and text_out(text_shape(text)) you would see that the first result has a huge gaps between glyphs an looks like "1 2" and the second is okay and looks like it should "12". So I'd assume that this is either a bad font or much less probable a bug in harfbuzz (the shaping library), because what font designer in a sane mind would do that.
You can run this f ex:
> hb-view ~/.fonts/misc/iosevka-curly-slab.ttc 12
▃▉▌ ▃▙▄▅▅▄▟▄
▁▃▙▆ ▉ ▗ ▖
▙▆ ▉ ▌▏
▉ ▉
▉
▉ ▂▙
▉ ▁▖▄▇
▉ ▃▙▆
▉ ▇
▉ ▖
▉ ▋▎ ▉
▗▃▃▃▃▃ ▃▃▃▃▖ ▌▃▃▃▃▃▃▃▃▃▃▌
that's these gaps I'm talking about.
I'd ignore that error, if anything
hb-view /usr/share/fonts/truetype/IosevkaCurlySlab-Regular.ttc 12
rpm -qf /usr/share/fonts/truetype/IosevkaCurlySlab-Regular.ttc
iosevka-curly-slab-fonts-5.0.0-2.1.noarch
I don't need these fonts for anything.
$ rpm -qa | grep -i iosevka | xargs sudo zypper rm`
$ make test
:
:
All tests successful.
Files=42, Tests=10192, 44 wallclock secs ( 0.87 usr 0.09 sys + 57.45 cusr 1.87 csys = 60.28 CPU)
Result: PASS
Maybe filter this buggy font in your tests :) Thanks for the hints
How do I debug this?
This is the list of resolved dependencies of Prima.so: