bdftophf2

Convert BDF fonts to Photon fonts

Syntax:

bdftophf2 [-A offset] [-E end_character]
          [-N num_chars] [-O output_file]
          [-o output_path] [-S start_character]
          bdf_file

Runs on:

Neutrino

Options:

-A offset
Offset character encodings.
-E end_character
Set ending character code.
-N num_chars
The maximum number of characters to convert.
-O output_file
Write the converted file to output_file. Overrides the -o option.
-o output_path
Write the converted file to output_path.
-S start_character
Set starting character code.
bdf_file
Name of the BDF file to convert.

Description:

The bdftophf2 utility converts Binary Data Format (BDF) font files into Photon font files. BDF is a universal standard for ASCII bitmap font representation.

Examples:

Convert all the BDF Courier font files in the /font/bdf directory to Photon font files in the /home/fred/font directory:

bdftophf2 -o /home/fred/font /font/bdf/cour*.bdf

Note: The Extension installation is necessary only if you want this font to be searched for characters not found (such as Asian/Latin fonts) in other font files.

Caveats:

This utility works only with Unicode BDF files.

The glyphs within the .bdf file must be sorted in ascending order. For example, 0x0000, 0x0020,0x2e5f, 0xfffe is an example of a set of glyphs listed in ascending order.