mfont_unparse_name(3m17n)

πŸ“¦
version 1.8.4 Β· 2 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

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