Print Page | Close Window

Change font for generator editor

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=941
Printed Date: 27.Mar.2026 at 03:35
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Change font for generator editor
Posted By: bram.bolder
Subject: Change font for generator editor
Date Posted: 09.Dec.2021 at 08:32
I find it a bit difficult to distinguish parentheses from curly braces in the generator editor. Is there maybe a way to change the font?

I'm using the Linux version of MetaEdit+ Workbench, in case that is relevant.



Replies:
Posted By: stevek
Date Posted: 09.Dec.2021 at 10:15
Hi Bram,
You can temporarily change the font with View | Font..., but if the default font (labelled "code") is hard to read, it would be best to make a permanent change. That "code" font is picked up based on matching the following font family names, in order of priority:
'courier new' 'courier*' 'nimbus mono*' '*mono*' '*'

Different OSs have different fonts, and while on Windows and Mac it's easy for us to name the "right" font, on Linux there are so many possible distributions and personal settings that it's not really possible. If your setup isn't finding a sensible font, I'd suggest installing Courier New or aliasing another fixed-width font to its name in your Linux font settings. 

Aliasing is probably the best approach, but of course there too Linux has many different approaches, so I'll have to leave the details to you. These links may help:
  • https://jichu4n.com/posts/how-to-set-default-fonts-and-font-aliases-on-linux/" rel="nofollow - https://jichu4n.com/posts/how-to-set-default-fonts-and-font-aliases-on-linux/
  • https://wiki.ubuntu.com/Fonts" rel="nofollow - https://wiki.ubuntu.com/Fonts
  • Aliasing in a specific application:  https://www.reddit.com/r/archlinux/comments/dim7dt/comment/f3x1ssu/?utm_source=share&utm_medium=web2x&context=3" rel="nofollow - https://www.reddit.com/r/archlinux/comments/dim7dt/comment/f3x1ssu





Posted By: bram.bolder
Date Posted: 09.Dec.2021 at 10:57
OK, thanks. It seems that I completely overlooked the existence of the "Font" menu entry Embarrassed. But thanks for the explanation of how to be able to override the default font from the outside.


Posted By: bram.bolder
Date Posted: 09.Dec.2021 at 14:59
Hmmm. It seems that setting the font for 'code' or 'default' does not change the font inside the editor. "fc-match code" and "fc-match default" show the change. If I set both 'default' and 'code' to be identical to that of 'pixel', I still get different fonts shown in the editor.


Posted By: stevek
Date Posted: 09.Dec.2021 at 15:11
The names like "code" aren't fonts, they are just names used inside MetaEdit+. Make an alias from 'courier new' to some fixed width scalable font.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net