]> git.eshelyaron.com Git - emacs.git/commit
Support the "medium" font weight
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 21 Oct 2021 02:30:02 +0000 (04:30 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 21 Oct 2021 02:30:02 +0000 (04:30 +0200)
commit65fd3ca84f75aee0dfebb87fa793dae57c1caf35
tree929b299592e19b39fafc0bbbcccdc6175133f8ef
parent4e9764e6a155aa403d69d38fa06f4a774140f63c
Support the "medium" font weight

* lisp/faces.el (set-face-attribute): Mention new font weights in
doc string.
* src/font.c (struct table_entry): Allow more synonyms.
(weight_table): Expand to support separating medium and normal
weights.  Also add heavy/ultra-heavy and some other variants.
(font_parse_fcname): Support more names.

* src/gtkutil.c (xg_weight_to_symbol): Support all the Pango weights.
(xg_style_to_symbol): Make into functions.
(xg_get_font): Adjust.

* src/w32font.c (w32_to_fc_weight): Use symbols.

* src/xfaces.c (syms_of_xfaces): Add the new symbols.
etc/NEWS
lisp/faces.el
src/font.c
src/gtkutil.c
src/w32font.c
src/xfaces.c