]> git.eshelyaron.com Git - emacs.git/commit
Avoid assertion violations with variable-weight fonts
authorEli Zaretskii <eliz@gnu.org>
Wed, 12 Jan 2022 14:52:14 +0000 (16:52 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 12 Jan 2022 14:52:14 +0000 (16:52 +0200)
commit7ebcb4b6f2f4531ebc893bb3b2f74d6298bf9b41
treeb14de367a636c8ad50272828979e509fce35f872
parentf373b52ba91ff9b1e04578e6c42efd2414ddf1fa
Avoid assertion violations with variable-weight fonts

* src/font.c (font_score, font_delete_unmatched): Don't assume
weight, slant, and width properties of the font must be fixnums:
some variable-weight fonts violate that assumption.  Reported
by Sean Whitton <spwhitton@spwhitton.name>.  This is for builds
with Fontconfig < v2.11.91, for which the fix in
'ftfont_pattern_entity' cannot work.  (Bug#52888)
src/font.c