m17nFontset(3m17n)

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

πŸ’– m17nFontset πŸ’–

okay bestie, gather round, because we're talking about the m17n Library page for m17nFontset(3m17n) β€” yes the manual name is literally m17nFontset(3m17n), that's the whole vibe. And the NAME? The NAME got absolutely mangled in the wash: it's listed as m17nFontset_-_Fon (πŸ’€ the truncation is real, no one fixed it, we respect the chaos) and the actual definition is this:

A fontset is an object that maps a character to fonts.

that's it. that's the whole thing. a character β†’ a font. matchmaker behavior, honestly. πŸ’…


✨ SYNOPSIS ✨

πŸŽ€ Functions

here's the whole squad, signature by signature, no edits, no notes:

MFontset * mfontset (char *name)

Return a fontset.

MSymbol mfontset_name (MFontset *fontset)

Return the name of a fontset.

MFontset * mfontset_copy (MFontset *fontset, char *name)

Make a copy of a fontset.

int mfontset_modify_entry (MFontset *fontset, MSymbol script, MSymbol language, MSymbol charset, MFont *spec, MSymbol layouter_name, int how)

Modify the contents of a fontset.

MPlist * mfontset_lookup (MFontset *fontset, MSymbol script, MSymbol language, MSymbol charset)

Lookup a fontset.


🌸 Detailed Description 🌸

okay so, a fontset? it's an object of the type MFontset. and when you're drawing an M-text, the fontset is the one running the show β€” it hands over the rules for picking a font for each individual character in that M-text. like a tiny casting director for glyphs. πŸ‘‘

and it makes those casting decisions based on the following info, bestie:

  • The script character property of a character.
  • The language text property of a character.
  • The charset text property of a character.

and if you wanna know exactly how all that info gets used? the documentation of mdraw_text() is where that lore lives. go read it. πŸ“–


🫢 Author 🫢

this bad boy was Generated automatically by Doxygen for The m17n Library from the source code. so like, no human author to credit, just Doxygen doing its little thing. πŸ€–βœ¨


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 page!! πŸ’– it's giving Version 1.8.4, dated Mon Sep 25 2023, and it lives in m17nFontset(3m17n) forever. slay, go map some characters to some fonts, bestie πŸŒˆπŸ¦‹β­

πŸ“¦ where this page comes from