mfont_from_name(3m17n)
π mfont_from_name β the m17n Library glow-up π
okay bestie, sit down, hydrate, because we're talking about mfont_from_name from the m17n Library manual, section 3m17n. yes it's a real function, yes it's in your man pages, and yes it's lowkey retired. let's get into it π«Ά
β¨ NAME β¨
mfont_from_name β bestie, that's literally the whole name. no long description, the title ate and left no crumbs π
πΈ SYNOPSIS πΈ
MFont* mfont_from_name (const char * name)
so it hands you back a pointer to an MFont, and it wants one thing: a const char * called name. that's it. that's the whole vibe check β¨
π¦ DESCRIPTION π¦
okay so here's the tea, and I need you to hear me on this one: this function creates a new font from fontname. like, you give it the name, it gives you a font. iconic behaviour, truly.
π¨ BUT. and this is the big one. this function is obsolete. like, it's giving legacy code, it's giving "we don't do that anymore". do not build your whole personality on this one.
instead?? use mfont_parse_name() instead. periodt. that's the one you want, that's the one that's still thriving, that's your main character function π
so like, if you're out here calling mfont_from_name in brand new code in this economy?? babe. no. use mfont_parse_name(). iykyk π
π COPYRIGHT π
okay legal moment, but make it cute. here's exactly who to thank:
- Copyright (C) 2001 Information-technology Promotion Agency (IPA)
- Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
and the licensing situation? permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License β the whole thing lives at http://www.gnu.org/licenses/fdl.html if you wanna read the fine print (you should, bestie, know your rights π).
and that's the whole page, no crumbs left π version 1.8.4, dated Mon Sep 25 2023, from the m17n Library manual β mwah, love that for us, stay slay, go call mfont_parse_name() instead πβ¨π¦
π¦ 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