mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-17 16:41:17 -08:00
(set_font_frame_param): Don't try to set the font parameter if it is
still unspecified in the lface.
This commit is contained in:
parent
fe5d61c40b
commit
be22aa9713
1 changed files with 6 additions and 3 deletions
|
|
@ -3501,11 +3501,14 @@ set_font_frame_param (frame, lface)
|
|||
Lisp_Object frame, lface;
|
||||
{
|
||||
struct frame *f = XFRAME (frame);
|
||||
Lisp_Object font;
|
||||
|
||||
if (FRAME_WINDOW_P (f))
|
||||
if (FRAME_WINDOW_P (f)
|
||||
/* Don't do anything if the font is `unspecified'. This can
|
||||
happen during frame creation. */
|
||||
&& (font = LFACE_FONT (lface),
|
||||
! UNSPECIFIEDP (font)))
|
||||
{
|
||||
Lisp_Object font = LFACE_FONT (lface);
|
||||
|
||||
if (FONT_SPEC_P (font))
|
||||
{
|
||||
font = font_load_for_lface (f, XVECTOR (lface)->contents, font);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue