mfontset_lookup(3m17n)

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

πŸ’– mfontset_lookup πŸ’–

okay bestie, welcome to mfontset_lookup, straight out of the m17n Library manual (that's 3m17n if you're keeping receipts). sit down, grab a boba, we're gonna look up some fontsets 🫢


✨ NAME ✨

mfontset_lookup -

(yeah the description is literally empty up there, the real lore is all in the sections below, no cap)


🌸 SYNOPSIS 🌸

MPlist * mfontset_lookup (MFontset * fontset, MSymbol script, MSymbol
language, MSymbol charset)

πŸ¦‹ DESCRIPTION πŸ¦‹

so like, this function lookups a fontset. the mfontset_lookup() function lookups fontset and hands you back a plist that describes the contents of fontset corresponding to the specified script, language, and charset. it's giving "let me tell you what's inside this thing" energy πŸ’…

  • if script is Mt, the keys of the returned plist are script name symbols for which some fonts are specified, and the values are NULL.
  • if script is a script name symbol, the returned plist is decided by language.
    • if language is Mt, the keys of the plist are language name symbols for which some fonts are specified, and the values are NULL. a key may be Mt, which means some fallback fonts are specified for the script. πŸ‘€
    • if language is a language name symbol, the plist is a FONT-GROUP for the specified script and language. FONT-GROUP is a plist whose keys are FLT (FontLayoutTable) name symbols (Mt if no FLT is associated with the font) and whose values are pointers to MFont.
    • if language is Mnil, the plist is the fallback FONT-GROUP for the script.
  • if script is Mnil, the returned plist is decided as below.
    • if charset is Mt, the keys of the returned plist are charset name symbols for which some fonts are specified, and the values are NULL.
    • if charset is a charset name symbol, the plist is a FONT-GROUP for the charset.
    • if charset is Mnil, the plist is a fallback FONT-GROUP.

πŸŽ€ RETURN VALUE πŸŽ€

  • it returns a plist describing the contents of a fontset. πŸ”₯
bestie listen β€” the plist should be freed by m17n_object_unref(). don't just leave it lying around, that's not main character behavior, that's a memory leak 😭

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


Version 1.8.4 🌈 Mon Sep 25 2023

and that's the whole page, bestie!! slay πŸ’–βœ¨ go forth and look up those fontsets, iykyk πŸ§šπŸ’œ

πŸ“¦ where this page comes from