emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Use fontconfig spec for parsing font-weight.


From: Yukio Siraichi
Subject: [PATCH] Use fontconfig spec for parsing font-weight.
Date: Mon, 17 May 2021 13:37:31 +0900
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1

Hi.

This patch addresses one of the differences between 'fontconfig' font-weight table, and the one inside emacs. Basically, the problem was that emacs wasn't listing fonts whose weight=55. However, those are defined to be 'semilight' in the fontconfig specification (see link below).

Reproducing this problem only requires the existence of fonts whose weight=55 (one can use fc-cat for that). It's possible to observe that such fonts are not found in 'x-list-fonts' or when running 'describe-font'.

https://www.freedesktop.org/software/fontconfig/fontconfig-user.html

I don't fully understand how emacs is using the 'weight_table' (in font.c), so my explanation may not be fully correct, but this patch does make (fontconfig) semilight fonts show up.

Regards,

Yukio

Attachment: 0001-Use-fontconfig-spec-for-parsing-font-weight.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]