reg = CreateObject("roFontRegistry")
font = reg.GetDefaultFont(10, false, true)
"EnTerr" wrote:
("font:SmallestSystemFont", SmallestBoldSystemFont, ..., LargeBoldSystemFont) don't satisfy you?
"belltown" wrote:
You can change the font size of any of the system fonts to any value you want,
"philotas" wrote:"belltown" wrote:
You can change the font size of any of the system fonts to any value you want,
How do I do that in SceneGraph for a Label Node?
I can set the Size of a Font Node, but afaik I cannot create a Font Node with a system font?
<Label
id="labelNode"
text="Ultimate Label"
font="font:LargeBoldSystemFont" />
label = m.top.findNode("labelNode")
label.font.size = 42
i.e. does "font:" qualify as URI protocol?
<label text="Ultimate Label">
<font role="font" uri="font:LargeBoldSystemFont" size="24"/>
</label>
"EnTerr" wrote:
Any chance it can be done via karnapidasana?
<label text="Ultimate Label">
<font role="font" uri="font:LargeBoldSystemFont" size="24"/>
</label>
i.e. does "font:" qualify as URI protocol?
"EnTerr" wrote:
it was a "Hail Mary pass".
ostensibly, "font:LargeBoldSystemFont" could be a file specifier. 🙂