TTF2PT1_X2GS(1)
β¨ TTF2PT1_X2GS β¨ β like, the ttf2pt1_x2gs manual, bestie π
okay so this is the page for ttf2pt1_x2gs, part of the TTF2PT1 Font Converter squad, and it's literally the font installer for Ghostscript. no cap. π
πΈ NAME πΈ
ttf2pt1_x2gs β the font installer for Ghostscript π«Ά
β SYNOPSIS β
ttf2pt1_x2gs [config-file]
π DESCRIPTION π
okay so here's the tea β: the fonts you generate with ttf2pt1 work fine with Ghostscript all by themselves, like they don't need anything. but the ttf2pt1_x2gs script is the main character that links the font files from the X11 directory into the Ghostscript directory and automatically creates the description file (Fontmap) in Ghostscript format. slay. β¨
if you don't specify the config file as an argument, then the file convert.cfg in the current directory gets used, exactly like the convert script does. and yes bestie, that same config file is shared by both scripts. one config, two icons. π
here are the Ghostscript-related parameters you'll find in the config file:
DSTDIRβ the X11 font directory thatttf2pt1_x2gsuses as the source of the fonts. this one is shared with the X11 configuration, iykyk.GSDIRβ the base directory of Ghostscript. if you set this parameter to an empty string, thenttf2pt1_convertwon't callx2gsat all. so if all you want is the X11 fonts installed, set this to an empty string and you're done. π this directory can be different on different systems, so please go check your system and set this value accordingly before running the script.GSFONTDIRβ the font directory of Ghostscript. in a standard Ghostscript installation it's a subdirectory ofGSDIR, but some systems out here being different and may use completely different directories. πGSCONFDIRβ the configuration subdirectory of Ghostscript that contains theFontmapfile.INSTALLFONTMAPβ if this value is set toYES, then the entries for the new fonts get installed right into the mainFontmapfile. otherwise it just leaves the fileFontmap.ttfsitting in the Ghostscript configuration directory. simple as that.
once you've prepped the config file, run the script. it symbolically links all the font files and creates the description file Fontmap.ttf in GSCONDFIR. and after that, bestie, you have two choices. π
- if the option
INSTALLFONTMAPwas set toYES, then the font descriptions are also automatically installed into the masterFontmapfile. and the script is clever enough to detect if it was run multiple times with the same directories β and if so, it replaces the oldFontmapentries with the new ones instead of just accumulating all of them. iconic behavior fr fr. π₯ you may also run it multiple times for multiple X11 directories and all the results will be properly collected in theFontmap. but it's your responsibility to watch that the names of the font files don't overlap. π and if the X11 font directory gets renamed, then you have to remove its font entries from theFontmapand only after that re-runttf2pt1_x2gsfor the new directory. order matters, don't skip steps. - on the other hand, if the option
INSTALLFONTMAPwas set toNO, then go to theGSCONFDIRdirectory and insert the contents ofFontmap.ttfinto theFontmapfile manually. this step may be left manual to make the installation a little bit more safe. π§
after that you may also want to redefine some of the aliases in Fontmap so they refer to the newly installed fonts.
β οΈ but the redefinition of the aliases may be dangerous if the width of characters in the new font will be different from the old font. and alas, there is no visible solution of this problem yet. π so like... be careful, bestie.
π FILES π
/usr/share/doc/ttf2pt1-3.4.4/convert.cfg.sample/usr/share/ttf2pt1/scripts/*/usr/share/doc/ttf2pt1-3.4.4/README/usr/share/doc/ttf2pt1-3.4.4/FONTS/usr/share/ttf2pt1/*/usr/bin/ttf2pt1
π¦ SEE ALSO π¦
and that's the whole page, periodt. π this was version 3.4.4, dated December 31, 2003 β yeah she's an elder but she still ate. π mwah, go install some fonts bestie πβ¨
π¦ where this page comes from
- fedora 43: ttf2pt1 3.4.4-51.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-BSD-with-advertising
- fedora 44: ttf2pt1 3.4.4-52.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-BSD-with-advertising
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms