XMFONTLISTADD(3)
π XmFontListAdd β the font list glow-up page π
okay bestie, welcome to the <Xm/Xm.h> zone, this is XmFontListAdd from the library call section of the manual and she is vintage. Like, thrifted-vintage. Not new-vintage. We'll get to that. π
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
XmFontList XmFontListAdd(
XmFontList oldlist,
XFontStruct *font,
XmStringCharSet charset);
πΈ DESCRIPTION πΈ
so basically XmFontListAdd makes you a brand new font list, and that new list is the contents of oldlist plus the new font list element it's adding. iconic behavior. π
but here's the part you need to hear, and I need you to actually listen: this function deallocates oldlist after it's extracted the info it needs. so after you call it, do not reference oldlist ever again. not once. not casually. it's gone, girl. π«Ά
NOTE: this function is obsolete and only exists for compatibility with previous releases. she has been replaced by XmFontListAppendEntry. so if you're writing new code... bestie. use the other one. π
oldlistβ a pointer to the font list that's getting a new entry added to it. π¦fontβ a pointer to a font structure, and that's what the new font list gets generated from. this is the structure that the XLibXLoadQueryFontfunction hands you back. πcharsetβ the character set identifier for the font. this can beXmSTRING_DEFAULT_CHARSET, but heads up: that value does not comply with the AES, and it may get removed in future versions of Motif. π and if the value isXmSTRING_DEFAULT_CHARSET, the routine derives the character set from the current language environment. iykyk.
β RETURN β
- if
oldlistisNULLβ you get backNULL. π« - if
fontorcharsetisNULLβ you get backoldlist. π - otherwise β you get a new font list. slay. π
π RELATED π
and that's the whole vibe, babe β this page lives under the XmFontListAdd(library call) banner in the good old library call manual, so go forth, respect the deprecation notice, and never touch a deallocated oldlist again. periodt. πβ¨
π¦ where this page comes from
- alpine 3.24: motif-doc 2.5.2-r0 Β· LGPL-2.1-or-later
- arch rolling: openmotif 2.3.8-4 Β· LGPL-2.1-or-later
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- centos-stream 9: motif-devel 2.3.4-32.el9 Β· LGPLv2+
- epel 10: motif-devel 2.3.8-2.el10_2 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 43: motif-devel 2.3.8-2.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: motif-devel 2.3.8-3.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: motif 2.3.8
- nixpkgs unstable: motif 2.3.8
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: motif-devel 2.3.8-bp160.1.1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms