XMFONTLISTENTRYGETFONT(3)

πŸ“¦
version 2.5.2 Β· 2 versions
, in alpine 3.24, arch rolling, centos-stream 9, epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– XmFontListEntryGetFont πŸ’–

okay bestie, welcome to the XmFontListEntryGetFont page from the library call manual β€” a font list function that retrieves font information from a font list entry. yes it's a whole vibe, and yes we're getting into it πŸ’…


✨ SYNOPSIS ✨

#include <Xm/Xm.h>
XtPointer XmFontListEntryGetFont(
XmFontListEntry entry,
XmFontType *type_return);

like, that's the whole signature, no notes 🫢


🌸 DESCRIPTION 🌸

so XmFontListEntryGetFont goes and retrieves font information for a specified font list entry. that's literally its whole job and it ate πŸ’…

here's the tea though, it depends on what your entry is holding:

  • if the font list entry contains a font, then type_return returns XmFONT_IS_FONT, and the function returns a pointer to an XFontStruct.
  • if the font list entry contains a font set, then type_return returns XmFONT_IS_FONTSET, and the function returns the XFontSet.

πŸŽ€ Arguments

  • entry β€” specifies the font list entry. that's the one you're asking about, bestie.
  • type_return β€” specifies a pointer to the type of the font element for the current entry. valid values are XmFONT_IS_FONT and XmFONT_IS_FONTSET. it's giving "tell me what you are" energy ✨
⚠️ okay important, do NOT skip this: the returned XFontSet or XFontStruct is not a copy of the toolkit data, and it must not be freed. it is not yours, bestie, put it down πŸ™ˆ no XtFree, no free, nothing. hands off. periodt.

πŸ¦‹ RETURN πŸ¦‹

returns an XFontSet or a pointer to an XFontStruct structure. that's it, that's the whole return value 🌈



and that's the page!! XmFontListEntryGetFont(library call) β€” that's the manual name and the footer source right there, and ngl there's no date stamp on this one so I can't give you one 🫢 go read the related pages, ily, bye πŸ’–βœ¨πŸŽ€