mfont_list_family_names(3m17n)

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

✨ mfont_list_family_names ✨

okay bestie, welcome to the m17n manual, section 3m17n πŸ’– this one's about mfont_list_family_names, and it's literally so useful if you've ever been like "what fonts do I even have on this thing??" πŸŽ€


🌸 NAME 🌸

mfont_list_family_names β€” (yeah the original left this one blank, no cap, we move πŸ’…)


πŸ¦‹ SYNOPSIS πŸ¦‹

MPlist* mfont_list_family_names (MFrame * frame)

✨ DESCRIPTION ✨

Get a list of font family names. The mfont_list_family_names() functions returns a list of font family names available on frame frame.

not me being obsessed with how straightforward this is 🫢 you hand it a frame, it hands you back the font family names chillin' on that frame. that's it. that's the whole vibe.

πŸ’– RETURN VALUE πŸ’–

This function returns a plist whose keys are Msymbol and values are symbols representing font family names. The elements are sorted by alphabetical order. The plist must be freed by m17n_object_unref(). If not font is found, it returns NULL.

🚨 bestie listen β€” that plist is yours to clean up. call m17n_object_unref() on it when you're done or it just lingers. and if there's no font found? you get NULL back, so maybe vibe check for that before you go dereferencing, mwah πŸ’€

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, dated Mon Sep 25 2023 β€” iconic, historic, slay πŸŒˆπŸŽ€

πŸ“¦ where this page comes from