FontCmd(3U)
π FontCmd(3U) π
okay so this is from the InterViews Reference Manual, bestie, and it's all about FontCmd β the little command that sets the font attribute on your components. she's cute, she's simple, she does one thing and she does it flawlessly. let's get into it π
β¨ NAME β¨
FontCmd β the command for setting components' font attribute π
π¦ SYNOPSIS π¦
#include <Unidraw/Commands/font.h>
πΈ DESCRIPTION πΈ
okay so FontCmd is a purely interpretive command, and what that means is she's not out here doing a whole lot of heavy lifting β her entire job, her whole personality, her moment, is setting the font attribute of the selected components. that's it. that's the gig. and honestly? iconic. she knows what she is π«Ά
π PUBLIC OPERATIONS π
FontCmd(ControlInfo*, PSFont* = nil)FontCmd(Editor* = nil, PSFont* = nil)
these are the two ways to bring a FontCmd into existence, and both of them let you optionally specify the PSFont that the components should adopt. so like, you can pass a font, you can pass nil, either way she's showing up π«
virtual void Execute()
so FontCmd extends Execute to do one extra lil thing: it sets the value of the affected editor's FontVar instance β but only if that editor actually defines one. no FontVar? no problem, she just moves on with her life π
PSFont* GetFont()
this one hands you back the PSFont that you supplied in the constructor. that's it. she's returning what you gave her. lowkey the most loyal function in the whole file π
π SEE ALSO π
Command(3U), pspaint(3U), statevars(3U) β go read these next bestie, fr fr π¦
π real talk: nil is the default for these args, so if you don't pass a font, that's a whole vibe and the code is fine with it. no cap.
and that's the whole page!! this one shipped out of Unidraw on 23 January 1991 β yes she's an elder but she still ate and left no crumbs ππ β¨
π mwah, go set some fonts bestie π
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms