[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59829] Wrong font setting after start up in G
From: |
Hg200 |
Subject: |
[Octave-bug-tracker] [bug #59829] Wrong font setting after start up in GUI |
Date: |
Thu, 7 Jan 2021 16:25:07 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0 |
Follow-up Comment #3, bug #59829 (project octave):
In stackoverflow they also say monospace causes problems with Qt5. The Qt
behaviour is very weired. I tried a bit and it seems to work for me with
following changes:
1.) Detect "monospace 9" instead of "DejaVu Sans Mono 9"
change
default_family = fixed_font.defaultFamily ();
to
default_family = fixed_font.family ();
2.) Set "monospace 9" instead of "DejaVu Sans 12". For this provide size when
QFont is called
change
QFont font = QFont (default_family);
to
QFont font (family, fixed_font.pointSize());
If i put this into Octave it starts with "DejaVu Sans Mono 9" in the editor
preferences. I have attached the code, but it is broken for Mac. And I don't
think it's a good idea to rely on a "try and fail" code. Who guarantees that
the code will work on other computers?
(file #50675)
_______________________________________________________
Additional Item Attachment:
File name: experimental_fonts_broken.diff Size:1 KB
<https://file.savannah.gnu.org/file/experimental_fonts_broken.diff?file_id=50675>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59829>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/