Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mkbitmap(1) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

xprev(1)

lpf_lbpif(7)

xif(1)

fonttab(5)

MKBITMAP(1)  —  NEWS-OS Programmer’s Manual

NAME

mkbitmap − Makes bitmap data from outline fonts

SYNOPSIS

mkbitmap vfontname { P | L } pix_size start_code end_code

DESCRIPTION

mkbitmap reads the outline font file specified and makes a bitmap font file of the specified size.  The bitmap font file is placed in the current directrory.  The filename of this file is automatically generated.  The number of parameters for this command is fixed. 

OPTIONS

vfontname
Filename for the original outline font to be used. This filename should be specified as an absolute path. However, the following abbreviations are recognized.
M can be used to specify the file /usr/sony/lib/font/devnwp533/Mincho.vfont. 
G can be used to specifiy the file /usr/sony/lib/font/devnwp533/Gothic.vfont. 
The filename generated for the bitmap font is made up of uppercase alphabetics and any numerics extracted from the body of the original filename appended with the pix_size used and then .font.  For example, if a bitmap font where made from /usr/sony/lib/font/devnwp533/dn/ML_D.vfont, the body of the filename generated would be MLD. 

{ P | L }
Selects no rotation (Portrait) or 90° rotation (Landscape).

pix_size
Specifies the character size in pixels. Sizes can be specified anywhere in the range from 10 to 66.

start_code, end_code
Specifies the start code and end code to use for the bitmap data as hexadecimal JIS code. Codes can be specified anywhere in the range from 0x2121 to 0x787e.

FORMAT

mkbitmap reads font data of the Sony outline font format.  This is the format used for the "Extended Font Set (NWF-605)" and "Multi Font Set (NWF-629 and NWF-631 ∼ NWF-636C)". 

The bitmap font data generated by mkbitmap is raster image data represented by independent byte arrays for each character.  The arrays are squares having sides of the number of pixels specified, where one dot equals one pixel.  The MSB (bit 7) of each byte corresponds to the leftmost dot of the raster, whereas the LSB (bit 0) corresponds to the rightmost.  There is no byte swapping.  Extra bits are padded with 0’s to define byte boundaries for each raster. 

EXAMPLES

A bitmap font will be created in the current directory under the name MBD30.font if this command is executed as follows. 

# mkbitmap /usr/sony/lib/font/devnwp533/dn/MB_D.vfont P 30 2121 787e

SEE ALSO

xprev(1), lpf_lbpif(7), xif(1), fonttab(5)

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026