Page 1 of 1

Scope of Font Settings

Posted: Sun Jun 07, 2026 11:57 am
by Flinx
A clarifying question:
In a program with multiple displays, the commands SetFont(), SetFontColor(), and SetFontStyle() have a global effect; in other words, they change the output for all displays, regardless of which one was selected with SelectDisplay(). Accordingly, you can query the currently selected values using GetFontColor() and GetFontStyle().
However, there is no GetFont(). Instead, GetAttribute(#DISPLAY, <n>, #ATTRFONTNAME) is available, which, according to the manual, provides “Information about the font currently selected into this display”.
So my question is whether there is a way to assign different fonts to the available displays that I just haven’t found, or whether this difference might have some historical reasons or something like that.

Re: Scope of Font Settings

Posted: Sun Jun 07, 2026 3:37 pm
by airsoftsoftwair
Flinx wrote: Sun Jun 07, 2026 11:57 am which, according to the manual, provides “Information about the font currently selected into this display”.
So my question is whether there is a way to assign different fonts to the available displays that I just haven’t found, or whether this difference might have some historical reasons or something like that.
No, the description about “Information about the font currently selected into this display” is actually misleading because, as you correctly noticed, fonts are a global setting which are independent of the display. So actually the display you pass to GetAttribute() when querying #ATTRFONTXXX doesn't matter at all because it's a global setting. You'll get the same return value for all displays. I recommend just passing 0 as the display ID.

Re: Scope of Font Settings

Posted: Sun Jun 07, 2026 5:46 pm
by Flinx
Thanks!