wxGraphicsFont(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

✨ 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/4
  • wxGraphicsRenderer: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 🌟

  • wxGraphicsObject
  • wxGraphicsContext:createFont/4
  • wxGraphicsRenderer:createFont/4

πŸŽ€ tiny reminder: you cannot conjure a wxGraphicsFont out of thin air. No new, no hope, no manifesting. createFont/4 only. 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