YomikoR / VapourSynth-Editor

Branch vse-previewer for standalone previewer. Branch vs-api4 for an IDE with a text editor. Branch master for "stability". Forked from https://bitbucket.org/mystery_keeper/vapoursynth-editor
Other
139 stars 9 forks source link

Can't change the default font size without changing the font itself #47

Closed tvasenin closed 1 year ago

tvasenin commented 1 year ago

Win10 x64, latest portable QT6 build.

I try to decrease the size of the default font (Monotype), but when trying to change font properties, the font is set to Sergoe UI and there's no Monotype font in the list.

YomikoR commented 1 year ago

In order not to assume the existence of any specific font, the default behavior of the editor is to request Windows for its default monospaced font (just like a webpage asking for a serif font). The chosen font is possibly Courier New, but can be overriden by OS settings. Unfortunately, I cannot tell the result of the font request within Qt framework, i.e. I can only call the font family "monospace" instead of "Courier New", even in the runtime. Since there's no font named "monospace" (nor "monotype") in Windows, Segoe UI as a general default value takes its place in the font list. Since you are already there for customization, just pick your favorites and save.

tvasenin commented 1 year ago

Ok, I now see the logic behind this, and agree there's nothing to fix here, thanks!