Difference between revisions of "Fonts"
(Created page with "The OS includes, at least, four different fonts. For each font, there's a set of syscalls which work, and can display strings, with it. == 24 px font == This is a fixed-width...") |
(→Characters supported: ASCII only goes up to 127) |
||
Line 40: | Line 40: | ||
=== Characters supported === | === Characters supported === | ||
− | Most | + | Most ASCII characters (0x00 to 0x7F) are supported. However, only a very limited subset of [[Multi-byte_strings|multi-byte characters]] is supported. |
=== Example === | === Example === |
Revision as of 12:33, 4 August 2014
The OS includes, at least, four different fonts. For each font, there's a set of syscalls which work, and can display strings, with it.
Contents
24 px font
This is a fixed-width (width = 18 px) font used with syscalls such as PrintXY and Print_OS. The screen has space for exactly nine lines of text displayed in this font, with each line containing space for 21 characters plus six pixels at the end (where a scroll bar fits).
Characters supported
Most, if not all, multi-byte characters are supported, including the Latin, Greek and Russian alphabets.
Example
Text in the System menu, excluding the function key labels at the bottom, is displayed in this font:
18 px font
This is a variable-width font used with syscalls such as PrintMini and GetMiniGlyphPtr. The screen has space for exactly 12 lines of text displayed in this font.
Characters supported
Most, if not all, multi-byte characters are supported, including the Latin, Greek and Russian alphabets.
Example
Text in the status area and in eActivity line notes is displayed in this font:
16 px font
This is a variable-width font for which no syscalls are known. It appears to only be used to show app names in the Main Menu, unless the selected language is Chinese (in such case, the Main Menu app names are printed using the #18 px font).
Characters supported
The Latin alphabet, including special symbols, appears to be supported. It is not known if the Greek alphabet is supported. The Russian alphabet appears to be unsupported, because the official Russian language add-in explicitly contains the Main Menu names of the apps in English.
Example
Here's the Main Menu when the Portuguese language is selected, showing a variety of special characters:
10 px font
This is a variable-width font used with syscalls such as PrintMiniMini. The screen has space for 21 lines of text displayed in this font. Its space character is wider than most characters.
Characters supported
Most ASCII characters (0x00 to 0x7F) are supported. However, only a very limited subset of multi-byte characters is supported.
Example
The numbers on the graph axis are printed in this font:
And here's another example showing text printed in this font (at the bottom):