[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: display-supports-face-attributes-p question
From: |
Po Lu |
Subject: |
Re: display-supports-face-attributes-p question |
Date: |
Sun, 29 Aug 2021 21:54:38 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> When the call to lookup_face in gui_supports_face_attributes_p gets
> into realize_gui_face, please show the results of
>
> (gdb) pp attrs[LFACE_FONT_INDEX]
>
> before and after the call to font_load_for_lface in this snippet:
>
> if (! FONT_OBJECT_P (attrs[LFACE_FONT_INDEX]))
> attrs[LFACE_FONT_INDEX]
> = font_load_for_lface (f, attrs, Ffont_spec (0, NULL));
Before:
#<font-spec nil haiku Noto\ Sans\ Mono nil iso8859-1 normal nil normal 12
nil 100 0 ((:user-spec . "monospace"))>
And after:
#<font-object "-haiku-Noto Sans
Mono-normal-normal-normal-*-12-*-*-*-m-0-iso8859-1">
I don't exactly understand what the code does, but that seems wrong. I
think both the spec and the object should be italic?