mfont_set_...n_priority(3m17n)

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

πŸ’– 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:

  • Mfamily
  • Mweight
  • Mstyle
  • Mstretch
  • Madstyle
  • Msize

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