Convert PFB to BDF
Turn PFB fonts into BDF. Every character the font maps is drawn as one-bit pixels at 16 pixels per em unless font.pixel_size says otherwise and encoded as Unicode, with its glyph name and width and the font's names, weight, slant, ascent and descent at that size.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop PFB files on the dialor turn it to pick what to do
A bitmap font from a Type 1 font.Every mapped character is drawn as one-bit pixels at 16 pixels per em.
What you get
A BDF font in the X11 text format, as one file. Every character the font maps is drawn as one-bit pixels and encoded as Unicode. Each glyph carries its glyph name and width.
The file also records the font's names, weight, slant, ascent and descent at that size.
How the glyphs are drawn
Glyphs are drawn at 16 pixels per em unless you change it. Set Pixel size to a value from 6 to 72 to draw them at another size.
The font's TrueType instructions hint the glyphs. FreeType's autohinter does it for CFF outlines and for fonts without instructions. If the font has its own bitmaps of that size, those are used.
As in FreeType, the space and hyphen also stand in for the no-break space and soft hyphen when the font has no glyphs of their own.
What it leaves behind
Kerning is not included. Type 1 fonts keep kerning in a separate AFM file.
A bitmap font holds no outlines, kerning or layout features, so it looks right only at the size it was drawn at. Glyphs that no character maps to, such as ligatures and alternates, are left out.
To go the other way, see BDF to PFB.
PFB and BDF.What each format is, and the options this conversion takes.
- 01 · font.pixel_size
Pixel size
The size in pixels at which an outline font is drawn into a bitmap font.
6 to 72 default 16
The formats
Type 1 Font
PostScript Type 1 fonts, binary PFB or ASCII PFA. The print-shop font format before OpenType.
- Extensions
- .pfb .pfa
- MIME type
- application
/x -font -type1 - Kind
- Fonts
BDF Font
Bitmap fonts in the X11 text format.
- Extensions
- .bdf
- MIME type
- application
/x -font -bdf - Kind
- Fonts
In your code.The same PFB to BDF conversion through the API, for your app or your agent.
$ cv convert font.pfb font.bdf$ cv convert font.pfb font.bdfQuestions.What people ask about PFB to BDF.
They are drawn at 16 pixels per em by default. Set Pixel size to change it, anywhere from 6 to 72.
No. Type 1 fonts keep kerning in a separate AFM file, and it is not included in the BDF.
No. The bitmap font holds no outlines, so it looks right only at the size it was drawn at. Convert again with a different Pixel size for another size.
No. Glyphs that no character maps to, such as ligatures and alternates, are left out.