Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

For the love of god please let us change the font in the editor!

Discussion in '2018.3 Beta' started by Werewolf_GS, Oct 28, 2018.

  1. Werewolf_GS

    Werewolf_GS

    Joined:
    Sep 17, 2015
    Posts:
    22
    Dear Unity Devs

    About 3 months ago I developed poor eyesight due to ischemic stroke, and it is a real struggle dealing with Unity's Editor because of the small font and no ability to change the font. All the letters just blur together, almost like I'm dyslexic. I have very little issue reading code in an IDE (blurry but readable).

    What's just as important as the size is the ability to change the font so that we can use monospaced programmer fonts that work much better small like Monaco, Roboto Mono or Dejavu Sans Mono. Arial is still hard to read unless it is really big.


    This is the highest voted feature under review and has been requested for 7 years!!!

    https://feedback.unity3d.com/forums/unity/suggestions?utf8=✓&status=1&category=&view=most_voted

    We really really need this, 12pt arial (it looks even smaller than that) is almost impossible read all the letters just blur together, we need the ability to use programmer fonts like monaco as well.

    I may have to pull all my assets off unity simply because I am going to struggle to support it when I can barely read anything.

    Please, I am begging you, I love everything about this engine, just please can you just fix this one issue!

    ---

    If you are adding this feature, adjusting kerning really helps too, but I'm not going to complain if its not there, just seems trivial if you're adding the other stuff.

    Unity 5 or LTS as well if possible, 5 is the most stable and is preferred for production, but I'll be ok with using LTS if things improve, but any other versions are far too unstable for production. But hey, beggars can't be choosers either, so ill take what I can get.

    Thank you devs!!!
     
    Last edited: Oct 28, 2018
  2. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    They are revamping to UIElements/stylesheet based GUI, I think it is the reason why this feature is not progressing for the current to be deprecated UI?

    Anyways, maybe you could try some dirty hack such as changing the editor style directly? Changing the font size works but unfortunately the line height used in various drawers is baked as a const 16, we could not change it as a const was baked throughout the compiled Unity source code, the enlarged font will clip. The default seems to be 11, I found that going to 13 is still readable if that helps with your eye condition for the time being. (It clips characters with hanging part like 'g')

    Screenshot 2018-10-28 15.00.03.png Screenshot 2018-10-28 15.01.19.png
     
    Last edited: Oct 28, 2018
    taptpci likes this.
  3. Werewolf_GS

    Werewolf_GS

    Joined:
    Sep 17, 2015
    Posts:
    22
    Thanks 5argon for the update, also I will try this!
     
  4. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    lol, I just tried changing the font and it works too!

    Screenshot 2018-10-28 15.21.48.png
     
    SugoiDev likes this.
  5. Deleted User

    Deleted User

    Guest

    How did you do that? Could we have the script and use it?
     
  6. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    Ok I made a repo for the script. Check it out. https://github.com/5argon/ModifyEditorStyle

    In the source code you can see some `yield return`s, you could comment out some of them if you want only something to change.

    ss1.png
    ss2.png
     
    AngryYogurt, cdr9042, Igualop and 7 others like this.
  7. Deleted User

    Deleted User

    Guest

    Thank you! :)
     
  8. Werewolf_GS

    Werewolf_GS

    Joined:
    Sep 17, 2015
    Posts:
    22
    wow thanks 5argon! well done!
     
  9. Deleted User

    Deleted User

    Guest

    It doesn't work for me. I dropped the "ModifyEditorStyle-master" folder in the Assets directory and dragged the "ModifyEditorStyle" script in Assets/Editor and restarted the project but there is nothing in the Preferences window... I'm using the 2018.2.14f1 personal edition.
     
  10. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    I have updated a version which works with 2017.1.5, please try again once more?
     
  11. Deleted User

    Deleted User

    Guest

    Still nothing.

    I dropped the ModifyEditorStyle-master folder in the Assets directory. I noticed that you had created an "Editor" folder with the script inside. I tried after leaving the script in that Editor folder: nothing and after moving the script to the Assets/Editor folder: still nothing.

    Well, if it works for others, no need to bother about me. :)

    Thank you for the script anyway! Something to learn from is always great! ;)
     
  12. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    Oh.. that's certainly strange. I have a version behind you just one version (.2.13) and it shows in the Preference menu.

    Screenshot 2018-10-28 21.03.21.png
     
  13. Deleted User

    Deleted User

    Guest

    It's working now, after I deleted all the .meta files that are in the archive. ;)

    Thank you very much; that's a gift! :)

    Capture.JPG
     
    Last edited by a moderator: Oct 28, 2018
    5argon likes this.
  14. Deleted User

    Deleted User

    Guest

    Unfortunately, the changes don't seem to hold. As I am using the editor, going back and forth between Visual Studio and the editor, using Alt+Tab, the font reset to its original size and uses the first of the list.

    Same problem after changing the font and the size, clicking on "Modify", quitting the editor and starting it again, the size resets to 11 and the font is the first of the list. :(
     
  15. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    I tried using `EditorPrefs` to store the settings now. Please try again once more.
     
    Deleted User likes this.
  16. Deleted User

    Deleted User

    Guest

    Hmm, changes seem to hold now. I'll tell you more in the future. Thanks for all your efforts! :D
     
  17. Rotary-Heart

    Rotary-Heart

    Joined:
    Dec 18, 2012
    Posts:
    813
    @5argon Pretty neat, are you accepting pull requests? I included my LabelWindow reflection to use instead of the dropdown. This makes searching for the fonts way easier.

    Capture.PNG
     
    5argon and Rathlord like this.
  18. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    Please do send the PR! Thank you!
     
    Rotary-Heart likes this.
  19. Rotary-Heart

    Rotary-Heart

    Joined:
    Dec 18, 2012
    Posts:
    813
    Awesome, PR sent.
     
  20. SINe-DEPRECATED

    SINe-DEPRECATED

    Joined:
    Oct 15, 2016
    Posts:
    13
  21. Deleted User

    Deleted User

    Guest

    I'm sorry to say but it seems that the changes are saved for one project only. I use it in one project, the changes are saved and apply each time I launch Unity. I create another project after installing the folder, make changes, click on modify but the changes do not hold this time even after quitting and restarting Unity.
     
  22. Werewolf_GS

    Werewolf_GS

    Joined:
    Sep 17, 2015
    Posts:
    22
    upload_2018-10-31_1-29-58.png

    Got around to installing this in Unity 5. Its much better, unfortunately couldn't use the larger font sizes but was able to bump it up to 12 at least, the kerning seems to be stuck, and doesn't affect some windows but still a big improvement, thanks very much!
     
    5argon likes this.
  23. Deleted User

    Deleted User

    Guest

  24. dozhwal

    dozhwal

    Joined:
    Aug 21, 2014
    Posts:
    59