Introduction
A .chr file is a stroked font for the Borland Graphics Interface, the
graphics library of Borland’s DOS compilers. Each character is drawn as a series of
pen movements, so it can be scaled.
Structure
The file begins with the bytes PK, which can make it look like a ZIP
archive. A header holds a description ended by the byte 1A, the header
size, a four-character font name, the data size and version bytes. A stroke header
follows, with the character count, the first character, vertical measurements,
offsets and widths. The stroke data is pairs of bytes, each giving an operation and
a signed X and Y position.
Not described
This page is a first outline. The fields are not yet described here.
Known, not yet covered
- Reference: field offsets and sizes and the stroke operation codes.
- Viewer: the site has no viewer for this format.
Links
Software
- Borland C and Borland Pascal – compilers whose graphics interface uses these fonts (MS-DOS)
- FE Stroke Font Editor – Borland’s own editor for stroked fonts (MS-DOS)
Reference
- BGI Stroked Font – ModdingWiki’s description of the layout
- The Borland CHR Font File Format – an older description