Can't set font size in Linux
#1
I posted the following on Facebook because I forgot about this forum... Dodgy 
----
Under Options-Display there is a setting for font size. It defaults to 21 pixels. If I make the number larger it doesn't increase the font size, and if I go back to the setting window it has reverted to 21. How to fix this? 21 pixels was okay for 640x480 screens but it's a bit small for today's screens, IMO.
----
Maybe something about the path to the font file? Would it accept a Linux style path?

I did get a reply from Marcos Guillen saying there were some things in QB64 that didn't yet work in the Linux version. Maybe this is one?
Reply
#2
QB64 needs a couple of things to change the IDE font:

First, it has to find your font to start with. Make certain you paste the whole path to the font you're wanting to use. (Windows is easy as they have a default font folder. I don't know where Linux stores them)

Second, make certain it's a MONOSPACED font. You can't use one that isn't. (Courier New is often a good choice.)

With those two things in place, the IDE should change size to what you desired and save the value for you forever more.

If all else fails due to file/security/user permissions or such, try copying the font you want directly into the qb64pe folder with the executable. It might save you a few issues. Smile
Reply
#3
Yep. All good now. Just a matter of putting in the path to the font file.
Actually, I couldn't paste the path, I had to type it manually. Only one single letter of the path would appear. Tried pasting it into a text editor and it showed okay, so something funny was happening there.
Reply
#4
The path should be "/usr/share/fonts/", however it could have directories according to font families, while Windows insists in all font files in one directory.
A path copied to clipboard might have stuff not wanted in it such as "file://" likely to be pre-pended by a web browser. What you might want to do is paste first into Mousepad or other text editor that comes with Linux, so you get a chance to see what was copied to the clipboard. You could construct the entire pathname in this way, first looking for the multiple directory mush, and then the filename itself. This could be done with the dialog for a single file's properties (right button mouse click on file, then choose "Properties" from menu). However this wouldn't tell you if the font is monospaced or not. Must depend more on the font's name such as "Liberation Mono".
Reply




Users browsing this thread: 4 Guest(s)