mfont_list(3m17n)
β¨ NAME β¨
mfont_list β bestie, this is the glow-up your font list needed π (the original page literally leaves it blank, so we're serving vibes and calling it iconic)
πΈ SYNOPSIS πΈ
MPlist* mfont_list (MFrame * frame, MFont * font, MSymbol language, int maxnum)
π DESCRIPTION π
okay so basically you call mfont_list() and it hands you back a whole list of fonts. like, every font that's available on frame frame. slay.
Here's the tea on the args, bestie:
fontβ if it's notNULL, it narrows things down to only the fonts that match withfont. vibe check passed, filtered.languageβ if it's notMnil, it limits the fonts to the ones that actually supportlanguage.maxnumβ if it's greater than 0, it caps how many fonts you get back. no greedy font hoarding fr fr.
okay so listen, thelanguageargument? it literally exists just for backward compatibility and its use is deprecated. like, do not use it, periodt. use theMlanguagefont property instead π and also β iffontalready has theMlanguageproperty, thenlanguagegets ignored entirely. ghosted. π
π¦ RETURN VALUE π¦
This function returns a plist, and the way that it works is: the keys are family names and the values are pointers to the object MFont. cute right?
You must free that plist with m17n_object_unref(). no cap, clean up after yourself or it's giving memory leak π
And if no font is found at all? it returns NULL. empty-handed. tragic, but honest. π
π COPYRIGHT π
Copyright (C) 2001 Information-technology Promotion Agency (IPA) Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License <http://www.gnu.org/licenses/fdl.html>.
and that's the whole page, bestie π«Ά this was Version 1.8.4 of the m17n Library manpage, dated Mon Sep 25 2023 β mwah, iconic, ate, no notes πβ¨π
π¦ where this page comes from
- debian trixie: m17n-docs 1.8.4-1
- ubuntu noble: m17n-docs 1.8.4-1
- ubuntu questing: m17n-docs 1.8.4-1
- ubuntu resolute: m17n-docs 1.8.4-1build1
- ubuntu stonking: m17n-docs 1.8.4-1build1
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms