vfont2fnt(1)
πΈ NAME πΈ
vfont2fnt(1) β the lil converter that takes a BSD vfont file and turns it into a Windows font-resource file. That's it, that's the job, and she does it flawlessly. π
β¨ SYNOPSIS β¨
vfont2fnt [--ascent=ASC] [--bold] [--brkchar=CHAR] [--copy=COPYRIGHT]
[--codepage=CODEPAGE] [--charset=CHARSET] [--defchar=DEFAULT]
[--firstchar=FIRST] [--fontname=NAME] [--horzres=DPI] [--italic]
[--lastchar=CHAR] [--pointsize=SIZE] [--version=FORMAT] [--vertres=DPI]
[INPUTFILE [OUTPUTFILE]]
π¦ DESCRIPTION π¦
okay so bestie, here's the tea: vfont2fnt saves some or all of the characters from a vfont font as a Windows font-resource file β the exact kind of file the Windows SDK tool FONTEDIT works with. π«Ά
Then once you've got that file, you run it through fnts2fon(1) and boom, you've got yourself an installable font. No cap. π
π OPTIONS π
--ascentβ sets the distance from the baseline up to the top of the character. If you don't say anything, it defaults to the maximum baseline of each character in the font. β--boldβ marks the resulting font as bold. That's the whole thing, she just puts the word "bold" on it. πͺ--brkchar=nnnβ sets the index of the character used to print word breaks. Defaults to32(space). π--charset=charsetβ sets the character set of the resulting font. Can be one of the wordsANSI,OEMorSYMBOL, or a numeric value. π--codepage=xβ extracts only the characters in the given codepage (this needs the source PSF file to have a Unicode directory, so like, check that first). Any characters in the codepage that aren't present in the source font get replaced by blanks. You can give the codepage by number or by name β seepsfpages(1)for the list of acceptable codepage names. π--copy=stringβ sets the copyright string in the resulting font. Heads up though: spaces are gonna have to be escaped, otherwise the shell sees them and eats them. π--defchar=nnnβ sets the index of the character used to display out-of-range characters. Defaults to46(full stop). π--first=nβ extracts characters starting at the specified character. β¨--fontname=nameβ sets the name of the output font. Name her, bestie. πΈ--horzres=nnnβ sets the horizontal resolution of the font in DPI. Defaults to48. π--italicβ marks the font as italic. Slanty vibes, periodt. π--last=nβ extracts characters up to and including the specified character. Inclusive, because she's generous. π«Ά--pointsize=nβ sets the font point size. This defaults to the font height in pixels. β--version=nβ sets the file format version. This can be1,2or3. Version1should only be used if you are creating a font for Windows 1.0. Version2should be used if the font is less than 32k in size; otherwise, use Version3. A warning will be displayed if the size of the font being output exceeds this limit. π
Okay and if a codepage and a range of characters are both specified at the same time? The range gets applied to the subset of characters that the codepage extracted. Order of operations, bestie. π§
Also ngl, the synopsis up there shows --vertres=DPI, but the page itself doesn't describe it anywhere. Just flagging it so you don't think I skipped a bullet. π
π SEE ALSO π
psf2fnt(1), fnt2vfont(1), psfpages(1)
π AUTHOR π
John Elliott <seasip.webmaster@gmail.com>. π«Ά
And that's the whole page, bestie! This lil icon is vfont2fnt from PSF Tools, Version 1.1.3, dated 28 April, 2026 β go forth and convert some fonts. Mwah. πβ¨π
π¦ where this page comes from
- nixpkgs unstable: psftools 1.1.3
- ubuntu stonking: psftools 1.1.3-1
- Copyright (c) 2005, 2007, 2024 John Elliott
- Copyright (C) 2005, 2007, 2024 John Elliott
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms