Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Font too small on QHD screen #3636

Closed

Description

@jcarmena

Hello, I am running Atom (or trying it) on Linux (Xubuntu 14.04.1 64b) with a QHD screen. The problem is that GUI fonts are too small to work with it.

sshot

Thanks

Activity

  1. kevinsawicki commented on Sep 26, 2014

    @kevinsawicki
    Contributor

    You can boost the font size by editing your ~/.atom/styles.less file. Adding the following might be a good start.

    .tree-view, .status-bar, .tab-bar .tab {
      font-size: 18px;
    }

    The default is 11px.

    This is still an issue that should be addressed, I just wanted to give you a workaround to at least make it usable for now.

  2. jcarmena commented on Sep 26, 2014

    @jcarmena
    Author

    Thank you for the workaround, @kevinsawicki, that helped me :)
    I created that file and it increased the font size on Tree View and tabs only, the settings panel still has small fonts.

    I'll wait for the definitive solution.

  3. kevinsawicki commented on Oct 23, 2014

    @kevinsawicki
    Contributor

    @jcarmena Is this still an issue for you on Atom 0.139?

    Chrome 38 was recently upgraded to and I believe there were some font scaling fixes that went along with it.

  4. puzrin commented on Oct 24, 2014

    @puzrin

    I see some differences in 139, but not sure these are improvements :) . Menu became unpinned from top, scale in menu & dropdown is wrong.

    Ubuntu 14.04lts, mbpro retina 13". Scale factor set via unity control panel.

    atom 139

  5. zcbenz commented on Oct 24, 2014

    @zcbenz
    Contributor
  6. jcarmena commented on Oct 29, 2014

    @jcarmena
    Author

    Hello @kevinsawicki with Atom 0.140 the font size is too small too, but with some ~/.atom/styles.less rules + Developer Tools the problem is solved. Thank you.

  7. mchelen commented on Nov 2, 2014

    @mchelen

    Workaround #3636 (comment) was effective, except for status bar at bottom & Settings page.

  8. mchelen commented on Nov 2, 2014

    @mchelen

    Related workaround for scrollbar size: #4033

  9. mchelen commented on Nov 2, 2014

    @mchelen

    For status bar:

    .panel-bottom {
      font-size: 18px;
      height: 28px;
    }

    Settings:

    @input-font-size: 18px;

    I ended up overriding quite a lot of selectors to increase all the font sizes, fortunately the dev mode + inspect element helped track them down.

    Probably a lot of this could be handled better in the theme itself.

  10. Nek- commented on Nov 12, 2014

    @Nek-

    Chromium works on my Ubuntu (or worked, in facts, but the only problem is too big fonts in menu since some days, nothing wrong in the content). Here is an illustration of the problem present in Atom and not in chromium

    capture du 2014-11-13 00 51 27

    of course, as I said, there is a non-related problem in the tab font size.

  11. jordanbtucker commented on Feb 19, 2015

    @jordanbtucker
    Contributor

    This seems to get everything I care about for now:

    html,
    body,
    .tree-view,
    .status-bar,
    .tab-bar .tab,
    .settings-view .settings-panel label,
    .settings-view .setting-description,
    .form-control {
        font-size: 16px;
    }
  12. simurai commented on Feb 24, 2015

    @simurai
    Contributor

    "ackalker" in this discuss post:

    I found a quick way to scale the entire UI (fonts, widgets, the works, no need to change individual font sizes!) which works very well for me (using Atom 0.179.0).

    Add the following line to your init.coffee (location depends on which OS you're using):

    require('web-frame').setZoomFactor(2)
    

    (adjust the zoom factor (x * 100%) to your liking.)
    Save the file, restart Atom and enjoy

    Works fine for me to just "scale up" the whole UI. I think it's the same as zooming in a browser. Not sure if it has some side effects on performance or so. A zoom factor like 1.4 works too, but "1px" lines sometimes get rounded up or down, leaving some visual inconsistency. Maybe not huge issue for most.

  13. anaisbetts commented on Feb 24, 2015

    @anaisbetts
    Contributor

    Works fine for me to just "scale up" the whole UI. I think it's the same as zooming in a browser. Not sure if it has some side effects on performance or so.

    Yep, it's the same as zooming in the browser. fwiw, OS X Retina displays have this set to 2.0, and Windows / Linux usually sets this to 1.5 for 4K displays

  14. jordanbtucker commented on Feb 24, 2015

    @jordanbtucker
    Contributor
    require('web-frame').setZoomFactor(1.25)

    This is perfect for me. Thanks @simurai.

  15. perguth commented on Jun 29, 2015

    @perguth

    This problem still persists in 1.0 (Korora/Fedora Core 21, 3200x1600) :-(

  16. added
    linux
    on Jul 23, 2015
  17. jcarmena commented on Jul 27, 2015

    @jcarmena
    Author

    I have installed 1.0.2 and confirm that the problem still exists:
    sshot

  18. perguth commented on Jul 31, 2015

    @perguth

    This can help till it's fixed officially: #3363 (comment)

  19. jcarmena commented on Sep 5, 2015

    @jcarmena
    Author

    @pguth thanks. It helps but it's not great. I still prefer tuning style.less, it gives better results.
    @kevinsawicki, wouldn't it be possible you to use ems and rems in the interface code instead px so it's easier for us adjust style.less and create templates? If you use *ems we could adjust size of all elements only changing html's font-size. Also would help if you avoid inline styles like in .settings-view .config-menu

  20. jordanbtucker commented on Sep 5, 2015

    @jordanbtucker
    Contributor

    I mostly agree with @jcarmena. Use rems instead of px. One of the problems with ems is that if you change a size up the tree, you have to change all of the descendants' sizes if you don't want them to change too.

  21. simurai commented on Sep 9, 2015

    @simurai
    Contributor

    An alternative to rem/em might be using zoom. I think it has the same effect when zooming in a browser. Does it work if you add the following to your styles.less file:

    html {
      zoom: 2;
    }

    It should make everything double size. And should work in all themes. Maybe this could even be a setting?

    Update: Don't use it on the root html element, since it causes some glitches.

  22. klamann commented on Oct 13, 2015

    @klamann
    html {
      zoom: 2;
    }
    

    This does increase the size of all elements, but it causes some serious glitches (mouse click events still work as if the page was not zoomed in, which makes UI interaction impossible...)

    I'm now using the previously suggested require('web-frame').setZoomFactor(1.5) in my init.coffee, which works for the main container, but not the menu.

    Some kind of zoom setting which also scales the menu correctly would be awesome!

  23. simurai commented on Oct 13, 2015

    @simurai
    Contributor

    This does increase the size of all elements, but it causes some serious glitches (mouse click events still work as if the page was not zoomed in, which makes UI interaction impossible...)

    Right, after some testing, zoom doesn't work that well. Also, there were glitches when calculating sizes in scripts, I think. It might be ok for some parts of the UI, but not for everything.

  24. varemenos commented on Aug 12, 2017

    @varemenos

    Is this considered fixed? I'm still having the issue and the only way to properly use atom on Archlinux with a QHD monitor is to have require('web-frame').setZoomFactor(1.5) in my init file...

  25. lock commented on Mar 31, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  26. locked and limited conversation to collaborators on Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglinux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions