Scope of Font Settings
Posted: Sun Jun 07, 2026 11:57 am
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.
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.