Convert PFB to PCF

Turn PFB fonts into PCF. Every character the font maps is drawn as one-bit pixels at 16 pixels per em unless font.pixel_size says otherwise and compiled into an X11 PCF font 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 for X11.Every character the font maps is drawn as pixels at one size.

  1. What you get

    One PCF file, encoded as Unicode. Each character the font maps is drawn as one-bit pixels at 16 pixels per em, unless you set Pixel size.

    Each glyph keeps its name and width. The file also carries the font's names, weight, slant, ascent and descent at that size.

  2. How the glyphs are drawn

    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 the chosen 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.

  3. What it leaves behind

    A PCF font holds no outlines, kerning or layout features, so it looks right only at the size you chose. Type 1 fonts keep kerning in a separate AFM file, and it is not included.

    Glyphs that no character maps to, such as ligatures and alternates, are left out. Characters past U+FFFF are left out too, because PCF cannot encode them.

  4. Choosing the size

    Set Pixel size to a value from 6 to 72. The default is 16. It is the size in pixels at which the outline font is drawn into the bitmap font.

    To go the other way, see PCF to PFB.

PFB and PCF.What each format is, and the options this conversion takes.

  1. 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

From · PFB

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
To · PCF

PCF Font

Compiled bitmap fonts for X11.

Extensions
.pcf
MIME type
application/x-font-pcf
Kind
Fonts

In your code.The same PFB to PCF conversion through the API, for your app or your agent.

terminal
$ cv convert font.pfb font.pcf
$ cv convert font.pfb font.pcf

Questions.What people ask about PFB to PCF.

01OF 04

It looks right only at the size it was made at. The bitmap font holds no outlines, so make a new file with Pixel size set to the size you need.

No. Type 1 fonts keep kerning in a separate AFM file, and it is not included. PCF holds no kerning.

Yes. PFB and PFA are both Type 1 fonts, and the source can be either one.

No. Glyphs that no character maps to, such as ligatures and alternates, are left out of the PCF.

More conversions.Other ways in and out of PFB and PCF.