unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to set font for frame on hiDPI screen?
       [not found] <3a895599-ef58-4760-a478-78f968c8ba67@Spark>
@ 2020-01-14  7:41 ` HaiJun Zhang
  2020-01-14 15:19   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: HaiJun Zhang @ 2020-01-14  7:41 UTC (permalink / raw)
  To: Emanuel Berg via help-gnu-emacs

export GDK_SCALE=2
emacs -Q

The font size is good. Then I eval ‘(set-frame-font “Monospace:size=16”)’. The font becomes too small now. It works well on non-hiDPI screen.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to set font for frame on hiDPI screen?
  2020-01-14  7:41 ` How to set font for frame on hiDPI screen? HaiJun Zhang
@ 2020-01-14 15:19   ` Eli Zaretskii
  2020-01-14 16:56     ` HaiJun Zhang
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2020-01-14 15:19 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Tue, 14 Jan 2020 15:41:44 +0800
> From: HaiJun Zhang <netjune@outlook.com>
> 
> export GDK_SCALE=2
> emacs -Q
> 
> The font size is good. Then I eval ‘(set-frame-font “Monospace:size=16”)’. The font becomes too small now. It works well on non-hiDPI screen.

In what version of Emacs, and how was it compiled?



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to set font for frame on hiDPI screen?
  2020-01-14 15:19   ` Eli Zaretskii
@ 2020-01-14 16:56     ` HaiJun Zhang
  0 siblings, 0 replies; 3+ messages in thread
From: HaiJun Zhang @ 2020-01-14 16:56 UTC (permalink / raw)
  To: help-gnu-emacs, Eli Zaretskii

在 2020年1月14日 +0800 PM11:35,Eli Zaretskii <eliz@gnu.org>,写道:
> > Date: Tue, 14 Jan 2020 15:41:44 +0800
> > From: HaiJun Zhang <netjune@outlook.com>
> >
> > export GDK_SCALE=2
> > emacs -Q
> >
> > The font size is good. Then I eval ‘(set-frame-font “Monospace:size=16”)’. The font becomes too small now. It works well on non-hiDPI screen.
>
> In what version of Emacs, and how was it compiled?
>

Emacs: 26.3.

I have found a resolution. Changing ‘(set-frame-font “Monospace:size=16”)’ to ‘(set-frame-font “Monospace 16”)’ fixes it.

Does the size in the former means pixel size? And the latter means font size?




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-14 16:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3a895599-ef58-4760-a478-78f968c8ba67@Spark>
2020-01-14  7:41 ` How to set font for frame on hiDPI screen? HaiJun Zhang
2020-01-14 15:19   ` Eli Zaretskii
2020-01-14 16:56     ` HaiJun Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).