]> git.ipfire.org Git - thirdparty/plymouth.git/commit
label-freetype: implement bold font handling
authorFerdinand Bachmann <ferdinand.bachmann@yrlf.at>
Tue, 29 Oct 2024 20:59:57 +0000 (21:59 +0100)
committerFerdinand Bachmann <ferdinand.bachmann@yrlf.at>
Wed, 30 Oct 2024 09:50:22 +0000 (10:50 +0100)
commit42430bcdf895bb9c5f9d0d123282b78500e8c23b
tree59596c3bc2ec5d32200bfaaffd858310ed56d175
parent8bc9364cac02179ae55344e32e30a8b459872d25
label-freetype: implement bold font handling

Bold monospace fonts are prominently used in the console output printed
by systemd. Without them, the output looks incorrect compared to pango.
This still is far from a complete implementation of rich text, but
brings label-freetype much closer to what label-pango does for the
default theme.

This commit introduces a glyph_face variable in load_glyphs() that holds
the correct face for the current glyph (label->face or
label->bold_face). This face is then passed on to load_glyph() and
finish_measuring_line() to ensure correct font measurements.
src/plugins/controls/label-freetype/plugin.c