mfont_set_...n_priority(3m17n)
π mfont_set_selection_priority β the m17n Library glow-up π
okay bestie, sit down, hydrate, and let me tell you about a lil function from the m17n Library manual (that's section 3m17n if you're keeping score π). it's giving "font vibes, but make it ranked" and honestly? obsessed.
β¨ NAME β¨
mfont_set_selection_priority β that's the whole name, no extra crumbs πΈ
π¦ SYNOPSIS π¦
int mfont_set_selection_priority (MSymbol * keys)
π DESCRIPTION π
so here's the tea, bestie: mfont_set_selection_priority() sets the font selection priority. like, it decides what actually matters when the library is out here choosing a font. main character energy for exactly one font attribute, and the rest of them are just supporting cast π
it does this based on keys, which is an array of six symbols. six. not five, not seven β six, periodt.
every single element in that array has to be one of these iconic lil guys:
MfamilyMweightMstyleMstretchMadstyleMsize
and listen β no two elements must be the same. like, don't be sending duplicates in here, that's not the vibe π«β¨
ngl if you want the actual details of how the priority thing works, go read the documentation of mfont_selection_priority(). this one's just the setter, the other one is the one spilling the lore π₯
π 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>.
and that's the whole page, bestie!! π«Ά this was Version 1.8.4, dated Mon Sep 25 2023 β so if you're reading this from the future, hi, ily, the priority thing still takes six symbols πβ¨π
π¦ 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