mface_put_prop(3m17n)
π mface_put_prop β bestie edition π
okay so this is mface_put_prop(3m17n), a lil function from the m17n Library manual, and honestly? it's giving "setter but make it fashion". sit down, grab a boba, we're doing this π§β¨
β¨ NAME β¨
mface_put_prop β bestie, it sets a value of a face property. that's the whole vibe.
β¨ SYNOPSIS β¨
int mface_put_prop (MFace * face, MSymbol key, void * val)
like. three args. in, key, out. we love a clean signature π
β¨ DESCRIPTION β¨
so the mface_put_prop() function assigns val to the property whose key is key in face face. that's it, that's the whole job. main character behavior, no notes π
but wait β key isn't just anything you feel like typing, bestie. it must be one of the followings, no cap:
#Mforeground#Mbackground#Mvideomode#Mhline#Mbox#Mfoundry#Mfamily#Mweight#Mstyle#Mstretch#Madstyle#Msize#Mfontset#Mratio#Mhook_func#Mhook_arg
sixteen keys. not fifteen, not seventeen. we respect the list π
now here's the tea: among them, the font related properties β that's Mfoundry through Msize β are used as the default values when a font in the fontset of face does not specify those values. so they're like the backup dancers that step in when the main act doesn't show. iconic, honestly. π
and the actual type of the returned value depends of key. so, like, don't assume. check the documentation of the above keys, iykyk. π
β¨ RETURN VALUE β¨
- if the operation was successful,
mface_put_prop()returns0. slay. β¨ - otherwise it returns
-1and assigns an error code to the external variablemerror_code. and that's on periodt. π
β¨ SEE ALSO β¨
mface_get_prop()β the getter to this setter. they're a matching set, fr fr π«Ά
β¨ ERRORS β¨
MERROR_FACE
β¨ 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>.
ngl, the licence is real and the permissions are real, so pls treat them with the respect they deserve π
and that's the page, bestie!! this was Version 1.8.4, dated Mon Sep 25 2023. thanks for reading, ily, go set some face properties ππΈπ¦π
π¦ 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