UCS2ANY(1)
π ucs2any β the ISO 10646-1 subset font generator (X Version 11, bestie)
okay so picture this: you've got ONE iconic master font in ISO 10646-1 encoding, and you need, like, a whole wardrobe of 8-bit encodings for it. that's literally what ucs2any does. it's serving group-chat organizer energy for your fonts. β¨
π NAME π
ucs2any β generate BDF fonts containing subsets of ISO 10646-1 codepoints. yes, that's the whole vibe. π
πΈ SYNOPSIS πΈ
ucs2any [ +d | -d ] source-name { mapping-file registry-encoding } ...
ucs2any [ --help | --version ]
π¦ DESCRIPTION π¦
so ucs2any lets you take an ISO 10646-1 encoded BDF font and generate other BDF fonts in literally any possible encoding from it. no cap. π«Ά
the way this slaps is: you keep ONE single ISO 10646-1 master font, and from that you can derive a whole entire set of 8-bit fonts in all ISO 8859 encodings plus various other ones. one source font, infinite fits. main character font energy, honestly. π
β¨ OPTIONS β¨
+dβ puts DEC VT100 graphics characters in the C0 range. this is the default for upright, character-cell fonts, iykyk. π-dβ omits DEC VT100 graphics characters from the C0 range. this one's the default for all font types except upright, character-cell fonts. π--helpβ prints the usage message and exits. tiny helpful icon. π--versionβ prints version information and exits. slay, brief and to the point. β
π OPERANDS π
source-nameβ the name of an ISO 10646-1 encoded BDF file. your starting material, your muse. π§mapping-fileβ the name of a character set table like those at<ftp://ftp.unicode.org/Public/MAPPINGS/>. these files can also typically be found installed in the/usr/share/fonts/X11/utildirectory. go look, they're probably already there. πregistry-encodingβ these are theCHARSET_REGISTRYandCHARSET_ENCODINGfield values for the font name (XLFD) of the target font, separated by a hyphen. that's the hyphen doing the separating, not me. π
and here's the fun part: any number of mapping-file and registry-encoding operand pairs may be specified. go off, specify as many as you want. π
π₯ EXAMPLE π₯
the command
ucs2any 6x13.bdf 8859-1.TXT iso8859-1 8859-2.TXT iso8859-2
will generate the files 6x13-iso8859-1.bdf and 6x13-iso8859-2.bdf. two fonts, one command, absolutely ate. πβ¨
π FUTURE DIRECTIONS π
hopefully a future release will have a facility similar to ucs2any built into the server, and re-encode ISO 10646-1 on the fly β because storing the same fonts in many different encodings is clearly a waste of storage capacity. fr fr, that's so much duplicated storage, we're all rooting for the glow-up. π¦
πΈ SEE ALSO πΈ
bdftruncate(1) β go say hi, bestie lives next door. π«Ά
π AUTHOR π
ucs2any was written by Markus Kuhn. π
Branden Robinson wrote this manual page, originally for the Debian Project. π
and that's the tea, bestie β brought to you by font-util 1.4.2, dated 2025-04-27. now go subset some fonts, you gorgeous nerd. π β¨
π¦ where this page comes from
- alpine 3.24: font-util-doc 1.4.2-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms