mfont_put_prop(3m17n)
β¨ mfont_put_prop β the m17n Library, manual section 3m17n β¨
okay bestie, gather round, we're doing font properties today π
π NAME π
mfont_put_prop β (yeah, the original NAME section is literally just the name and a lil dash, no cap, that's the whole thing π)
π¦ SYNOPSIS π¦
int mfont_put_prop (MFont * font, MSymbol key, void * val)
π DESCRIPTION π
So the vibe is: you're putting a property value onto a font. That's it, that's the function. πΈ
The mfont_put_prop() function puts a font property whose key is key and value is val to font font.
Now β and this is the part you cannot freestyle β key must be one of the following symbols:
MfoundryMfamilyMweightMstyleMstretchMadstyleMregistryMsizeMresolution
That's the whole list. Nine icons. No extras, no substitutions, no "but what aboutβ¦" π
Then, the type check that keeps us all safe:
- If key is
MsizeorMresolution, then val must be an integer. Periodt. π’ - Otherwise, val must be a symbol of a property value name.
β οΈ And here's the lil gotcha that will absolutely humble you if you forget it: if the name is'nil', you must specify a symbol of name'Nil'. Yes bestie, capital N. Not'nil'.'Nil'. The lowercase one is NOT it, iykyk ππ
π 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, babe π«Ά go forth and set those font properties, you're literally the main character of typography rn π
Version 1.8.4 β Mon Sep 25 2023 β mwah, this was mfont_put_prop(3m17n), signing off πβ¨
π¦ 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