mfont_put_prop(3m17n)

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

✨ 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:

  • Mfoundry
  • Mfamily
  • Mweight
  • Mstyle
  • Mstretch
  • Madstyle
  • Mregistry
  • Msize
  • Mresolution

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 Msize or Mresolution, 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 (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