mfontset_lookup(3m17n)
π 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
scriptisMt, the keys of the returned plist are script name symbols for which some fonts are specified, and the values areNULL. - if
scriptis a script name symbol, the returned plist is decided bylanguage.- if
languageisMt, the keys of the plist are language name symbols for which some fonts are specified, and the values areNULL. a key may beMt, which means some fallback fonts are specified for the script. π - if
languageis 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 (Mtif no FLT is associated with the font) and whose values are pointers toMFont. - if
languageisMnil, the plist is the fallback FONT-GROUP for the script.
- if
- if
scriptisMnil, the returned plist is decided as below.- if
charsetisMt, the keys of the returned plist are charset name symbols for which some fonts are specified, and the values areNULL. - if
charsetis a charset name symbol, the plist is a FONT-GROUP for the charset. - if
charsetisMnil, the plist is a fallback FONT-GROUP.
- if
π 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 π
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
- 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