bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#28901: 25.3; Font selector fails to remember current font and size


From: Lars Ingebrigtsen
Subject: bug#28901: 25.3; Font selector fails to remember current font and size
Date: Mon, 18 Nov 2019 10:36:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Robert Pluim <rpluim@gmail.com> writes:

> You canʼt directly specify them, but you can at least remember the
> previous settings:

[...]

> +#ifdef HAVE_GTK3
> +      PangoFontDescription *desc
> +        = pango_font_description_from_string (default_name);
> +      gtk_font_chooser_set_font_desc (GTK_FONT_CHOOSER (w), desc);
> +      pango_font_description_free (desc);
> +#else
> +      gtk_font_chooser_set_font (GTK_FONT_CHOOSER (w), default_name);
> +#endif

Oh, cool!  Sounds good to me.  (Haven't tested the patch, though.)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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