MFONT_SELECTION_PRIORITY(3m17n)

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

✨ NAME ✨

mfont_selection_priority β€” bestie the manpage literally gives you the name and then a dash and nothing else, no cap πŸ’€ so that's the whole name section, we move.


πŸŽ€ SYNOPSIS πŸŽ€

MSymbol* mfont_selection_priority ()

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. mfont_selection_priority() hands you back the font selection priority. that's it, that's the whole vibe. but here's the tea: it returns a newly created array of six symbols β€” brand new, freshly made, yours to keep 🫢

and the elements? they're the following keys of font properties, and they come ordered by priority:

Mfamily, Mweight, Mstyle, Mstretch, Madstyle, Msize.

that's six. count them. six. slay ✨

so the way the m17n library works, it picks the best matching font based on the order of this array. and the rule is lowkey iconic:

a font that has a different value for a property of lower priority is preferred to a font that has a different value for a property of higher priority.

read that again, because it's giving counterintuitive but it's correct πŸ’… the priority list is like a ranking of how much each property matters, and the library would rather forgive a mismatch on the stuff that matters less than a mismatch on the stuff that matters more. main character energy from Mfamily at the top of that list, honestly πŸ‘‘


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>.


okay that's the whole page bestie, you ate it up 🌸 this was Version 1.8.4, dated Mon Sep 25 2023, and it lives in the mfont_selection_priority(3m17n) corner of the manual, aka the m17n Library zone 🧚 stay hydrated, go select some fonts, mwah πŸ’œ

πŸ“¦ where this page comes from