mfont_unparse_name(3m17n)
β¨ mfont_unparse_name β¨
okay bestie, we're in the m17n Library section of the manual, page mfont_unparse_name(3m17n) β and yes the NAME section is literally just the name with a lil dash and nothing after it, the original is mysterious like that π
π NAME π
mfont_unparse_name β no description given, she's just here, she's booked and busy
π SYNOPSIS π
char* mfont_unparse_name (MFont * font, MSymbol format)
π¦ DESCRIPTION π¦
So the whole vibe here is: you have a font, and you want a fontname string back. That's it, that's the job. The mfont_unparse_name() function creates a fontname string from the font font according to format. Un-parse, bestie β we're going backwards from a font object to a name, and honestly? Iconic.
Now format is not a free-for-all, she has exactly two moods:
Mxβ the fontname comes out in XLFD (X Logical Font Description) format.Mfontconfigβ the fontname comes out in the style of Fontconfig's text representation.
That's the whole menu. No substitutions, no "can I get a third option", no cap. π
πΈ RETURN VALUE πΈ
She returns a newly allocated fontname string π«Ά β and listen, this memory is yours now. It is not freed unless the user explicitly does so by free(). So if you don't call free() on it, congrats, you have a leak, and the leak is your main character arc now. π
π 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, periodt π Version 1.8.4, dated Mon Sep 25 2023, from the mfont_unparse_name(3m17n) girlies to you. mwah, go free() your strings πβ
π¦ 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