mfont_set_encoding(3m17n)

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

πŸ’– NAME πŸ’–

mfont_set_encoding β€” that's literally it, bestie, that's the whole name. The actual tea is down in DESCRIPTION πŸ‘‡


✨ SYNOPSIS ✨

int mfont_set_encoding (MFont * font, MSymbol encoding_name, MSymbol
repertory_name)

Like, three args, returns an int, she's simple and she's serving 🫢


πŸŽ€ DESCRIPTION πŸŽ€

okay so the whole vibe here is: set encoding of a font. That's the job. The mfont_set_encoding() function sets the encoding information of the font font. Slay. πŸ’…

So let's break down the cast of characters:

  • encoding_name β€” this is a symbol representing a charset that has the same encoding as the font. Basically you're telling it "hey girl, this font encodes its characters like this charset does." ✨
  • repertory_name β€” this one is either Mnil or a symbol representing a charset that has the same repertory as the font. Now if you pass Mnil here, the question "does this font support this specific character?" gets asked to each font driver instead. No cap, that's the deal. πŸ¦‹

πŸ”₯ RETURN VALUE πŸ”₯

  • If everything went off without a hitch β€” success, main character energy β€” this function returns 0. πŸŽ‰
  • If it did NOT, it returns -1 and assigns an error code to the external variable merror_code. 😭 Check her, she's trying to tell you something.

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, from the m17n library era β€” ty for coming to my ted talk, mwah πŸ’–πŸŽ€πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from