mfont_check(3m17n)

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

✨ NAME ✨

mfont_check β€” it's literally just vibes and font-checking bestie πŸ’…

(okay so the original page leaves this bit blank, so we're keeping it blank, no cap 🫢)


🌸 SYNOPSIS 🌸

int mfont_check (MFrame * frame, MFontset * fontset, MSymbol script,
       MSymbol language, MFont * font)

five args, one little int coming back at ya πŸŽ€


πŸ’– DESCRIPTION πŸ’–

So the whole point of this one is checking whether a font is even usable. That's it, that's the job. πŸ¦‹

The mfont_check() function checkes β€” yes it really says checkes in the source, not me, I would never 😭 β€” whether font can be used for script and language in fontset on frame.

Like, you hand it a frame, a fontset, a script, a language, and a font, and it goes "hmm, does this font actually work here for this script and this language in this fontset?" and tells you. Main character energy tbh πŸ‘‘


⭐ RETURN VALUE ⭐

  • If the font is usable β†’ it returns 1 πŸŽ‰
  • Otherwise β†’ it returns 0 πŸ’€

that's the whole range bestie, binary as hell, obsessed πŸ™ˆ


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

fr fr, the license said yes to copying, distributing, and/or modifying this doc, so go off πŸ’œ

and that's the page!! this was Version 1.8.4, dated Mon Sep 25 2023, straight out of the m17n Library 🧚✨ mwah, slay, periodt πŸ’…πŸ’–

πŸ“¦ where this page comes from