MFONT_SELECTION_PRIORITY(3m17n)
β¨ 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 π
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
- 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