fntsample(1)
β¨ fntsample β the font sample glow-up generator β¨
okay bestie, so like β this is the manual page for fntsample, a program that makes PDF and PostScript font samples. yes, lowercase fntsample. it's giving main character energy in the font-inspection world, and honestly? obsessed. π
πΈ SYNOPSIS πΈ
fntsample [ OPTIONS ] -f FONT-FILE -o OUTPUT-FILE
fntsample -h
π¦ DESCRIPTION π¦
So fntsample makes font samples β the kind that show off a font's Unicode coverage, and they look so similar to actual Unicode charts. like, the vibe is immaculate. β¨
You can save those samples as a PDF (that's the default, bestie) or as a PostScript file.
π OPTIONS π
fntsample supports the following options, and no, we are not skipping any of them, periodt.
--blocks-file,-bBLOCKS-FILE β reads the Unicode blocks info from BLOCKS-FILE. like, that's where it gets the block tea from. π--font-file,-fFONT-FILE β makes samples of FONT-FILE. this is THE font, the one we're sampling.--font-index,-nIDX β the font index for FONT-FILE that you specified with the--font-fileoption. highkey useful for files that hold multiple fonts, like TrueType Collections (.ttc). by default, the font with index 0 gets used. π«--output-file,-oOUTPUT-FILE β writes the output to OUTPUT-FILE. where the magic lands.--other-font-file,-dOTHER-FONT β compares FONT-FILE against OTHER-FONT. the glyphs that got added to FONT-FILE will be highlighted. it's giving glow-up comparison. π₯--other-index,-mIDX β the font index for OTHER-FONT that you specified with the--other-font-fileoption.--postscript-output,-sβ uses PostScript format for the output instead of PDF. retro-ish, we respect it. π--svg,-gβ uses SVG format for the output. the generated document contains one page β and yes, only one β so use the range selection options to specify which page that is. π--print-outline,-lβ prints document outlines data to standard output. that data can be used to add outlines (aka bookmarks, bestie) to the resulting PDF file with thepdfoutlineprogram. π--write-outline,-wβ writes the document outlines directly (only in PDF output, so don't come for it otherwise).--include-range,-iRANGE β shows characters in RANGE. only those. inclusive behavior fr fr.--exclude-range,-xRANGE β does not show characters in RANGE. not me gatekeeping glyphs but okay.--style,-t "STYLE: VAL"β sets STYLE to value VAL. runfntsamplewith the--helpoption to see the list of styles and their default values. peek behind the curtain, bestie. π§--no-embed,-eβ draws the outlines of the glyphs instead of embedding them in the PDF file. use this when embedding the font is not desired or not allowed. very "we're keeping it surface level" of you. π--help,-hβ displays the help text and exits. the classic.
Also, quick note on the RANGE parameter for-iand-x: you can give it as one integer, or as a pair of integers delimited by a minus sign (-). Integers can be written in decimal, hexadecimal (0x...) or octal (0...) format. And one integer of a pair can be missing β-Nspecifies all characters with codes less or equal to N, andN-specifies all characters with codes greather or equal to N. (that typo is canon, we're keeping it, it's iconic π). Multiple-iand-xoptions can be used. π
π COLORS π
Glyph cells can have one of several background colors. Here's what each color is actually saying:
- white β normal glyph present in the font. this includes space glyphs, which are usually invisible (they're shy, leave them alone π«Ά).
- gray β this glyph is defined in Unicode but not present in the font.
- blue β this is a control character.
- black β this glyph is not defined in Unicode.
- yellow β this is a new glyph (only when used with
-d). the fresh drops β¨
β ENVIRONMENT β
SOURCE_DATE_EPOCHβ if$SOURCE_DATE_EPOCHis set, its value is interpreted as a Unix timestamp to be used for the creation date of the generated PDF files. this is useful for making builds that usefntsamplereproducible. reproducible builds girlies, rise. π₯
π EXAMPLES π
Make PDF samples for font.ttf and write them to file samples.pdf:
fntsample -f font.ttf -o samples.pdf
Make PDF samples for font.ttf, compare it with oldfont.ttf and highlight the new glyphs. Write output to file samples.pdf:
fntsample -f font.ttf -d oldfont.ttf -o samples.pdf
Make PostScript samples for font.ttf and write output to file samples.ps. Show only glyphs for characters with codes less or equal to U+04FF but exclude U+0370-U+03FF:
fntsample -f font.ttf -s -o samples.ps -i -0x04FF -x 0x0370-0x03FF
Make PDF samples for font.ttf and save output to file samples.pdf adding outlines to it:
fntsample -f font.ttf -o temp.pdf -l > outlines.txt
pdfoutline temp.pdf outlines.txt samples.pdf
π AUTHOR π
Copyright Β© Ievgenii Meshcheriakov <eugen@debian.org>
Homepage: <https://github.com/eugmes/fntsample>
π SEE ALSO π
pdfoutline(1) β the other program that shows up in like half these examples. go say hi.
okay that's the whole thing, no notes, ate and left no crumbs π
this was fntsample manual page, version 5.4, dated 2024-04-01 β love that for us, bye bestie!! π¦πΈπ
π¦ where this page comes from
- ubuntu noble: fntsample 5.4-3build2
- ubuntu questing: fntsample 5.4-3build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms