XMFONTLISTENTRYCREATE(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

✨ XmFontListEntryCreate ✨

okay bestie, gather round, because we're doing the library call thing today β€” this is XmFontListEntryCreate from the Xm fam, and she's literally the girl who makes font list entries. no cap. πŸ’…


πŸŽ€ NAME πŸŽ€

XmFontListEntryCreate β€” a font list function that creates a font list entry. that's it, that's the job, and she eats every time. πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <Xm/Xm.h>
XmFontListEntry XmFontListEntryCreate(
char *tag,
XmFontType type,
XtPointer font);

look at her. three little args. so demure, so mindful. πŸ’–


🌸 DESCRIPTION 🌸

XmFontListEntryCreate creates a font list entry that contains either a font or font set, and it's identified by a tag. like, she's handing you a lil labeled box and you're like "slay, ty." ✨

  • tag β€” Specifies a NULL terminated string for the tag of the font list entry. The tag may be specified as XmFONTLIST_DEFAULT_TAG, which is used to identify the default font list element in a font list. (iykyk, that's the "main character" tag of the whole list. πŸ‘‘)
  • type β€” Specifies whether the font argument is a font structure or a font set. Valid values are XmFONT_IS_FONT and XmFONT_IS_FONTSET. vibe check the type, bestie, don't just guess. 🌈
  • font β€” Specifies either an XFontSet returned by XCreateFontSet or a pointer to an XFontStruct returned by XLoadQueryFont. πŸ“
⚠️ okay this part is IMPORTANT, fr fr, do not skip: The toolkit does not copy the X Font structure specified by the font argument. Therefore, an application programmer must not free XFontStruct or XFontSet until all font lists and/or font entries that reference it have been freed. like, do not touch her until everybody's done with her, periodt. πŸ’€

πŸ’œ RETURN πŸ’œ

Returns a font list entry. The function allocates space to hold the returned font list entry. The application is responsible for managing the allocated space. The application can recover the allocated space by calling XmFontListEntryFree. so she gives you a gift AND she gives you the receipt β€” iconic behavior, honestly. 🫢


the girlies she hangs out with, all (3)s:


and that's the whole page, bestie!! 🌟 she lives under the XmFontListEntryCreate(library call) banner top and bottom β€” same name up top, same name at the sign-off, no date or version drama on this one, just the page title holding it down twice. mwah. πŸ’…πŸ’–πŸ§š