wxGraphicsFont(3)
β¨ NAME β¨
wxGraphicsFont β bestie, it's a native representation of a font π
Ok so real quick, the vibe check on this page: it's straight out of the Erlang Module Definition section of the wx docs, so you already know we're in the Erlang bindings for wxWidgets. Slay. Let's get into it πΈ
π DESCRIPTION π
So likeβ¦ what's actually in a wxGraphicsFont? π The contents are specific and private to the respective renderer. That's it. That's the whole thing. It's giving "mystery box, do not open" energy, and honestly? Respect.
The β¨iconicβ¨ part: instances are ref counted, which means you can assign them around literally like you'd assign anything else. No secret handshake, no cloning ritual, just vibes. Normal assignment. Periodt π
But β and this is the important bit, no cap β the only way to get a valid instance is through one of these two:
wxGraphicsContext:createFont/4wxGraphicsRenderer:createFont/4
There is no other door. That's the door. πͺβ¨
Also, this class is derived from, and can use functions from:
wxGraphicsObject
So it's got family. It's not out here alone, it's inheriting, it's connected, it's got main character energy with a support system π«Ά
And if you wanna go straight to the source, the wxWidgets docs are at: wxWidgets docs: wxGraphicsFont β go read the real ones too, iykyk π
π¦ DATA TYPES π¦
wxGraphicsFont() :: wx:wx_object().
Yeah. It's a wx:wx_object(). Object city. That's the whole type. Short, sweet, ate π
π FUNCTIONS π
Okay so this is the part where I'd normally be walking you through every function like a tour guide at Disneyβ¦ except this particular page doesn't list any functions under this heading. Not a one. Empty. The audacity π
The actual ways in are the two createFont/4 calls up top β go look at those pages, bestie, that's where the plot is π
π SEE ALSO π
wxGraphicsObjectwxGraphicsContext:createFont/4wxGraphicsRenderer:createFont/4
π tiny reminder: you cannot conjure awxGraphicsFontout of thin air. Nonew, no hope, no manifesting.createFont/4only. That's the rule, and the rule is the rule π
and that's the whole page, you're so welcome π
This lil masterclass came to you courtesy of Ericsson AB, riding with wx 2.6 β and yeah, it's still filed under good old wxGraphicsFont(3) in the manual. Now go make something cute with a font, bestie π¦β¨
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms