TTMKFDIR(1)

πŸ“¦ version 3.0.9, in centos-stream 10, centos-stream 9, fedora 43, fedora 44

πŸ’– TTMKFDIR πŸ’–

okay bestie, welcome to ttmkfdir β€” she's a General Commands Manual girlie and she makes fonts.scale files for TrueType fonts. yes. that's the whole vibe. let's get into it πŸŽ€


✨ NAME ✨

ttmkfdir β€” the utility that creates fonts.scale files for truetype fonts πŸ¦‹


🌸 SYNOPSIS 🌸

ttmkfdir [OPTION]

πŸ’… DESCRIPTION πŸ’…

so originally this was written by Joerg Pommnitz (shoutout πŸ‘‘), and ttmkfdir is a tool that creates a valid and complete fonts.scale file out of TrueType fonts. it is very useful when you're planning to use a TrueType enabled font server based on the X11R6 sample implementation (xfsft for instance, iykyk). and the way she took great care to correctly identify the encodings that a given TrueType font supports?? obsessed. truly main character energy. ✨

the ttmkfdir that comes with Red Hat Linux has experienced quite some modifications or improvements, including:

  • migration to FreeType 2 library 🧚
  • more accurate checking for big font files
  • support for both two X core font backends, Freetype and XTT
  • Truetype collection(ttc) font file support
  • additional CJK friendly features 🌈
  • bug fixes πŸ’€ (we love her for this)

🌟 OPTIONS 🌟

here's the detailed usage of the Red Hat version of ttmkfdir, bestie. every single one, no skips:

  • -h, --help β€” it shows the menus and combo box in iok UI
  • -e, --encoding <encodings.dir> β€” ttmkfdir is doing its job by checking each TrueType font file against fontenc layer, please refer www.xfree86.org/current/fonts.html for details. default encodings.dir file is /usr/X11R6/lib/X11/fonts/encodings/encodings.dir
  • -o, --output β€” specify output, default is fonts.scale in the current directory
  • -d, --font-dir β€” specify TrueType font directory, default is the current directory
  • -f, --default-foundry β€” specify name of the default font foundry, default is "misc"
  • -m, --max-missing β€” specify the maximum number of missing characters per encoding, default is 5. this option applies to the encoding that has less than 256 codepoint definitions
  • -a, --max-missing-percentage β€” specify the maximum percentage of missing characters per encoding, default is 2. this option applies to the encoding that has more than 256 codepoint definitions
  • -b, --font-backend β€” for X FreeType backend, use value "1", for XTT backend use value "2", default value is 1. when you have TrueType Collection font (.ttc), you need to use this option
  • -x, --additional-entries β€” additional entries mean those extra TTCaps stuff for XTT backend, mainly for bold and italic font support. or for FreeType backend, because FreeType still doesn't support bold and italic font, ttmkfdir can generate extra "dummy" XLFDs, so applications who asking those fonts won't complain.

default value is "0" means off, otherwise use "1" to switch it on.

  • -c, --completeness β€” use less strict completeness tests for encoding tables
  • -p, --panose β€” use panose information

🫢 AUTHOR 🫢

Yu Shao <yshao@redhat.com> and Pravin Satpute <psatpute@redhat.com> πŸ’œ


πŸ‘‘ LICENSE πŸ‘‘

GNU Library General Public License


no cap, that's the whole page. go make some fonts.scale files, bestie, you got this 🌸

mwah πŸ’‹ this little icon was brought to you by the General Commands Manual, dated March 28, 2013 β€” stay slay, stay scaled.

πŸ“¦ where this page comes from