FOP-TTFREADER(1)

πŸ“¦
version 2.10 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– FOP-TTFREADER πŸ’–

okay so bestie, welcome to FOP-TTFREADER, a lil gem from the User Contributed Perl Documentation section of your man pages ✨

🌸 NAME 🌸

fop-ttfreader β€” a tool that reads TTF files and generates an XML font metrics file, for use in FOP πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

fop-ttfreader [options] fontfile.ttf xmlfile.xml

✨ OPTIONS ✨

  • -enc ansi β€” pass this and you get a WinAnsi encoded font. default behavior is to create a CID keyed font instead. so like, if you're not gonna use characters outside the pdfencoding range (basically the same as iso-8889-1), you can totally add this option 🫢
  • -ttcname fontname β€” reading from a TrueType Collection (.ttc file)? then you must specify which font from the collection you want the metrics from. and if you read a .ttc file without this option, the fontnames get listed for you, so at least you're not left guessing πŸ’€
  • -fn fontname β€” default is to use the fontname that's sitting inside the .ttf file, but you can override that name to make sure the embedded font gets used (yes, when you're embedding fonts) instead of installed fonts when people view documents in Acrobat Reader. lowkey important. πŸ’…

πŸŽ€ EXAMPLES πŸŽ€

"fop-ttfreader /usr/share/fonts/truetype/freefont/FreeSerif.ttf freeserif.xml"

this one generates a freeserif.xml file holding the XML font metrics from FreeSerif.ttf ⭐ iconic behavior fr fr


🌈 JAVA-WRAPPERS NOTE 🌈

this program is a shell script wrapper built on top of java-wrappers(7) πŸ‘‘

so you get to enjoy several features for free, no cap β€” just peek at the java-wrappers(7) manual page for all the deets on those πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

Wrapper author: Arnaud Vandyck <avdyk@debian.org> 🫢


πŸ’œ SEE ALSO πŸ’œ


okay that's the whole thing, you ate it πŸ’… this was Fop-TTFReader, dated 2025-05-07, and it lives under FOP-TTFREADER(1) β€” go read some fonts bestie, mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from