Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix incorrect text width with newer (1.43?) Pango
Text renders wider or narrower, as if letter-spacing is set, than it should with newer versions of Pango. My best understanding of this problem is that around version 1.43 Pango dropped support for subpixel antialiasing because it switched to Harbuzz for glyph postions instead of Freetype. For some reason it still rounds the glyph positions by default. There's no need for node-canvas to support subpixel antialiasing. The maintainers of the Linux font stack (Behdad and Matthias) have stated that they wont, and it's subjective, and node-canvas cannot make any assumptions about DPI anyways. Reading (warning: lots of drama to wade through): - https://gitlab.gnome.org/GNOME/pango/-/issues/404 - https://gitlab.gnome.org/GNOME/pango/-/issues/463 - harfbuzz/harfbuzz#1892 - harfbuzz/harfbuzz#2394
- Loading branch information