mfont_get_prop(3m17n)
β¨ NAME β¨
mfont_get_prop β bestie, it gets a font property, that's the whole vibe π
(also hi, you're in the m17n Library manual, section 3m17n, welcome to the group chat π«Ά)
β¨ SYNOPSIS β¨
void* mfont_get_prop (MFont * font, MSymbol key)
πΈ DESCRIPTION πΈ
okay so, real talk: this function is literally your font's info desk. You hand it a font and a key, and it hands you back the value of that key property. Simple. Iconic. No cap. π
key must be one of these symbols β like, the assignment is mandatory, this is the list:
MfoundryMfamilyMweightMstyleMstretchMadstyleMregistryMsizeMresolutionMspacing
and plot twist π β if font happens to be a return value of mfont_find(), then key can also be one of these extra ones:
Mfont_ascentMfont_descentMmax_advance
iykyk β¨
π RETURN VALUE π
so what do you actually get back? depends on which key you picked, bestie:
- If
keyisMfoundry,Mfamily,Mweight,Mstyle,Mstretch,Madstyle,Mregistry, orMspacing, this function returns the corresponding value as a symbol. πΈ - If the font does not have that
keyproperty, it returnsMnil. π - If
keyisMsize,Mresolution,Mfont_ascent,Mfont_descent, orMmax_advance, this function returns the corresponding value as an integer. π’ - If the font does not have that
keyproperty, it returns0. π - If
keyis something else entirely (like, not on either list??), it returnsNULLand assigns an error code to the external variablemerror_code. β οΈ
π 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 a wrap on mfont_get_prop(3m17n), bestie!! this page is living in Version 1.8.4, dated Mon Sep 25 2023, and it ate, fr fr. go get those properties, main character π¦βπ
π¦ 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