mfont_set_encoding(3m17n)
π 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 eitherMnilor a symbol representing a charset that has the same repertory as the font. Now if you passMnilhere, 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
-1and assigns an error code to the external variablemerror_code. π Check her, she's trying to tell you something.
π 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>.
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
- 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