# TWL Bitmap Font

## Overview

TWL-SDK includes a font resource called the TWL Bitmap Font.

The TWL Bitmap Font is in the NITRO Font (NFTR) format described in TWL-System. An explanation of the NITRO font format, as well as a library for drawing characters using NITRO fonts, is included in TWL-System. Be sure to get the TWL-System package, which is provided separately.

The TWL Bitmap Font is built into the TWL system as one of the system's internal fonts. NAND applications can use the system's internal fonts, so the TWL Bitmap Font can be used even if it is not included in an SRL. See Internal Fonts for more about the system's internal fonts. Card applications cannot use the system's internal fonts, so be sure to include them in the SRL.

## License

The TWL Bitmap Font can be freely used for NITRO or TWL applications. The use of effects like shadows or outlines is also acceptable.

## Location

TWL bitmap fonts are in the TWL-SDK `$TwlSDK/data/font` directory. There are 3 NFTR in this directory. However, the glyph designs are all the same; only size differs.

File Name | Content
--- | ---
tbf_ww_l.NFTR | Large TWL bitmap font
tbf_ww_m.NFTR | Medium TWL bitmap font
tbf_ww_s.NFTR | Small TWL bitmap font

## Font Parameters

The NITRO Font parameters for the TWL Bitmap Font are shown in the table below. Refer to the documentation for TWL-System for the meaning of the various terms.

Size | Large | Medium | Small
--- | --- | --- | ---
Data size | 618,676 bytes | 353,536 bytes | 220,968 bytes
Cell width | 16 px | 12 px | 10 px
Cell height | 21 px | 16 px | 12 px
Baseline position | 17 px | 13 px | 11 px
Maximum character width | 17 px | 13 px | 11 px
Linefeed size | 21 px | 16 px | 12 px
bpp | 2 bits/pixel (4 levels)
Alternate characters | U+0020 (Half-width space)
Encoding | UTF-16

## Character Sets

The internal fonts more or less cover the following character sets. The encoding is UTF-16.

- ASCII
- ISO 8859-1
- ISO 8859-7
- CP 932
- CP 1252
- CP 1253
- JIS X0201
- JIS X0208
- DS External
- Wii External

## Glyph Images

Links to glyph lists for each font are listed below for reference.

Glyph type | Glyph image
--- | ---
ASCII | (Large Font) (Medium Font) (Small Font)
Western European characters | (Large Font) (Medium Font) (Small Font)
JIS X0201 Katakana | (Large Font) (Medium Font) (Small Font)
JIS X0208 Hiragana, Katakana, and Symbols | (Large Font) (Medium Font) (Small Font)
JIS X0208 Kanji Level 1 | (Large Font) (Medium Font) (Small Font)
JIS X0208 Kanji Level 2 | (Large Font) (Medium Font) (Small Font)
DS External | (Large Font) (Medium Font) (Small Font)
Wii External | (Large Font) (Medium Font) (Small Font)

## Revision History

2008/09/16 Initial version.

CONFIDENTIAL