mfontset_copy(3m17n)

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

✨ NAME ✨

mfontset_copy β€” bestie, that's literally the whole name, the manpage really said "no description, figure it out" πŸ’… (it's a function from the m17n Library, which is where all the magic happens, iykyk)


πŸ¦‹ SYNOPSIS πŸ¦‹

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

πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the tea: mfontset_copy() makes a copy of a fontset. like, a whole entire duplicate. iconic behavior fr fr 🫢

Specifically:

  • you hand it the fontset fontset, and it clones it
  • it gives the new baby copy the name name
  • then it hands you back a pointer to the freshly created copy, and you say thank you ✨
🚨 BUT β€” plot twist β€” name must not be the name of a fontset that already exists. Not even a little. If you try it anyway, the function just returns NULL and does not make a copy at all. no copy, no crumbs, nothing. πŸ’€

So like, pick a fresh name bestie, don't be out here naming your new fontset the same thing as an old one. that's not the vibe check you want to fail πŸ™ˆ


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, bestie 🌈 Version 1.8.4, dated Mon Sep 25 2023, and it's mfontset_copy(3m17n) forever and always. slay, go copy responsibly πŸ’–πŸŒΈ

πŸ“¦ where this page comes from