Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiDPi Support #6005

Closed
ruuda opened this issue May 6, 2016 · 6 comments
Closed

HiDPi Support #6005

ruuda opened this issue May 6, 2016 · 6 comments

Comments

@ruuda
Copy link

ruuda commented May 6, 2016

Description

When I tried Spacemacs, suddenly everything looked tiny. The regular Emacs looked fine. I use a HiDPi desktop environment (Gnome 3).

Reproduction guide

  • Clone the repository to ~/.emacs.d.
  • Ensure that ~/.emacs does not exist.
  • Start Emacs.

Observed behaviour:
All text is tiny. The size is likely correct for low-dpi monitors, but not for my high-dpi setup. Note that plain Emacs worked fine (not too small text size) out of the box. See also the screenshot. For comparison I added Vim, which has a decent text size.

spacemacs

Expected behaviour:
Text should be legible. On a high-dpi screen that means more pixels to get the same size.

System Info

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.105.19
  • Spacemacs branch: master (rev. 3274e7d)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(emacs-lisp)
@emidln
Copy link
Contributor

emidln commented May 6, 2016

I have a 3840x2160 resolution on a 15.6" screen. I use :size 28 and
:powerline-scale 1.6`in my dotspacemacs-default-font config inside
.spacemacs and dospacemacs/init.

On Fri, May 6, 2016 at 12:34 PM, Ruud van Asseldonk <
notifications@github.com> wrote:

Description

When I tried Spacemacs, suddenly everything looked tiny. The regular Emacs
looked fine. I use a HiDPi desktop environment (Gnome 3).
Reproduction guide

  • Clone the repository to ~/.emacs.d.
  • Ensure that ~/.emacs does not exist.
  • Start Emacs.

Observed behaviour:
All text is tiny. The size is likely correct for low-dpi monitors, but not
for my high-dpi setup. Note that plain Emacs worked fine (not too small
text size) out of the box. See also the screenshot. For comparison I added
Vim, which has a decent text size.

[image: spacemacs]
https://cloud.githubusercontent.com/assets/506953/15081077/3b39b262-13c1-11e6-8c35-b120b5244f4c.png

Expected behaviour:
Text should be legible. On a high-dpi screen that means more pixels to get
the same size.
System Info

  • OS: gnu/linux
  • Emacs: 24.5.1
  • Spacemacs: 0.105.19
  • Spacemacs branch: master (rev. 3274e7d
    3274e7d
    )
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:

(emacs-lisp)


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#6005

@abcdw
Copy link

abcdw commented Aug 28, 2016

Commented :size keyword and set org.gnome.desktop.interface scaling-factor 2.
It works for me.

   dotspacemacs-default-font '("Ubuntu Mono"
                              ;; :size 18
                              :weight normal
                              :width normal
                              :powerline-scale 1.1)

@jody-frankowski
Copy link
Contributor

I have the same problem with a 3840x2160 screen. If I disable the size attribute, emacs automatically selects size 22. Shouldn't the size attribute be disabled by default and let emacs figure out the best one base on scaling factors?

@d12frosted
Copy link
Collaborator

d12frosted commented Oct 30, 2016

Initial question was answered.

@dniku
Copy link

dniku commented Feb 24, 2018

@abcdw's solution works with the default Source Code Pro as well.

   dotspacemacs-default-font '("Source Code Pro"
                              ;; :size 18
                              :weight normal
                              :width normal
                              :powerline-scale 1.1)

@spazm
Copy link
Contributor

spazm commented Aug 31, 2021

Setting size with a floating point value uses point values which scale with display resolution scaling.

Thank you to whomever updated the documentation comments in the .spacemacs file:

;; Default font or prioritized list of fonts. The `:size' can be specified as
;; a non-negative integer (pixel size), or a floating-point (point size).
;; Point size is recommended, because it's device independent. (default 10.0)

I have just set mine to a lovely 15.0 with source code pro, which gives me an 80 column window when using 1/2 my 4K screen.

@lebensterben lebensterben moved this from Answered, waiting to To close in Forum Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Forum
  
To close
Development

No branches or pull requests

8 participants