XMFONTLISTGETNEXTFONT(3)
π NAME π
XmFontListGetNextFont β a font list function that lets your app peek at all the fonts and character sets chillin' inside a font list π
β¨ SYNOPSIS β¨
#include <Xm/Xm.h>
Boolean XmFontListGetNextFont(
XmFontContext context,
XmStringCharSet *charset,
XFontStruct **font);
π¦ DESCRIPTION π¦
okay bestie, listen. XmFontListGetNextFont walks up to the next entry in your font list and hands you its character set and its font. That's it, that's the whole vibe. π
Here's the routine, fr fr:
- First you gotta call
XmFontListInitFontContextto make yourself a font list context. no context, no entry, periodt. - Then you call
XmFontListGetNextFontover and over with that same context. Every single call scoops up the next element of the font list. it's giving little cursor energy π - When you're done, you call
XmFontListFreeFontContextto free that allocated context. don't ghost it, bestie π
β οΈ heads up: this routine allocates memory for the character set string, and you (the application) have to free it. The function allocates memory forcharset. Managing that memory is 100% on you. You can recover it by callingXtFree. not optional, not a drill. π«Ά
π obsolete alert: this function is obsolete and only exists for compatibility with previous releases. It's been replaced byXmFontListNextEntry. Also β if you passXmFontListGetNextFonta context that contains a font set entry, it will return the first font of the font set, and the next call to the function will move on to the next entry in the font list. lowkey important, don't skip this part.
Now the arguments, one by one πΈ:
contextβ specifies the font list context. your lil' bookmark in the list, basically.charsetβ specifies a pointer to a character set string; the routine returns the character set for the current font list element. so it's a pointer you hand over and it fills in the tea πfontβ specifies a pointer to a pointer to a font structure; the routine returns the font for the current font list element. pointer-to-a-pointer, yes, it's that kind of party β¨
π RETURN π
Returns True if the returned values are valid. Otherwise, it returns False. simple as that, no cap π
π« RELATED π«
and that's the whole page, bestie!! π this was XmFontListGetNextFont(library call) β yes, the manual name is literally baked into the header and the footer, it said it twice because it's an icon π go forth and iterate those font lists, you absolute main character π¦β
π¦ where this page comes from
- 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