Draw the retro terminals in their machines' own fonts (#46)

The BBS and home computer terminal types now draw with their machines'
character ROM fonts, SyncTERM's copies of them from Synchronet's ciolib
(LGPL-2.0-or-later), instead of Unscii's lookalikes: the IBM VGA's code
page 437, RIPterm's 8x8, the C64's and C128's, the Atari 8-bit's, the
Amiga's Topaz, Prestel's and the Atari ST's.

- tools/gen_rom_fonts.py writes RomFonts.kt from allfonts.c; RomFont
  keeps a ROM in its machine's code order and doubles or halves it.
- MachineFonts reads each ROM in its machine's set, so a cell's code
  point gets the glyph its machine drew; what a ROM hasn't got comes
  from Unscii.
- ANSI-BBS takes SyncTERM's font selection (CSI 0 ; n SP D) for the
  fonts here, including the Amiga scene fonts.


Claude-Session: https://claude.ai/code/session_01B82eRSyCmXjaURxSYoHxCY

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
NeoandClaude authored and GitHub committed 2026-11-12 04:33:26 -08:00
1 parent b61fa7f24b
commit 93febb3790
17 files changed
+1814 -31

No files matched your search

+17 -9
View File
@@ -12,14 +12,22 @@
| Inconsolata.ttf | Inconsolata (variable, wght 200-900, wdth 50-200) | OFL 1.1 | google/fonts `ofl/inconsolata` |
| DroidSansMono.ttf | Droid Sans Mono | Apache 2.0 | AOSP `platform/frameworks/base/data/fonts` |
The Commodore and Atari terminal types draw their characters from 8x8 bitmaps,
and ANSI-BBS from 8x16 ones (a VGA's code page 437), in the
shared code (`shared/.../terminal/LegacyCharsets.kt`, written by
`tools/gen_legacy_charsets.py`), not from a font file here: the glyphs are
Unscii 2.1's `unscii-8` and `unscii-16` (public domain, http://viznut.fi/unscii/), and
which character each code is comes from Rebecca Bettencourt's Legacy
Computing mappings (`mappings/legacy` in kreativekorp/charset). The
Atari's ESC and CLEAR symbols and code page 437's ⌐ and ∙, which Unscii
hasn't got, are drawn in the generator. No Commodore or Atari ROM font is shipped.
The retro terminal types (ANSI-BBS, RIPscrip, Amiga ANSI, the Commodores,
the Atari 8-bit and ST, Viewdata) draw their characters from their machines'
own character ROM fonts, in the shared code (`shared/.../terminal/RomFonts.kt`,
written by `tools/gen_rom_fonts.py`), not from a font file here. The glyphs
are SyncTERM's, from Synchronet's ciolib (`src/conio/allfonts.c`,
LGPL-2.0-or-later, copyright Rob Swindell and contributors;
`licenses/syncterm-fonts-LGPL-2.0.txt`): the IBM VGA's code page 437,
RIPterm's 8x8, the Commodore 64's and 128's, the Atari 8-bit's, the Amiga's
Topaz, Topaz Plus, MicroKnight, MicroKnight Plus, P0T-NOoDLE and mO'sOul,
Prestel's and the Atari ST's.
Which character each code is comes from Rebecca Bettencourt's Legacy
Computing mappings (`mappings/legacy` in kreativekorp/charset), in
`LegacyCharsets.kt` (written by `tools/gen_legacy_charsets.py`). That file
also has Unscii 2.1's `unscii-8` and `unscii-16` (public domain,
http://viznut.fi/unscii/), for the characters a machine's ROM hasn't got
(another model's, such as the Atari XL's international set).
The licence texts are in `licenses/`; the app shows them (Settings, Font licences).
@@ -0,0 +1,480 @@
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
<https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes make exceptions for this. Our
decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Moe Ghoul>, 1 April 1990
Moe Ghoul, President of Vice
That's all there is to it!
+8 -6
View File
@@ -76,8 +76,10 @@
comma, period, Enter, in numeric or application mode), and on a VT220
or VT320 the LK201's F6-F20, Find and Select and a page of the
user-defined keys; a hardware numpad sends the keypad's keys. ANSI-BBS is
the PC's 80x25 drawn in a VGA's 8x16 code page 437 (Unscii's, public
domain), with SyncTERM's additions: ANSI music (`ESC [ |`, and a bare
the PC's 80x25 drawn in the IBM VGA's own 8x16 code page 437, with
SyncTERM's additions: font selection (`ESC [ 0 ; n SP D`, SyncTERM's
font numbers: the C64's, C128's, Atari's, Amiga's, Prestel's and ST's
fonts), ANSI music (`ESC [ |`, and a bare
`ESC [ M` when a PLAY string follows it) played as a PC speaker would,
iCE colours when the BBS asks (`ESC [ ? 33 h`), the line speed it asks
to be shown at for ANSI animations (`ESC [ 0 ; n * r`), and doorway
@@ -92,13 +94,13 @@
palette, viewport and text window, the clipboard, and mouse regions
and buttons that send their text when tapped; it answers `ESC [ !`
with its version. Amiga ANSI is
ANSI-BBS in Latin-1, the Amiga's set, drawn 8x8 as Topaz is (Unscii's
glyphs) in colours from the Amiga's palette. The
ANSI-BBS in Latin-1, the Amiga's set, in Topaz (the Amiga's own 8x8),
in colours from the Amiga's palette. The
Commodore types (C64, C128 in 40 or 80 columns, Plus/4, VIC-20, PET in
40 or 80 columns) speak PETSCII as CCGMS and Novaterm do: the screen
becomes the machine's (40x25, the VIC-20's 22x23) in its palette, drawn
in square cells from 8x8 glyphs (Unscii's, public domain, not
Commodore's ROMs), with both character sets, the colour and cursor
in square cells from the machine's own 8x8 character ROM (the C64's,
or the C128's), with both character sets, the colour and cursor
codes, reverse, and the C128's ESC sequences, line feed, underline and
flash. Typing and pasting are turned into PETSCII (CTRL and C= with a
digit set colours, C= with a letter types its graphic), and the key bar
+51 -1
View File
@@ -20,7 +20,7 @@ graphics terminals draw through `Raster.kt`.
| ANSI-BBS (PC) | `ansi-bbs` | `ansi` / `ANSI` | 80x25 | A PC's BBS terminal, as SyncTERM is: CP437 in a VGA font, iCE colours, ANSI music, doorway mode |
| RIPscrip | `rip` | `rip` / `ANSI` | 80x43 text over 640x350 graphics | RIPscrip 1.54 over ANSI-BBS: `!|` lines draw (lines, shapes, fills, text, the clipboard), mouse regions and buttons send their text when tapped, `ESC [ !` answers RIP's version |
| Avatar (AVT/0+) | `avatar` | `avatar` / `ANSI` | 80x25 | ANSI-BBS with FidoNet's Avatar codes: ^L, ^Y repeat, ^V's attributes, moves and AVT/0+'s area scrolls, clears, fills and pattern repeat |
| Amiga ANSI | `amiga` | `amiga` / `ANSI` | 80x25 | ANSI-BBS in Latin-1 with 8x8 glyphs (Topaz's size, Unscii's drawing) and colours from the Amiga's 12-bit palette |
| Amiga ANSI | `amiga` | `amiga` / `ANSI` | 80x25 | ANSI-BBS in Latin-1 in Topaz, with colours from the Amiga's 12-bit palette |
| DEC VT52 | `vt52` | `vt52` / `DEC-VT52` | 80x24 | The VT52's own escape codes and graphics |
| DEC VT100 | `vt100` | `vt100` / `DEC-VT100` | 80/132x24 | ANSI codes at level 1: no colour; double-size lines; VT52 mode |
| DEC VT102 | `vt102` | `vt102` / `DEC-VT102` | 80/132x24 | Adds character and line insert and delete, and a printer port |
@@ -37,6 +37,47 @@ graphics terminals draw through `Raster.kt`.
| Minitel | `minitel` | `minitel` / `MINITEL` | 40x25 | Teletel videotex with the status row, the protocol commands, Mixte (80 columns) and Téléinformatique (a VT100) |
| Tektronix 4014 | `tek4014` | `tek4014` / `TEK4014` | 4096x3120 tube | Vectors, points, incremental plots and alpha text on a storage tube |
## Fonts
Each retro type draws with its machine's own character ROM font,
SyncTERM's copies of them (`RomFonts.kt`, written by
`tools/gen_rom_fonts.py`), read in the machine's own character set
(`MachineFonts.kt`):
| Types | Font |
|---|---|
| ANSI-BBS, Avatar | IBM VGA 8x16, code page 437 |
| RIPscrip | RIPterm's 8x8, code page 437 |
| Amiga ANSI | Topaz (Kickstart 1's), 8x8 |
| C64, Plus/4, VIC-20, PET | The C64's character ROM, both sets |
| C128 (40 and 80) | The C128's character ROM, both sets |
| Atari 8-bit | The Atari's character ROM (the XL's international letters from Unscii) |
| Atari ST | The ST's 8x8 (its colour modes') |
| Viewdata | Prestel's teletext characters, 8x16 |
A BBS can change the ANSI-BBS types' font with SyncTERM's
`ESC [ 0 ; n SP D`. The font is drawn at the profile's height and read
as the session's octets, as SyncTERM does. These are here:
| n | Font |
|---|---|
| 0 | IBM VGA (code page 437) |
| 26 | Code page 437, thin |
| 32, 33 | Commodore 64, upper and lower case |
| 34, 35 | Commodore 128, upper and lower case |
| 36 | Atari 8-bit |
| 37 | P0T-NOoDLE (Amiga) |
| 38 | mO'sOul (Amiga) |
| 39 | MicroKnight Plus (Amiga) |
| 40 | Topaz Plus (Amiga) |
| 41 | MicroKnight (Amiga) |
| 42 | Topaz (Amiga) |
| 43 | Prestel |
| 44 | Atari ST (its mono mode's 8x16) |
Its own number, RIS or another terminal type puts the profile's font
back. The other code page fonts (1-31) aren't here, and are ignored.
A VT510's and later screen size can change at the host's request
(DECSNLS, DECSLPP, DECSCPP). xterm and ANSI-BBS fit the view.
@@ -120,6 +161,15 @@ table when they are.
**Viewdata and Minitel**
- Double height and double size are drawn single.
- The Minitel draws its text in the app's font, not its own ROM's.
**Fonts**
- Fonts 1-3 of `ESC [ Ps1 ; n SP D` (the ones SyncTERM draws bright and
blinking text in) aren't kept: only font 0 changes.
- The DEC types, the Tektronix and the Minitel use the app's font: no
ROM fonts of theirs are here.
- The VIC-20, Plus/4 and PET draw with the C64's ROM, which is nearly
theirs.
**DEC**
- No locator (DECELR), and no answerback message.
@@ -8,7 +8,8 @@ package org.dmodem.app.terminal
* screen, ANSI music, iCE colours on request (CSI ? 33 h), the line speed
* shown for ANSI animations (CSI * r), doorway mode for DOS doors (CSI =
* 255 h: the keys as a PC's scan codes), and font selection (CSI SP D:
* only code page 437 is there, so the others are taken and ignored).
* SyncTERM's numbers, the machines' fonts [RomFonts] has; the code pages
* it hasn't are taken and ignored).
*/
open class AnsiBbsInterpreter(t: TerminalEmulator, private val bbs: AnsiBbsProfile) : VtInterpreter(t, bbs) {
/** which CSIs start ANSI music (CSI = n M): 0 only CSI |, 1 CSI N too, 2 CSI M too (unless it has parameters: then it's DL) */
@@ -108,11 +109,29 @@ open class AnsiBbsInterpreter(t: TerminalEmulator, private val bbs: AnsiBbsProfi
if (param(0) <= 1) t.emulatedBps = SPEEDS.getOrElse(param(1)) { 0 }
return true
}
marker == 0 && inter == ' '.code && c == 'D' -> return true
marker == 0 && inter == ' '.code && c == 'D' -> {
if (param(0) <= 0) selectFont(p(1, 0))
return true
}
}
return false
}
/**
* CSI 0 ; n SP D: SyncTERM's font [n] for the text, read in the
* session's set at the profile's height (the profile's own: back to
* it); one it hasn't got is ignored. (Fonts 1-3, the ones bright and
* blinking text can be drawn in, aren't kept.)
*/
private fun selectFont(n: Int) {
if (n == bbs.syncTermFont) {
t.hostFont = null
return
}
val height = bbs.glyphs?.height ?: 16
MachineFonts.syncterm(n, height, t.decoder.charset)?.let { t.hostFont = it }
}
/** in doorway mode, a key as NUL and its scan code (Alt with a letter its own); otherwise the VT sequences */
override fun keyOctets(k: Key, shift: Boolean, alt: Boolean, ctrl: Boolean): ByteArray? {
if (!doorway) return super.keyOctets(k, shift, alt, ctrl)
@@ -13,7 +13,8 @@ open class AtariProfile : TerminalProfile(), ByteMachine {
override val label get() = "Atari 8-bit"
override val term get() = "atascii"
override val telnetType get() = "ATASCII"
override val glyphs: BitmapFont? get() = LegacyCharsets.GLYPHS
/** its character ROM's */
override val glyphs: BitmapFont? get() = MachineFonts.ATARI
override val columns get() = 40
override val rows get() = 24
@@ -23,6 +23,8 @@ open class AtariStProfile : TerminalProfile(), ByteMachine {
/** the highest pen on the first (white) */
override val defaultColor get() = palette.size - 1
override val background get() = 0
/** the ST's own 8x8 */
override val glyphs: BitmapFont? get() = MachineFonts.ATARI_ST
/** the standard keys and the keypad */
override val keyBar: List<KeyBarPage> get() = KeyBars.DEC
@@ -78,7 +80,7 @@ open class AtariStInterpreter(t: TerminalEmulator, private val m: AtariStProfile
}
/** an octet in the ST's set */
override fun charOf(cp: Int): Int = if (cp in 0x80..0xff) HIGH[cp - 0x80].code else cp
override fun charOf(cp: Int): Int = stChar(cp)
/** the ST's own after ESC: E clear, d erase above, e and f the cursor, j and k its place saved, l and o line erases, p and q reverse, v and w wrap, L and M lines, b and c the colours */
override fun esc(cp: Int) {
@@ -136,6 +138,9 @@ open class AtariStInterpreter(t: TerminalEmulator, private val m: AtariStProfile
}
companion object {
/** an octet in the ST's set as its code point */
internal fun stChar(b: Int): Int = if (b in 0x80..0xff) HIGH[b - 0x80].code else b
/** the ST's set from 0x80: Latin letters, Hebrew, Greek and mathematics */
private const val HIGH =
"ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥ßƒáíóúñѪº¿⌐¬½¼¡«»ãõØøœŒÀÃÕ¨´†¶©®™" +
@@ -23,6 +23,9 @@ class BitmapFont(val height: Int, private val codes: IntArray, private val rows:
return if (i < 0 || row !in 0 until height) 0 else rows[i * height + row]
}
/** its glyphs by code point, each [height] rows */
fun glyphs(): Map<Int, IntArray> = codes.withIndex().associate { (i, cp) -> cp to rows.copyOfRange(i * height, (i + 1) * height) }
/** whether [cp]'s glyph has pixel [col] (0 left) of row [row] (0 top) set */
fun pixel(cp: Int, row: Int, col: Int): Boolean = (row(cp, row) shr (width - 1 - col)) and 1 != 0
@@ -43,6 +46,19 @@ class BitmapFont(val height: Int, private val codes: IntArray, private val rows:
}
companion object {
/**
* a font of [height]-row, 8-wide glyphs from [layers] (each its
* glyphs by code point: an earlier layer's glyph the one drawn)
*/
fun of(height: Int, vararg layers: Map<Int, IntArray>): BitmapFont {
val all = HashMap<Int, IntArray>()
for (layer in layers.reversed()) all.putAll(layer)
val codes = all.keys.sorted().toIntArray()
val rows = IntArray(codes.size * height)
for ((i, cp) in codes.withIndex()) all.getValue(cp).copyInto(rows, i * height, 0, height)
return BitmapFont(height, codes, rows)
}
/** "CP:ROWS;" entries (hex: the code point, then two digits a row, [height] rows), in code point order */
fun parse(height: Int, s: String): BitmapFont {
val entries = s.split(';').filter { it.isNotEmpty() }
@@ -59,3 +75,51 @@ class BitmapFont(val height: Int, private val codes: IntArray, private val rows:
}
}
}
/**
* A machine's character ROM: its 256 codes' glyphs, 8 wide, in the
* machine's code order, kept as hex (two digits a row) [h8] rows high,
* [h16], or both. Asked for a size it hasn't got, it doubles its 8 rows
* or halves its 16.
*/
class RomFont(private val h8: String? = null, private val h16: String? = null) {
private val rows8: IntArray? by lazy { h8?.let(::decode) }
private val rows16: IntArray? by lazy { h16?.let(::decode) }
/** code [code]'s glyph, [height] (8 or 16) rows */
fun glyph(code: Int, height: Int): IntArray {
val own = if (height == 16) rows16 else rows8
if (own != null) return own.copyOfRange(code * height, (code + 1) * height)
return if (height == 16) {
val r = rows8!!
IntArray(16) { r[code * 8 + it / 2] }
} else {
// (both rows' pixels, so a thin stroke stays)
val r = rows16!!
IntArray(8) { r[code * 16 + 2 * it] or r[code * 16 + 2 * it + 1] }
}
}
/**
* its glyphs by code point, [height] rows: those of [codes] that
* [codePoint] gives one (0: none), the first code that has one the
* glyph drawn for it
*/
fun byCodePoint(height: Int, codes: IntRange = 0..0xff, codePoint: (Int) -> Int): Map<Int, IntArray> {
val out = HashMap<Int, IntArray>()
for (c in codes) {
val cp = codePoint(c)
if (cp != 0 && cp !in out) out[cp] = glyph(c, height)
}
return out
}
/** as a font read in [codePoint]'s set ([height] rows), what it hasn't got [fallback]'s */
fun font(height: Int, fallback: BitmapFont? = null, codes: IntRange = 0x20..0xff, codePoint: (Int) -> Int): BitmapFont =
BitmapFont.of(height, byCodePoint(height, codes, codePoint), fallback?.takeIf { it.height == height }?.glyphs() ?: emptyMap())
private companion object {
/** hex, two digits a row, as the rows */
fun decode(hex: String): IntArray = IntArray(hex.length / 2) { hex.substring(2 * it, 2 * it + 2).toInt(16) }
}
}
@@ -12,7 +12,8 @@ package org.dmodem.app.terminal
abstract class CommodoreProfile : TerminalProfile(), ByteMachine {
override val term get() = "petscii"
override val telnetType get() = "PETSCII"
override val glyphs: BitmapFont? get() = LegacyCharsets.GLYPHS
/** its character ROM's (a C64's) */
override val glyphs: BitmapFont? get() = MachineFonts.C64
override val captureExtension: String? get() = ".seq"
override val columns get() = 40
@@ -108,6 +109,8 @@ open class C128Profile : C64Profile() {
override val label get() = "Commodore 128 (40 col.)"
override val escapes get() = true
override val tabAndLineFeed get() = true
/** its own character ROM's */
override val glyphs: BitmapFont? get() = MachineFonts.C128
}
/** Commodore 128 in 80 columns (the VDC): RGBI colours, underline and flash */
@@ -0,0 +1,75 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Neo-Desktop
package org.dmodem.app.terminal
/**
* The terminal types' fonts: each machine's own character ROM
* ([RomFonts]) read in its own set, so a cell's code point is drawn with
* the glyph its machine drew for it. What a ROM hasn't got (a character of
* another model's set) comes from Unscii's ([LegacyCharsets]).
*/
internal object MachineFonts {
/** a PC's VGA: code page 437 in 8x16 */
val VGA: BitmapFont by lazy { pc(RomFonts.VGA, 16) }
/** RIPterm's 8x8 code page 437, for RIPscrip's 80x43 */
val RIPTERM: BitmapFont by lazy { pc(RomFonts.RIPTERM, 8) }
/** a Commodore 64's (the VIC-20's, Plus/4's and PET's too: nearly the same ROM), both its sets */
val C64: BitmapFont by lazy { commodore(RomFonts.C64_UPPER, RomFonts.C64_LOWER) }
/** a Commodore 128's, both its sets */
val C128: BitmapFont by lazy { commodore(RomFonts.C128_UPPER, RomFonts.C128_LOWER) }
/** an Atari 8-bit's (ATASCII's graphics set: the international set's own letters Unscii's) */
val ATARI: BitmapFont by lazy {
RomFonts.ATARI.font(8, LegacyCharsets.GLYPHS, 0..0x7f) { LegacyCharsets.ATARI_GRAPHICS[it] }
}
/** an Amiga's Topaz, in Latin-1 */
val TOPAZ: BitmapFont by lazy { latin1(RomFonts.TOPAZ, 8) }
/** an Atari ST's colour modes' 8x8, in the ST's set */
val ATARI_ST: BitmapFont by lazy { RomFonts.ATARI_ST.font(8, LegacyCharsets.GLYPHS) { AtariStInterpreter.stChar(it) } }
/** Prestel's teletext characters, 8x16, in teletext's English set */
val PRESTEL: BitmapFont by lazy {
RomFonts.PRESTEL.font(16, LegacyCharsets.VGA, 0x20..0x7f) { ViewdataInterpreter.G0[it - 0x20] }
}
/**
* SyncTERM's font [n] (CSI SP D's) as a font [height] rows high, its
* codes read as octets in [charset] (as SyncTERM does: the font's code
* for each octet); null if it isn't here
*/
fun syncterm(n: Int, height: Int, charset: TermCharset): BitmapFont? {
val rom = RomFonts.syncterm[n] ?: return null
val fallback = if (height == 16) LegacyCharsets.VGA else LegacyCharsets.GLYPHS
return rom.font(height, fallback) { octet(charset, it) }
}
/** [rom] in code page 437, [height] rows */
private fun pc(rom: RomFont, height: Int): BitmapFont =
rom.font(height, if (height == 16) LegacyCharsets.VGA else LegacyCharsets.GLYPHS) { octet(TermCharset.CP437, it) }
/** [rom] in Latin-1, [height] rows */
private fun latin1(rom: RomFont, height: Int): BitmapFont =
rom.font(height, LegacyCharsets.GLYPHS) { octet(TermCharset.LATIN1, it) }
/** a Commodore's two ROM sets, upper case and graphics first */
private fun commodore(upper: RomFont, lower: RomFont): BitmapFont = BitmapFont.of(
8,
upper.byCodePoint(8) { LegacyCharsets.C64_UPPER[it] },
lower.byCodePoint(8) { LegacyCharsets.C64_LOWER[it] },
LegacyCharsets.GLYPHS.glyphs(),
)
/** octet [b]'s code point in [charset] (0 for a control) */
private fun octet(charset: TermCharset, b: Int): Int = when {
b < 0x20 || b == 0x7f -> 0
charset == TermCharset.CP437 -> Cp437.decode(b)
b in 0x80..0x9f -> 0
charset == TermCharset.LATIN1 -> b
else -> if (b < 0x80) b else 0
}
}
@@ -18,6 +18,9 @@ open class RipProfile : AnsiBbsProfile() {
override val term get() = "rip"
// (BBSes find ANSI by it, then ask for RIP with ESC [ !)
override val telnetType get() = "ANSI"
/** RIPterm's 8x8, for its 80x43 text */
override val glyphs: BitmapFont? get() = MachineFonts.RIPTERM
override val syncTermFont get() = 45
/** a [RipInterpreter] */
override fun interpreter(t: TerminalEmulator): TerminalInterpreter = RipInterpreter(t, this)
@@ -429,7 +432,7 @@ open class RipInterpreter(t: TerminalEmulator, profile: RipProfile) : AnsiBbsInt
val cw = if (font == 0) 8 * fontSize else 6 * fontSize
val ch = cellHeight()
for (c in s) {
raster.text(x, y, c.toString(), LegacyCharsets.VGA, cw, ch)
raster.text(x, y, c.toString(), MachineFonts.RIPTERM, cw, ch)
if (vertical) y += ch else x += cw
}
}
@@ -0,0 +1,821 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Neo-Desktop
// Generated by tools/gen_rom_fonts.py: don't edit by hand.
// The glyphs are Synchronet ciolib's (src/conio/allfonts.c), LGPL-2.0-or-later,
// copyright Rob Swindell and its contributors; used here under the AGPL as that allows.
package org.dmodem.app.terminal
/**
* The machines' own character ROM fonts as SyncTERM draws them, each
* 256 glyphs in its machine's code order (hex, two digits a row), at
* the sizes the machine had; [syncterm] by SyncTERM's font numbers
* (CSI SP D's).
*/
internal object RomFonts {
/** IBM VGA, code page 437 (8x16; 8x8 the VGA's 50-line font) */
val VGA: RomFont = RomFont(
h16 =
"0000000000000000000000000000000000007e81a58181bd9981817e0000000000007effdbffffc3e7ffff7e00000000000000006cfefefefe7c381000000000" +
"0000000010387cfe7c38100000000000000000183c3ce7e7e718183c00000000000000183c7effff7e18183c00000000000000000000183c3c18000000000000" +
"ffffffffffffe7c3c3e7ffffffffffff00000000003c664242663c0000000000ffffffffffc399bdbd99c3ffffffffff00001e0e1a3278cccccccc7800000000" +
"00003c666666663c187e18180000000000003f333f3030303070f0e00000000000007f637f6363636367e7e6c00000000000001818db3ce73cdb181800000000" +
"0080c0e0f0f8fef8f0e0c080000000000002060e1e3efe3e1e0e0602000000000000183c7e1818187e3c18000000000000006666666666666600666600000000" +
"00007fdbdbdb7b1b1b1b1b1b00000000007cc660386cc6c66c380cc67c0000000000000000000000fefefefe000000000000183c7e1818187e3c187e00000000" +
"0000183c7e18181818181818000000000000181818181818187e3c18000000000000000000180cfe0c1800000000000000000000003060fe6030000000000000" +
"000000000000c0c0c0fe0000000000000000000000286cfe6c28000000000000000000001038387c7cfefe000000000000000000fefe7c7c3838100000000000" +
"000000000000000000000000000000000000183c3c3c18181800181800000000006666662400000000000000000000000000006c6cfe6c6c6cfe6c6c00000000" +
"18187cc6c2c07c060686c67c1818000000000000c2c60c183060c686000000000000386c6c3876dccccccc760000000000303030600000000000000000000000" +
"00000c18303030303030180c00000000000030180c0c0c0c0c0c1830000000000000000000663cff3c66000000000000000000000018187e1818000000000000" +
"0000000000000000001818183000000000000000000000fe0000000000000000000000000000000000001818000000000000000002060c183060c08000000000" +
"0000386cc6c6d6d6c6c66c380000000000001838781818181818187e0000000000007cc6060c183060c0c6fe0000000000007cc606063c060606c67c00000000" +
"00000c1c3c6cccfe0c0c0c1e000000000000fec0c0c0fc060606c67c0000000000003860c0c0fcc6c6c6c67c000000000000fec606060c183030303000000000" +
"00007cc6c6c67cc6c6c6c67c0000000000007cc6c6c67e0606060c78000000000000000018180000001818000000000000000000181800000018183000000000" +
"000000060c18306030180c060000000000000000007e00007e000000000000000000006030180c060c1830600000000000007cc6c60c18181800181800000000" +
"0000007cc6c6dedededcc07c00000000000010386cc6c6fec6c6c6c6000000000000fc6666667c66666666fc0000000000003c66c2c0c0c0c0c2663c00000000" +
"0000f86c6666666666666cf8000000000000fe6662687868606266fe000000000000fe6662687868606060f00000000000003c66c2c0c0dec6c6663a00000000" +
"0000c6c6c6c6fec6c6c6c6c60000000000003c18181818181818183c0000000000001e0c0c0c0c0ccccccc78000000000000e666666c78786c6666e600000000" +
"0000f06060606060606266fe000000000000c6eefefed6c6c6c6c6c6000000000000c6e6f6fedecec6c6c6c60000000000007cc6c6c6c6c6c6c6c67c00000000" +
"0000fc6666667c60606060f00000000000007cc6c6c6c6c6c6d6de7c0c0e00000000fc6666667c6c666666e60000000000007cc6c660380c06c6c67c00000000" +
"00007e7e5a1818181818183c000000000000c6c6c6c6c6c6c6c6c67c000000000000c6c6c6c6c6c6c66c3810000000000000c6c6c6c6d6d6d6feee6c00000000" +
"0000c6c66c7c38387c6cc6c6000000000000666666663c181818183c000000000000fec6860c183060c2c6fe0000000000003c30303030303030303c00000000" +
"00000080c0e070381c0e06020000000000003c0c0c0c0c0c0c0c0c3c0000000010386cc600000000000000000000000000000000000000000000000000ff0000" +
"303018000000000000000000000000000000000000780c7ccccccc76000000000000e06060786c666666667c0000000000000000007cc6c0c0c0c67c00000000" +
"00001c0c0c3c6ccccccccc760000000000000000007cc6fec0c0c67c000000000000386c6460f060606060f000000000000000000076cccccccccc7c0ccc7800" +
"0000e060606c7666666666e60000000000001818003818181818183c0000000000000606000e06060606060666663c000000e06060666c78786c66e600000000" +
"00003818181818181818183c000000000000000000ecfed6d6d6d6c6000000000000000000dc6666666666660000000000000000007cc6c6c6c6c67c00000000" +
"0000000000dc66666666667c6060f000000000000076cccccccccc7c0c0c1e000000000000dc7666606060f00000000000000000007cc660380cc67c00000000" +
"0000103030fc30303030361c000000000000000000cccccccccccc7600000000000000000066666666663c18000000000000000000c6c6d6d6d6fe6c00000000" +
"0000000000c66c3838386cc6000000000000000000c6c6c6c6c6c67e060cf8000000000000fecc183060c6fe0000000000000e18181870181818180e00000000" +
"000018181818001818181818000000000000701818180e181818187000000000000076dc0000000000000000000000000000000010386cc6c6c6fe0000000000" +
"00003c66c2c0c0c0c2663c0c067c00000000cc0000cccccccccccc7600000000000c1830007cc6fec0c0c67c000000000010386c00780c7ccccccc7600000000" +
"0000cc0000780c7ccccccc76000000000060301800780c7ccccccc760000000000386c3800780c7ccccccc7600000000000000003c666060663c0c063c000000" +
"0010386c007cc6fec0c0c67c000000000000c600007cc6fec0c0c67c0000000000603018007cc6fec0c0c67c0000000000006600003818181818183c00000000" +
"00183c66003818181818183c0000000000603018003818181818183c0000000000c60010386cc6c6fec6c6c600000000386c3800386cc6c6fec6c6c600000000" +
"18306000fe66607c606066fe000000000000000000cc76367ed8d86e0000000000003e6cccccfeccccccccce000000000010386c007cc6c6c6c6c67c00000000" +
"0000c600007cc6c6c6c6c67c0000000000603018007cc6c6c6c6c67c00000000003078cc00cccccccccccc76000000000060301800cccccccccccc7600000000" +
"0000c60000c6c6c6c6c6c67e060c780000c6007cc6c6c6c6c6c6c67c0000000000c600c6c6c6c6c6c6c6c67c000000000018183c66606060663c181800000000" +
"00386c6460f060606060e6fc00000000000066663c187e187e1818180000000000f8ccccf8c4ccdeccccccc600000000000e1b1818187e1818181818d8700000" +
"0018306000780c7ccccccc7600000000000c1830003818181818183c0000000000183060007cc6c6c6c6c67c000000000018306000cccccccccccc7600000000" +
"000076dc00dc6666666666660000000076dc00c6e6f6fedecec6c6c600000000003c6c6c3e007e00000000000000000000386c6c38007c000000000000000000" +
"0000303000303060c0c6c67c00000000000000000000fec0c0c0c00000000000000000000000fe06060606000000000000c0c0c2c6cc183060dc860c183e0000" +
"00c0c0c2c6cc183066ce9e3e0606000000001818001818183c3c3c18000000000000000000366cd86c360000000000000000000000d86c366cd8000000000000" +
"1144114411441144114411441144114455aa55aa55aa55aa55aa55aa55aa55aadd77dd77dd77dd77dd77dd77dd77dd7718181818181818181818181818181818" +
"18181818181818f818181818181818181818181818f818f8181818181818181836363636363636f6363636363636363600000000000000fe3636363636363636" +
"0000000000f818f818181818181818183636363636f606f63636363636363636363636363636363636363636363636360000000000fe06f63636363636363636" +
"3636363636f606fe000000000000000036363636363636fe00000000000000001818181818f818f8000000000000000000000000000000f81818181818181818" +
"181818181818181f000000000000000018181818181818ff000000000000000000000000000000ff1818181818181818181818181818181f1818181818181818" +
"00000000000000ff000000000000000018181818181818ff181818181818181818181818181f181f181818181818181836363636363636373636363636363636" +
"363636363637303f000000000000000000000000003f303736363636363636363636363636f700ff00000000000000000000000000ff00f73636363636363636" +
"363636363637303736363636363636360000000000ff00ff00000000000000003636363636f700f736363636363636361818181818ff00ff0000000000000000" +
"36363636363636ff00000000000000000000000000ff00ff181818181818181800000000000000ff3636363636363636363636363636363f0000000000000000" +
"18181818181f181f000000000000000000000000001f181f1818181818181818000000000000003f363636363636363636363636363636ff3636363636363636" +
"1818181818ff18ff181818181818181818181818181818f80000000000000000000000000000001f1818181818181818ffffffffffffffffffffffffffffffff" +
"00000000000000fffffffffffffffffff0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f00f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0fffffffffffffff000000000000000000" +
"000000000076dcd8d8d8dc7600000000000078ccccccd8ccc6c6c6cc000000000000fec6c6c0c0c0c0c0c0c00000000000000000fe6c6c6c6c6c6c6c00000000" +
"000000fec66030183060c6fe0000000000000000007ed8d8d8d8d870000000000000000066666666667c6060c00000000000000076dc18181818181800000000" +
"0000007e183c6666663c187e00000000000000386cc6c6fec6c66c38000000000000386cc6c6c66c6c6c6cee0000000000001e30180c3e666666663c00000000" +
"00000000007edbdbdb7e00000000000000000003067edbdbf37e60c00000000000001c3060607c606060301c000000000000007cc6c6c6c6c6c6c6c600000000" +
"00000000fe0000fe0000fe00000000000000000018187e18180000ff0000000000000030180c060c1830007e000000000000000c18306030180c007e00000000" +
"00000e1b1b18181818181818181818181818181818181818d8d8d87000000000000000001818007e0018180000000000000000000076dc0076dc000000000000" +
"00386c6c3800000000000000000000000000000000000018180000000000000000000000000000001800000000000000000f0c0c0c0c0cec6c6c3c1c00000000" +
"00d86c6c6c6c6c0000000000000000000070d83060c8f8000000000000000000000000007c7c7c7c7c7c7c000000000000000000000000000000000000000000",
h8 =
"00000000000000007e81a581bd99817e7effdbffc3e7ff7e6cfefefe7c38100010387cfe7c381000387c38fefe7c387c1010387cfe7c387c0000183c3c180000" +
"ffffe7c3c3e7ffff003c664242663c00ffc399bdbd99c3ff0f070f7dcccccc783c6666663c187e183f333f303070f0e07f637f636367e6c0995a3ce7e73c5a99" +
"80e0f8fef8e08000020e3efe3e0e0200183c7e18187e3c1866666666660066007fdbdb7b1b1b1b003e63386c6c38cc78000000007e7e7e00183c7e187e3c18ff" +
"183c7e1818181800181818187e3c180000180cfe0c180000003060fe603000000000c0c0c0fe0000002466ff6624000000183c7effff000000ffff7e3c180000" +
"000000000000000030787830300030006c6c6c00000000006c6cfe6cfe6c6c00307cc0780cf8300000c6cc183066c600386c3876dccc76006060c00000000000" +
"1830606060301800603018181830600000663cff3c660000003030fc303000000000000000303060000000fc000000000000000000303000060c183060c08000" +
"7cc6cedef6e67c00307030303030fc0078cc0c3860ccfc0078cc0c380ccc78001c3c6cccfe0c1e00fcc0f80c0ccc78003860c0f8cccc7800fccc0c1830303000" +
"78cccc78cccc780078cccc7c0c18700000303000003030000030300000303060183060c0603018000000fc0000fc00006030180c1830600078cc0c1830003000" +
"7cc6dededec078003078ccccfccccc00fc66667c6666fc003c66c0c0c0663c00f86c6666666cf800fe6268786862fe00fe6268786860f0003c66c0c0ce663e00" +
"ccccccfccccccc0078303030303078001e0c0c0ccccc7800e6666c786c66e600f06060606266fe00c6eefefed6c6c600c6e6f6decec6c600386cc6c6c66c3800" +
"fc66667c6060f00078ccccccdc781c00fc66667c6c66e60078cce0701ccc7800fcb4303030307800ccccccccccccfc00cccccccccc783000c6c6c6d6feeec600" +
"c6c66c38386cc600cccccc7830307800fec68c183266fe007860606060607800c06030180c060200781818181818780010386cc60000000000000000000000ff" +
"30301800000000000000780c7ccc7600e060607c6666dc00000078ccc0cc78001c0c0c7ccccc7600000078ccfcc07800386c60f06060f000000076cccc7c0cf8" +
"e0606c766666e60030007030303078000c000c0c0ccccc78e060666c786ce60070303030303078000000ccfefed6c6000000f8cccccccc00000078cccccc7800" +
"0000dc66667c60f0000076cccc7c0c1e0000dc766660f00000007cc0780cf80010307c30303418000000cccccccc76000000cccccc7830000000c6d6fefe6c00" +
"0000c66c386cc6000000cccccc7c0cf80000fc983064fc001c3030e030301c001818180018181800e030301c3030e00076dc0000000000000010386cc6c6fe00" +
"78ccc0cc78180c7800cc00cccccc7e001c0078ccfcc078007ec33c063e663f00cc00780c7ccc7e00e000780c7ccc7e003030780c7ccc7e00000078c0c0780c38" +
"7ec33c667e603c00cc0078ccfcc07800e00078ccfcc07800cc007030303078007cc6381818183c00e000703030307800c6386cc6fec6c60030300078ccfccc00" +
"1c00fc607860fc0000007f0c7fcc7f003e6cccfeccccce0078cc0078cccc780000cc0078cccc780000e00078cccc780078cc00cccccc7e0000e000cccccc7e00" +
"00cc00cccc7c0cf8c3183c66663c1800cc00cccccccc780018187ec0c07e1818386c64f060e6fc00cccc78fc30fc3030f8ccccfac6cfc6c70e1b183c1818d870" +
"1c00780c7ccc7e003800703030307800001c0078cccc7800001c00cccccc7e0000f800f8cccccc00fc00ccecfcdccc003c6c6c3e007e0000386c6c38007c0000" +
"30003060c0cc7800000000fcc0c00000000000fc0c0c0000c3c6ccde3366cc0fc3c6ccdb376fcf031818001818181800003366cc6633000000cc663366cc0000" +
"228822882288228855aa55aa55aa55aadb77dbeedb77dbee181818181818181818181818f81818181818f818f818181836363636f636363600000000fe363636" +
"0000f818f81818183636f606f636363636363636363636360000fe06f63636363636f606fe00000036363636fe0000001818f818f800000000000000f8181818" +
"181818181f00000018181818ff00000000000000ff181818181818181f18181800000000ff00000018181818ff18181818181f181f1818183636363637363636" +
"363637303f00000000003f30373636363636f700ff0000000000ff00f736363636363730373636360000ff00ff0000003636f700f73636361818ff00ff000000" +
"36363636ff0000000000ff00ff18181800000000ff363636363636363f00000018181f181f00000000001f181f181818000000003f36363636363636ff363636" +
"1818ff18ff18181818181818f8000000000000001f181818ffffffffffffffff00000000fffffffff0f0f0f0f0f0f0f00f0f0f0f0f0f0f0fffffffff00000000" +
"000076dcc8dc76000078ccf8ccf8c0c000fcccc0c0c0c00000fe6c6c6c6c6c00fccc603060ccfc0000007ed8d8d8700000666666667c60c00076dc1818181800" +
"fc3078cccc7830fc386cc6fec66c3800386cc6c66c6cee001c30187ccccc780000007edbdb7e0000060c7edbdb7e60c03860c0f8c060380078cccccccccccc00" +
"00fc00fc00fc00003030fc303000fc00603018306000fc00183060301800fc000e1b1b18181818181818181818d8d870303000fc003030000076dc0076dc0000" +
"386c6c3800000000000000181800000000000000180000000f0c0c0cec6c3c1c786c6c6c6c000000701830607800000000003c3c3c3c00000000000000000000",
)
/** code page 437, SyncTERM's thin variant */
val VGA_THIN: RomFont = RomFont(
h16 =
"0000000000000000000000000000000000007e81a58181bd9981817e0000000000007effdbffffc3e7ffff7e00000000000000006cfefefefe7c381000000000" +
"0000000010387cfe7c38100000000000000000183c3ce7e7e718183c00000000000000183c7effff7e18183c00000000000000000000183c3c18000000000000" +
"ffffffffffffe7c3c3e7ffffffffffff00000000003c664242663c0000000000ffffffffffc399bdbd99c3ffffffffff00003e0a122278848484847800000000" +
"0000384444444438107c10100000000000003f213f2020202060e0c00000000000003f213f212121212367e6c00000000000001010d638ee38d6101000000000" +
"0080c0e0f0f8fef8f0e0c080000000000002060e1e3efe3e1e0e060200000000000010387c1010107c3810000000000000004242424242424200424200000000" +
"00007f89898979090909090900000000007c864038448282443804c27c0000000000000000000000fefefefe00000000000010387c1010107c38107c00000000" +
"000010387c10101010101010000000000000101010101010107c38100000000000000000000804fe040800000000000000000000002040fe4020000000000000" +
"000000000000808080fe0000000000000000000000286cfe6c28000000000000000000001038387c7cfefe000000000000000000fefe7c7c3838100000000000" +
"0000000000000000000000000000000000001038383810101000101000000000004242424200000000000000000000000000004444fe444444fe444400000000" +
"10107c828240300c0482827c101000000000000000828408102042820000000000003844443838474444443b0000000000202040000000000000000000000000" +
"000004081010101010100804000000000000201008080808080810200000000000000000002418ff1824000000000000000000000010107c1010000000000000" +
"0000000000000000001010102000000000000000000000fe00000000000000000000000000000000000010100000000000000000000204081020408000000000" +
"0000384482829292828244380000000000000818380808080808083e0000000000007c8202040810204082fe0000000000007c8202023c020202827c00000000" +
"00000c14244484fe0404040e000000000000fe808080fc020202827c00000000000038408080fc828282827c000000000000fe82020204081010101000000000" +
"00007c8282827c828282827c0000000000007c8282827e0202020478000000000000000010100000001010000000000000000000101000000010102000000000" +
"0000000408102040201008040000000000000000007e00007e000000000000000000004020100804081020400000000000007c82820204080800080800000000" +
"0000007c82829e92928c807c0000000000001028448282fe82828282000000000000fc4242427c42424242fc0000000000003c42828080808082423c00000000" +
"0000f84442424242424244f8000000000000fe4242487848404242fe000000000000fe4242487848404040e00000000000003c428280809e8282463a00000000" +
"000082828282fe8282828282000000000000381010101010101010380000000000000e040404040484848478000000000000c24242444878444242c200000000" +
"0000e04040404040404242fe00000000000082c6aa928282828282820000000000008282c2a2928a868282820000000000003844828282828282443800000000" +
"0000fc4242427c40404040e00000000000007c828282828282928a7c040200000000fc4242427c44424242c20000000000007c828240300c0482827c00000000" +
"0000fe9292101010101010380000000000008282828282828282827c0000000000008282828282828244281000000000000082828282828292aac68200000000" +
"00008282442810284482828200000000000082828244381010101038000000000000fe8282041820408282fe0000000000003c20202020202020203c00000000" +
"0000008040201008040201000000000000003c04040404040404043c000000001028448200000000000000000000000000000000000000000000000000ff0000" +
"10100800000000000000000000000000000000000078047c84848c76000000000000c040407844424242427c0000000000000000007c82808080827c00000000" +
"00000c04043c448484848c760000000000000000007c8282fe80827c00000000000038444440e040404040e0000000000000000000768c848484847c04847800" +
"0000c040407c4242424242c2000000000000101000301010101010380000000000000202000602020202020242423c000000c04040424448784442c200000000" +
"000030101010101010101038000000000000000000ec929292929292000000000000000000dc6242424242420000000000000000007c82828282827c00000000" +
"0000000000dc62424242427c4040e0000000000000768c848484847c04040e000000000000dc6242404040e00000000000000000007c82807c02827c00000000" +
"0000202020f820202020221c00000000000000000084848484848c760000000000000000004242424242241800000000000000000082828292aac68200000000" +
"0000000000824428102844820000000000000000008282828282827e020478000000000000fe8408102042fe0000000000000e10101060101010100e00000000" +
"0000101010100010101010100000000000007008080806080808087000000000000076dc00000000000000000000000000000000102844828282fe0000000000" +
"00003c428280808082423c04027c0000000084000084848484848c760000000000040810007c8282fe80827c00000000001028440078047c84848c7600000000" +
"000084840078047c84848c7600000000004020100078047c84848c7600000000003844380078047c84848c7600000000000000003c424040423c04023c000000" +
"00102844007c8282fe80827c0000000000008400007c8282fe80827c0000000000402010007c8282fe80827c0000000000004444001808080808081c00000000" +
"00182442001808080808081c0000000000402010001808080808081c000000000082001028448282fe828282000000003844381028448282fe82828200000000" +
"081020fe4240407c404042fe0000000000000000008c52327e88986e0000000000003e448484fe84848484860000000000102844007c82828282827c00000000" +
"00004400007c82828282827c0000000000402010007c82828282827c00000000003048840084848484848c7600000000004020100084848484848c7600000000" +
"00008200000082828282827e020478000082007c828282828282827c0000000000820082828282828282827c0000000000101038444040404838101000000000" +
"0038444440e04040404042fc000000000000444428107c107c1010100000000000f88484f884849e84848486000000000006090808083e080808080848300000" +
"000810200078047c84848c760000000000040810001808080808081c0000000000081020007c82828282827c00000000000810200084848484848c7600000000" +
"000076dc00dc6242424242420000000076dc0082c2a2928a8682828200000000003c44443e007e0000000000000000000038444438007c000000000000000000" +
"00002020002020408082827c00000000000000000000fec0c0c0c00000000000000000000000fe0606060600000000000080808284881020409c0204081e0000" +
"0080808284881020468a123e02020000000010100010101038383810000000000000000000244890482400000000000000000000008844224488000000000000" +
"1144114411441144114411441144114455aa55aa55aa55aa55aa55aa55aa55aadd77dd77dd77dd77dd77dd77dd77dd7718181818181818181818181818181818" +
"18181818181818f818181818181818181818181818f818f8181818181818181836363636363636f6363636363636363600000000000000fe3636363636363636" +
"0000000000f818f818181818181818183636363636f606f63636363636363636363636363636363636363636363636360000000000fe06f63636363636363636" +
"3636363636f606fe000000000000000036363636363636fe00000000000000001818181818f818f8000000000000000000000000000000f81818181818181818" +
"181818181818181f000000000000000018181818181818ff000000000000000000000000000000ff1818181818181818181818181818181f1818181818181818" +
"00000000000000ff000000000000000018181818181818ff181818181818181818181818181f181f181818181818181836363636363636373636363636363636" +
"363636363637303f000000000000000000000000003f303736363636363636363636363636f700ff00000000000000000000000000ff00f73636363636363636" +
"363636363637303736363636363636360000000000ff00ff00000000000000003636363636f700f736363636363636361818181818ff00ff0000000000000000" +
"36363636363636ff00000000000000000000000000ff00ff181818181818181800000000000000ff3636363636363636363636363636363f0000000000000000" +
"18181818181f181f000000000000000000000000001f181f1818181818181818000000000000003f363636363636363636363636363636ff3636363636363636" +
"1818181818ff18ff181818181818181818181818181818f80000000000000000000000000000001f1818181818181818ffffffffffffffffffffffffffffffff" +
"00000000000000fffffffffffffffffff0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f00f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0fffffffffffffff000000000000000000" +
"00000000006294988898946200000000000078848484b884828282bc800000000000fe8282808080808080800000000000000000fe4444444444444400000000" +
"000000fe82402010204082fe0000000000000000007e888888888870000000000000000042424242427c4040c00000000000000072d408080808080800000000" +
"0000007c103844444438107c0000000000000038448282fe82824438000000000000384482828244282828ee0000000000001e1008043e424242423c00000000" +
"00000000007e9999997e00000000000000000001027e8991a17e40800000000000001c20404078404040201c000000000000007c828282828282828200000000" +
"00000000fe0000fe0000fe00000000000000000010107c10100000fe0000000000000010080402040810007e0000000000000008102040201008007e00000000" +
"00000e1111101010101010101010101008080808080808080888887070000000000000001010007c0010100000000000000000000076dc0076dc000000000000" +
"003844443800000000000000000000000000000000000000180000000000000000000000000000181800000000000000000f0808080808e82828281800000000" +
"00d8644444444400000000000000000000708810204878000000000000000000000000007c7c7c7c7c7c7c000000000000000000000000000000000000000000",
)
/** Commodore 64, upper case and graphics (PETSCII order) */
val C64_UPPER: RomFont = RomFont(
h8 =
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000181818180000180066666600000000006666ff66ff666600183e603c067c180062660c18306646003c663c3867663f00060c180000000000" +
"0c18303030180c0030180c0c0c18300000663cff3c6600000018187e1818000000000000001818300000007e0000000000000000001818000003060c18306000" +
"3c666e7666663c001818381818187e003c66060c30607e003c66061c06663c00060e1e667f0606007e607c0606663c003c66607c66663c007e660c1818181800" +
"3c66663c66663c003c66663e06663c00000018000018000000001800001818300e18306030180e0000007e007e00000070180c060c1870003c66060c18001800" +
"3c666e6e60623c00183c667e666666007c66667c66667c003c66606060663c00786c6666666c78007e60607860607e007e606078606060003c66606e66663c00" +
"6666667e666666003c18181818183c001e0c0c0c0c6c3800666c7870786c66006060606060607e0063777f6b6363630066767e7e6e6666003c66666666663c00" +
"7c66667c606060003c666666663c0e007c66667c786c66003c66603c06663c007e181818181818006666666666663c0066666666663c18006363636b7f776300" +
"66663c183c6666006666663c181818007e060c1830607e003c30303030303c000c12307c3062fc003c0c0c0c0c0c3c0000183c7e181818180010307f7f301000" +
"000000ffff000000081c3e7f7f1c3e001818181818181818000000ffff0000000000ffff0000000000ffff000000000000000000ffff00003030303030303030" +
"0c0c0c0c0c0c0c0c000000e0f038181818181c0f07000000181838f0e0000000c0c0c0c0c0c0ffffc0e070381c0e070303070e1c3870e0c0ffffc0c0c0c0c0c0" +
"ffff030303030303003c7e7e7e7e3c000000000000ffff00367f7f7f3e1c08006060606060606060000000070f1c1818c3e77e3c3c7ee7c3003c7e66667e3c00" +
"1818666618183c000606060606060606081c3e7f3e1c0800181818ffff181818c0c03030c0c0303018181818181818180000033e76363600ff7f3f1f0f070301" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000f0f0f0f0f0f0f0f000000000ffffffffff0000000000000000000000000000ffc0c0c0c0c0c0c0c0cccc3333cccc33330303030303030303" +
"00000000cccc3333fffefcf8f0e0c08003030303030303031818181f1f181818000000000f0f0f0f1818181f1f000000000000f8f8181818000000000000ffff" +
"0000001f1f181818181818ffff000000000000ffff181818181818f8f8181818c0c0c0c0c0c0c0c0e0e0e0e0e0e0e0e00707070707070707ffff000000000000" +
"ffffff00000000000000000000ffffff030303030303ffff00000000f0f0f0f00f0f0f0f00000000181818f8f8000000f0f0f0f000000000f0f0f0f00f0f0f0f" +
"000000ffff000000081c3e7f7f1c3e001818181818181818000000ffff0000000000ffff0000000000ffff000000000000000000ffff00003030303030303030" +
"0c0c0c0c0c0c0c0c000000e0f038181818181c0f07000000181838f0e0000000c0c0c0c0c0c0ffffc0e070381c0e070303070e1c3870e0c0ffffc0c0c0c0c0c0" +
"ffff030303030303003c7e7e7e7e3c000000000000ffff00367f7f7f3e1c08006060606060606060000000070f1c1818c3e77e3c3c7ee7c3003c7e66667e3c00" +
"1818666618183c000606060606060606081c3e7f3e1c0800181818ffff181818c0c03030c0c0303018181818181818180000033e76363600ff7f3f1f0f070301" +
"0000000000000000f0f0f0f0f0f0f0f000000000ffffffffff0000000000000000000000000000ffc0c0c0c0c0c0c0c0cccc3333cccc33330303030303030303" +
"00000000cccc3333fffefcf8f0e0c08003030303030303031818181f1f181818000000000f0f0f0f1818181f1f000000000000f8f8181818000000000000ffff" +
"0000001f1f181818181818ffff000000000000ffff181818181818f8f8181818c0c0c0c0c0c0c0c0e0e0e0e0e0e0e0e00707070707070707ffff000000000000" +
"ffffff00000000000000000000ffffff030303030303ffff00000000f0f0f0f00f0f0f0f00000000181818f8f8000000f0f0f0f0000000000000033e76363600",
)
/** Commodore 64, lower and upper case */
val C64_LOWER: RomFont = RomFont(
h8 =
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000181818180000180066666600000000006666ff66ff666600183e603c067c180062660c18306646003c663c3867663f00060c180000000000" +
"0c18303030180c0030180c0c0c18300000663cff3c6600000018187e1818000000000000001818300000007e0000000000000000001818000003060c18306000" +
"3c666e7666663c001818381818187e003c66060c30607e003c66061c06663c00060e1e667f0606007e607c0606663c003c66607c66663c007e660c1818181800" +
"3c66663c66663c003c66663e06663c00000018000018000000001800001818300e18306030180e0000007e007e00000070180c060c1870003c66060c18001800" +
"3c666e6e60623c0000003c063e663e000060607c66667c0000003c6060603c000006063e66663e0000003c667e603c00000e183e1818180000003e66663e067c" +
"0060607c666666000018003818183c00000600060606063c0060606c786c66000038181818183c000000667f7f6b630000007c666666660000003c6666663c00" +
"00007c66667c606000003e66663e060600007c666060600000003e603c067c0000187e1818180e000000666666663e0000006666663c18000000636b7f3e3600" +
"0000663c183c660000006666663e0c7800007e0c18307e003c30303030303c000c12307c3062fc003c0c0c0c0c0c3c0000183c7e181818180010307f7f301000" +
"000000ffff000000183c667e666666007c66667c66667c003c66606060663c00786c6666666c78007e60607860607e007e606078606060003c66606e66663c00" +
"6666667e666666003c18181818183c001e0c0c0c0c6c3800666c7870786c66006060606060607e0063777f6b6363630066767e7e6e6666003c66666666663c00" +
"7c66667c606060003c666666663c0e007c66667c786c66003c66603c06663c007e181818181818006666666666663c0066666666663c18006363636b7f776300" +
"66663c183c6666006666663c181818007e060c1830607e00181818ffff181818c0c03030c0c0303018181818181818183333cccc3333cccc3399cc663399cc66" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000f0f0f0f0f0f0f0f000000000ffffffffff0000000000000000000000000000ffc0c0c0c0c0c0c0c0cccc3333cccc33330303030303030303" +
"00000000cccc3333cc993366cc99336603030303030303031818181f1f181818000000000f0f0f0f1818181f1f000000000000f8f8181818000000000000ffff" +
"0000001f1f181818181818ffff000000000000ffff181818181818f8f8181818c0c0c0c0c0c0c0c0e0e0e0e0e0e0e0e00707070707070707ffff000000000000" +
"ffffff00000000000000000000ffffff0103066c7870600000000000f0f0f0f00f0f0f0f00000000181818f8f8000000f0f0f0f000000000f0f0f0f00f0f0f0f" +
"000000ffff000000183c667e666666007c66667c66667c003c66606060663c00786c6666666c78007e60607860607e007e606078606060003c66606e66663c00" +
"6666667e666666003c18181818183c001e0c0c0c0c6c3800666c7870786c66006060606060607e0063777f6b6363630066767e7e6e6666003c66666666663c00" +
"7c66667c606060003c666666663c0e007c66667c786c66003c66603c06663c007e181818181818006666666666663c0066666666663c18006363636b7f776300" +
"66663c183c6666006666663c181818007e060c1830607e00181818ffff181818c0c03030c0c0303018181818181818183333cccc3333cccc3399cc663399cc66" +
"0000000000000000f0f0f0f0f0f0f0f000000000ffffffffff0000000000000000000000000000ffc0c0c0c0c0c0c0c0cccc3333cccc33330303030303030303" +
"00000000cccc3333cc993366cc99336603030303030303031818181f1f181818000000000f0f0f0f1818181f1f000000000000f8f8181818000000000000ffff" +
"0000001f1f181818181818ffff000000000000ffff181818181818f8f8181818c0c0c0c0c0c0c0c0e0e0e0e0e0e0e0e00707070707070707ffff000000000000" +
"ffffff00000000000000000000ffffff0103066c7870600000000000f0f0f0f00f0f0f0f00000000181818f8f8000000f0f0f0f0000000003333cccc3333cccc",
)
/** Commodore 128, upper case and graphics */
val C128_UPPER: RomFont = RomFont(
h8 =
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000181818180000180066666600000000006666ff66ff666600183e603c067c180062660c18306646003c663c3867663f00060c180000000000" +
"0c18303030180c0030180c0c0c18300000663cff3c6600000018187e1818000000000000001818300000007e0000000000000000001818000003060c18306000" +
"3c666e7666663c001818381818187e003c66060c30607e003c66061c06663c00060e1e667f0606007e607c0606663c003c66607c66663c007e660c1818181800" +
"3c66663c66663c003c66663e06663c00000018000018000000001800001818300e18306030180e0000007e007e00000070180c060c1870003c66060c18001800" +
"3c666e6e60623c00183c667e666666007c66667c66667c003c66606060663c00786c6666666c78007e60607860607e007e606078606060003c66606e66663c00" +
"6666667e666666003c18181818183c001e0c0c0c0c6c3800666c7870786c66006060606060607e0063777f6b6363630066767e7e6e6666003c66666666663c00" +
"7c66667c606060003c666666663c0e007c66667c786c66003c66603c06663c007e181818181818006666666666663c0066666666663c18006363636b7f776300" +
"66663c183c6666006666663c181818007e060c1830607e003c30303030303c000c12307c3062fc003c0c0c0c0c0c3c0000183c7e181818180010307f7f301000" +
"000000ffff000000081c3e7f7f1c3e001818181818181818000000ffff0000000000ffff0000000000ffff000000000000000000ffff00003030303030303030" +
"0c0c0c0c0c0c0c0c000000e0f038181818181c0f07000000181838f0e0000000c0c0c0c0c0c0ffffc0e070381c0e070303070e1c3870e0c0ffffc0c0c0c0c0c0" +
"ffff030303030303003c7e7e7e7e3c000000000000ffff00367f7f7f3e1c08006060606060606060000000070f1c1818c3e77e3c3c7ee7c3003c7e66667e3c00" +
"1818666618183c000606060606060606081c3e7f3e1c0800181818ffff181818c0c03030c0c0303018181818181818180000033e76363600ff7f3f1f0f070301" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000f0f0f0f0f0f0f0f000000000ffffffffff0000000000000000000000000000ffc0c0c0c0c0c0c0c0cccc3333cccc33330303030303030303" +
"00000000cccc3333fffefcf8f0e0c08003030303030303031818181f1f181818000000000f0f0f0f1818181f1f000000000000f8f8181818000000000000ffff" +
"0000001f1f181818181818ffff000000000000ffff181818181818f8f8181818c0c0c0c0c0c0c0c0e0e0e0e0e0e0e0e00707070707070707ffff000000000000" +
"ffffff00000000000000000000ffffff030303030303ffff00000000f0f0f0f00f0f0f0f00000000181818f8f8000000f0f0f0f000000000f0f0f0f00f0f0f0f" +
"000000ffff000000081c3e7f7f1c3e001818181818181818000000ffff0000000000ffff0000000000ffff000000000000000000ffff00003030303030303030" +
"0c0c0c0c0c0c0c0c000000e0f038181818181c0f07000000181838f0e0000000c0c0c0c0c0c0ffffc0e070381c0e070303070e1c3870e0c0ffffc0c0c0c0c0c0" +
"ffff030303030303003c7e7e7e7e3c000000000000ffff00367f7f7f3e1c08006060606060606060000000070f1c1818c3e77e3c3c7ee7c3003c7e66667e3c00" +
"1818666618183c000606060606060606081c3e7f3e1c0800181818ffff181818c0c03030c0c0303018181818181818180000033e76363600ff7f3f1f0f070301" +
"0000000000000000f0f0f0f0f0f0f0f000000000ffffffffff0000000000000000000000000000ffc0c0c0c0c0c0c0c0cccc3333cccc33330303030303030303" +
"00000000cccc3333fffefcf8f0e0c08003030303030303031818181f1f181818000000000f0f0f0f1818181f1f000000000000f8f8181818000000000000ffff" +
"0000001f1f181818181818ffff000000000000ffff181818181818f8f8181818c0c0c0c0c0c0c0c0e0e0e0e0e0e0e0e00707070707070707ffff000000000000" +
"ffffff00000000000000000000ffffff030303030303ffff00000000f0f0f0f00f0f0f0f00000000181818f8f8000000f0f0f0f0000000000000033e76363600",
)
/** Commodore 128, lower and upper case */
val C128_LOWER: RomFont = RomFont(
h8 =
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000181818180000180066666600000000006666ff66ff666600183e603c067c180062660c18306646003c663c3867663f00060c180000000000" +
"0c18303030180c0030180c0c0c18300000663cff3c6600000018187e1818000000000000001818300000007e0000000000000000001818000003060c18306000" +
"3c666e7666663c001818381818187e003c66060c30607e003c66061c06663c00060e1e667f0606007e607c0606663c003c66607c66663c007e660c1818181800" +
"3c66663c66663c003c66663e06663c00000018000018000000001800001818300e18306030180e0000007e007e00000070180c060c1870003c66060c18001800" +
"3c666e6e60623c0000003c063e663e0060607c6666667c0000003c6660663c0006063e6666663e0000003c667e603e001c3630783030300000003e66663e067c" +
"60607c66666666001800181818181800060006060606663c6060666c787c66003818181818183c00000063777f6b630000007c666666660000003c6666663c00" +
"00007c66667c606000003e66663e060600007c666060600000003c603c067c003030fc3030361c000000666666663c0000006666663c18000000636b7f362200" +
"0000663c183c660000006666663e067c00007e0c18307e003c30303030303c000c12307c3062fc003c0c0c0c0c0c3c0000183c7e181818180010307f7f301000" +
"000000ffff000000183c667e666666007c66667c66667c003c66606060663c00786c6666666c78007e60607860607e007e606078606060003c66606e66663c00" +
"6666667e666666003c18181818183c001e0c0c0c0c6c3800666c7870786c66006060606060607e0063777f6b6363630066767e7e6e6666003c66666666663c00" +
"7c66667c606060003c666666663c0e007c66667c786c66003c66603c06663c007e181818181818006666666666663c0066666666663c18006363636b7f776300" +
"66663c183c6666006666663c181818007e060c1830607e00181818ffff181818c0c03030c0c0303018181818181818183333cccc3333cccc3399cc663399cc66" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"0000000000000000f0f0f0f0f0f0f0f000000000ffffffffff0000000000000000000000000000ffc0c0c0c0c0c0c0c0cccc3333cccc33330303030303030303" +
"00000000cccc3333cc993366cc99336603030303030303031818181f1f181818000000000f0f0f0f1818181f1f000000000000f8f8181818000000000000ffff" +
"0000001f1f181818181818ffff000000000000ffff181818181818f8f8181818c0c0c0c0c0c0c0c0e0e0e0e0e0e0e0e00707070707070707ffff000000000000" +
"ffffff00000000000000000000ffffff0103066c7870600000000000f0f0f0f00f0f0f0f00000000181818f8f8000000f0f0f0f000000000f0f0f0f00f0f0f0f" +
"000000ffff000000183c667e666666007c66667c66667c003c66606060663c00786c6666666c78007e60607860607e007e606078606060003c66606e66663c00" +
"6666667e666666003c18181818183c001e0c0c0c0c6c3800666c7870786c66006060606060607e0063777f6b6363630066767e7e6e6666003c66666666663c00" +
"7c66667c606060003c666666663c0e007c66667c786c66003c66603c06663c007e181818181818006666666666663c0066666666663c18006363636b7f776300" +
"66663c183c6666006666663c181818007e060c1830607e00181818ffff181818c0c03030c0c0303018181818181818183333cccc3333cccc3399cc663399cc66" +
"0000000000000000f0f0f0f0f0f0f0f000000000ffffffffff0000000000000000000000000000ffc0c0c0c0c0c0c0c0cccc3333cccc33330303030303030303" +
"00000000cccc3333cc993366cc99336603030303030303031818181f1f181818000000000f0f0f0f1818181f1f000000000000f8f8181818000000000000ffff" +
"0000001f1f181818181818ffff000000000000ffff181818181818f8f8181818c0c0c0c0c0c0c0c0e0e0e0e0e0e0e0e00707070707070707ffff000000000000" +
"ffffff00000000000000000000ffffff0103066c7870600000000000f0f0f0f00f0f0f0f00000000181818f8f8000000f0f0f0f0000000003333cccc3333cccc",
)
/** Atari 8-bit (ATASCII order) */
val ATARI: RomFont = RomFont(
h8 =
"00367f7f3e1c08001818181f1f1818180303030303030303181818f8f8000000181818f8f8181818000000f8f818181803070e1c3870e0c0c0e070381c0e0703" +
"0103070f1f3f7fff000000000f0f0f0f80c0e0f0f8fcfeff0f0f0f0f00000000f0f0f0f000000000ffff000000000000000000000000ffff00000000f0f0f0f0" +
"001c1c7777081c000000001f1f181818000000ffff000000181818ffff18181800003c7e7e7e3c0000000000ffffffffc0c0c0c0c0c0c0c0000000ffff181818" +
"181818ffff000000f0f0f0f0f0f0f0f01818181f1f000000786078607e181e0000183c7e18181800001818187e3c18000018307e3018000000180c7e0c180000" +
"0000000000000000001818181800180000666666000000000066ff6666ff6600183e603c067c180000666c18306646001c361c386f663b000018181800000000" +
"000e1c18181c0e00007038181838700000663cff3c6600000018187e1818000000000000001818300000007e00000000000000000018180000060c1830604000" +
"003c666e76663c000018381818187e00003c660c18307e00007e0c180c663c00000c1c3c6c7e0c00007e607c06663c00003c607c66663c00007e060c18303000" +
"003c663c66663c00003c663e060c380000001818001818000000181800181830060c1830180c060000007e00007e00006030180c18306000003c660c18001800" +
"003c666e6e603e0000183c66667e6600007c667c66667c00003c666060663c0000786c66666c7800007e607c60607e00007e607c60606000003e60606e663e00" +
"0066667e66666600007e181818187e000006060606663c0000666c78786c66000060606060607e000063777f6b6363000066767e7e6e6600003c666666663c00" +
"007c66667c606000003c6666666c3600007c66667c6c6600003c603c06063c00007e1818181818000066666666667e0000666666663c18000063636b7f776300" +
"0066663c3c6666000066663c18181800007e0c1830607e00001e181818181e0000406030180c0600007818181818780000081c3663000000000000000000ff00" +
"00183c7e7e3c180000003c063e663e000060607c66667c0000003c6060603c000006063e66663e0000003c667e603c00000e183e1818180000003e66663e067c" +
"0060607c666666000018003818183c00000600060606063c0060606c786c66000038181818183c000000667f7f6b630000007c666666660000003c6666663c00" +
"00007c66667c606000003e66663e060600007c666060600000003e603c067c0000187e1818180e000000666666663e0000006666663c18000000636b7f3e3600" +
"0000663c183c660000006666663e0c7800007e0c18307e0000183c7e7e183c001818181818181818007e787c6e660600081838783818080010181c1e1c181000" +
"ffc98080c1e3f7ffe7e7e7e0e0e7e7e7fcfcfcfcfcfcfcfce7e7e70707ffffffe7e7e70707e7e7e7ffffff0707e7e7e7fcf8f1e3c78f1f3f3f1f8fc7e3f1f8fc" +
"fefcf8f0e0c08000fffffffff0f0f0f07f3f1f0f07030100f0f0f0f0ffffffff0f0f0f0fffffffff0000ffffffffffffffffffffffff0000ffffffff0f0f0f0f" +
"ffe3e38888f7e3ffffffffe0e0e7e7e7ffffff0000ffffffe7e7e70000e7e7e7ffffc3818181c3ffffffffff000000003f3f3f3f3f3f3f3fffffff0000e7e7e7" +
"e7e7e70000ffffff0f0f0f0f0f0f0f0fe7e7e7e0e0ffffff879f879f81e7e1ffffe7c381e7e7e7ffffe7e7e781c3e7ffffe7cf81cfe7ffffffe7f381f3e7ffff" +
"ffffffffffffffffffe7e7e7e7ffe7ffff999999ffffffffff990099990099ffe7c19fc3f983e7ffff9993e7cf99b9ffe3c9e3c79099c4ffffe7e7e7ffffffff" +
"fff1e3e7e7e3f1ffff8fc7e7e7c78fffff99c300c399ffffffe7e781e7e7ffffffffffffffe7e7cfffffff81ffffffffffffffffffe7e7fffff9f3e7cf9fbfff" +
"ffc399918999c3ffffe7c7e7e7e781ffffc399f3e7cf81ffff81f3e7f399c3fffff3e3c39381f3ffff819f83f999c3ffffc39f839999c3ffff81f9f3e7cfcfff" +
"ffc399c39999c3ffffc399c1f9f3c7ffffffe7e7ffe7e7ffffffe7e7ffe7e7cff9f3e7cfe7f3f9ffffff81ffff81ffff9fcfe7f3e7cf9fffffc399f3e7ffe7ff" +
"ffc39991919fc1ffffe7c399998199ffff839983999983ffffc3999f9f99c3ffff879399999387ffff819f839f9f81ffff819f839f9f9fffffc19f9f9199c1ff" +
"ff999981999999ffff81e7e7e7e781fffff9f9f9f999c3ffff999387879399ffff9f9f9f9f9f81ffff9c8880949c9cffff998981819199ffffc399999999c3ff" +
"ff839999839f9fffffc399999993c9ffff839999839399ffffc39fc3f9f9c3ffff81e7e7e7e7e7ffff999999999981ffff99999999c3e7ffff9c9c9480889cff" +
"ff9999c3c39999ffff9999c3e7e7e7ffff81f3e7cf9f81ffffe1e7e7e7e7e1ffffbf9fcfe7f3f9ffff87e7e7e7e787fffff7e3c99cffffffffffffffffff00ff" +
"ffe7c38181c3e7ffffffc3f9c199c1ffff9f9f83999983ffffffc39f9f9fc3fffff9f9c19999c1ffffffc399819fc3fffff1e7c1e7e7e7ffffffc19999c1f983" +
"ff9f9f83999999ffffe7ffc7e7e7c3fffff9fff9f9f9f9c3ff9f9f93879399ffffc7e7e7e7e7c3ffffff998080949cffffff8399999999ffffffc3999999c3ff" +
"ffff839999839f9fffffc19999c1f9f9ffff83999f9f9fffffffc19fc3f983ffffe781e7e7e7f1ffffff99999999c1ffffff999999c3e7ffffff9c9480c1c9ff" +
"ffff99c3e7c399ffffff999999c1f387ffff81f3e7cf81ffffe7c38181e7c3ffe7e7e7e7e7e7e7e7ff8187839199f9fff7e7c787c7e7f7ffefe7e3e1e3e7efff",
)
/** P0T-NOoDLE (Amiga) */
val POT_NOODLE: RomFont = RomFont(
h8 =
"0000000000000000ff833929233f81ffff8339213939397fff039993999903ffff83393f3f3983f7ff0f8793999903ffff019f839f9903f7fb019c879f9f1fff" +
"f783393f313981fdff3939213939397fff81e7e7e7e781fffdf9f9f91939037fff3933273339397fff1f9f9f9f9903f7ff3911012939397fff392921313939ff" +
"ff833939393983ffff039999939f1fffff83393929358bfdff039993999919fbff833f83f939037ff703c9cfcfcfcfdf7f313333333381ff7f39399393c7efff" +
"7f393929011139ff3f3939a3393939fdfd3939a3e7e7e7ffff01f3e7cd9981fdff81cfcfcfcf81ff3f9fcfe7f3f9fcfeff81f3f3f3f381ffe7c399ffffffffff" +
"0000000000000000001c1c181800181066660000000000006c6cfe6cfe6c6c00187ec07c06fc300063a6cc183365c6803c66647bcec67b001818300000000000" +
"0c18303030180c0030180c0c0c18300000663cff3c6600000018187e181800000000000000181830000000ff00000000000000000018180003060c183060c080" +
"007cced6d6e67c000018381818187e00007cc68c3866fe00207cc61e06c67c0080c6c67e0606060200fec0fc06c6fc00007cc0fcc6c67c0080fecc983060c000" +
"007cc67cc6c67c00007cc6c67e067c0000181800001818000018180000181830183060c0603018000000ff0000ff000030180c060c183000003c660c18001810" +
"007cc6d6dcc07e00007cc6dec6c6c68000fc666c6666fc00007cc6c0c0c67c0800f0786c6666fc0000fe607c6066fc0804fe63786060e000087cc6c0cec67f02" +
"00c6c6dec6c6c680007e181818187e0002060606e6c6fc8000c6ccd8ccc6c68000e060606066fc0800c6eefed6c6c68000c6d6decec6c600007cc6c6c6c67c00" +
"00fc66666c60e000007cc6c6d6ca740200fc666c6666e604007ec07c06c6fc8008fc36303030302080cecccccccc7e0080c6c66c6c38100080c6c6d6feeec600" +
"80c6c65cc6c6c60202c6c65c1818180800fe0c183266fe02007e303030307e00c06030180c060301007e0c0c0c0c7e00183c66000000000000000000000000ff" +
"18180c000000000000007c0676c67e00e0606c666666fc0000007ec2c0c27e000e0c6ccccccc7e0000007cc6dcc07e001e307c303030302000007cc6c67606fc" +
"e0606c666666e60018001818181818100206000606c6c67ce060666c786ce60218181818181818100000fcd6d6d6d6800000fc666666e60400007cc6c6c67c00" +
"0000fc66666c60e000007ecccc6c0c0e0008fc666060604000007ec07c06fc0030307c30303030200080cecccccc7e000080c6c66c6c38000002d6d6d6d67c00" +
"0000c6c65cc6c6020080c6c6c65e067c0000fe8c1832fe001c30306030301c001818181818181818380c0c060c0c380076dc000000000000cc33cc33cc33cc33" +
"9fe783392139397bf3cf83392139397b833983392139397b892383392139397b39ff83392139397b833983392139397bff80332033333077ff83393f3f3983cf" +
"9fcf039f839f01ffe7cf039f839f01ffcf33039f839f01ff33ff039f839f01ff3fcf03cfcfcf03fff3cf03cfcfcf03ffcf33ff03cfcf03ff33ff03cfcfcf03ff" +
"ff1f8f87139903ff89231909213139ffcfe78339393983ffe7cf8339393983ffcf33ff87333387ff8923ff83393983ff39ff8339393983ffffff3c99e7993cff" +
"fe853b352959a37fcfe77f31333381ffe7cf7f31333381ffcf337f31333381ffff337f31333381fff3e73c99c3e7c3ff0f9f8399839f9f0f833939233939233f" +
"ffffffffffffff0010180018181c1c0000187ec0c0c07e18083c66f86066fc08c67cc6c67cc60000c6c66c3810fe101018181800181818007cc03c66663c033e" +
"24000000000000007c829aa2a29a827c0078ccccf600fe0000126cd86c120000fe0600000000000000007e7e000000007c82b2aab2aa827cff00000000000000" +
"78cc7800000000003030fc303000fc0070d83060f8000000f0187018f00000003060c00000000000000080c6c6c6ffc07eecec6c2c2c2e000000181800000000" +
"000000000000183060e06060f00000000078cc7800fc00000048361b3648000063e66c7b376fc30063e66c7e3366cf00c3e66cdb376fc3000818001830663c00" +
"60187cc6dec6c6840c307cc6dec6c6847cc67cc6dec6c68476dc7cc6dec6c684c6007cc6dec6c6847cc67cc6dec6c684007fccdfcccccf88007cc6c0c0c67c30" +
"6030fc607c60fe001830fc607c60fe0030ccfc607c60fe00cc00fc607c60fe00c030fc303030fc000c30fc303030fc0030cc00fc3030fc00cc00fc303030fc00" +
"00e07078ec66fc0076dce6f6decec60030187cc6c6c67c0018307cc6c6c67c0030cc0078cccc780076dc007cc6c67c00c6007cc6c6c67c000000c3661866c300" +
"017ac4cad6a65c80301880cecccc7e00183080cecccc7e0030cc80cecccc7e0000cc80cecccc7e000c18c3663c183c00f0607c667c6060f07cc6c6dcc6c6dcc0" +
"30187c0676c67e0018307c0676c67e0018667c0676c67e0076dc7c0676c67e00c6007c0676c67e007cc67c0676c67e0000007e1b7ec87f0000007cc6c0c67c30" +
"30187cc6dcc07e0018307cc6dcc07e0018667cc6dcc07e00c6007cc6dcc07e003018001818180c000c18001818180c001866001818180c000066001818180c00" +
"307e187cc6c67c0076dc00fcc6c6c6023018007cc6c67c001830007cc6c67c001866007cc6c67c0076dc007cc6c67c00006c007cc6c67c000018007e00180000" +
"00033e6e7e767cc076dc80c6c6c67e000c1880c6c6c67e00186680c6c6c67e0000c680c6c6c67e000c1880c6c66c38f0f0607c66667c60f000c680c6c66c38f0",
)
/** mO'sOul (Amiga) */
val MOSOUL: RomFont = RomFont(
h8 =
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"000000000000000018181818180018006c6c0000000000006c6cfe6cfe6c6c00183e603c067c18000066acd8366acc00386c6876dcce7b001818300000000000" +
"0c18303030180c0030180c0c0c18300000663cff3c6600000018187e181800000000000000181830000000ff00000000000000000018180003060c183060c080" +
"3c666e7e76663c0038181818181818003c063c6060607e007c061c0606067c000cccccccfe0c0c007c607c0606067c003c607c6666663c007e06060c18181800" +
"3c663c6666663c003c6666663e063c000018180000181800001818000018183000061860180600000000ff00ff00000000601806186000003c66061c18001800" +
"7cc6ded6dec078003c6666667e6666007c667c6666667c001e30606060301e007c66666666667c007e60606078607e007e606060786060003c606e6666663e00" +
"666666667e6666003c18181818183c000e06060606063c00c6ccd8f0d8ccc6006060606060607e00c6eefed6c6c6c600c6e6f6decec6c6003c66666666663c00" +
"7c6666667c60600078ccccccccdc7e007c6666667c6666003c603c0606067c007e181818181818006666666666663c00666666663c3c1800c6c6c6d6feeec600" +
"c3663c183c66c300c3663c1818181800fe0c183060c0fc003c30303030303c00c06030180c0603013c0c0c0c0c0c3c0010386cc60000000000000000000000ff" +
"18180c000000000000003c063e663e0060607c6666667c0000003c6060603c0006063e6666663e0000003c667e603c001c3030307c30300000003e66663e063c" +
"60607c66666666001800181818180c000c000c0c0c0c0c786060666c786c66001818181818180c000000ecfed6c6c60000007c666666660000003c6666663c00" +
"00007c66667c606000003e66663e060600003e606060600000003c603c067c0030307c3030301c000000666666663c0000006666663c18000000c6c6d6fe6c00" +
"0000c66c386cc60000006666663e063c00007e0c18307e000e18187018180e0018181818181818187018180e18187000729c0000000000000f3cf0c30f3cf000" +
"007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00" +
"007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00" +
"007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00" +
"007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00007e666666667e00" +
"00000000000000001800181818181800000c3e6c3e0c00001c36307830307e00423c663c42000000c3663c183c18180018181800181818003c603c663c063c00" +
"66660000000000003c429da1a19d423c1c24443c007e0000003366cc663300003e06000000000000000000ff000000003c42b9a5b9a5423cff00000000000000" +
"3c663c000000000018187e1818007e00780c18307c000000780c180c7800000018306000000000000000666666667f603e7a7a3a0a0a0a000000181800000000" +
"0000000000001830307030303000000038444438007c000000cc663366cc000040c64c583266cf0240c64c583e62c40ec023662cd93367011800183060663c00" +
"30183c667e6666000c183c667e66660018663c667e666600718e3c667e66660066003c667e66660018243c667e6666001f3c3c6f7ccccf001e306060301e0c18" +
"30187e6078607e000c187e6078607e0018667e6078607e0066007e6078607e0030183c1818183c000c183c1818183c0018663c1818183c0066003c1818183c00" +
"786c66f6666c780071cee6f6decec60030183c6666663c000c183c6666663c0018663c6666663c00718e3c6666663c00c33c666666663c0000c66c386cc60000" +
"3f666e7e7666fc003018666666663c000c18666666663c001824666666663c006600666666663c000608c3663c181800c0c0fcc6fcc0c0003c66666c66666c60" +
"30183c063e663e000c183c063e663e0018663c063e663e00718e3c063e663e0066003c063e663e0018243c063e663e0000007e1b7fd8770000003c6060603c18" +
"30183c667e603c000c183c667e603c0018663c667e603c0066003c667e603c003018001818180c000c18001818180c001866001818180c000066001818180c00" +
"60fc183c66663c00718e007c666666003018003c66663c000c18003c66663c001866003c66663c00718e003c66663c000066003c66663c00001800ff00180000" +
"00027cced6e67c803018006666663e000c18006666663e001866006666663e000066006666663e000c180066663c1830c0c0f8ccccf8c0c000660066663c1830",
)
/** MicroKnight Plus (Amiga) */
val MICROKNIGHT_PLUS: RomFont = RomFont(
h8 =
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"000000000000000018181818180018006c6c2400000000006c6cfe6cfe6c6c00107cd07c16167c1060966c18306cd20c70d870f6dcd87c061818300000000000" +
"070e1818180e0700e07018181870e000006c38fe386c00000018187e181800000000000000181830000000ff00000000000000000018180003060c183060c080" +
"0078ccdef6e67c001818381818187e007c063c60c0c0fe003c061c0646c67c001818306cccfe0c00f8c0fc0646cc780070c0fcc6c6cc7800fe060c1818181800" +
"78cc7cc6c6cc780078ccc6c67e061c000000181800181800000018180018183003060c180c06030000007e00007e0000c06030183060c0007cc6063c30003000" +
"7cc6ded6dec07e0078ccc6fec6c6c600f8ccfcc6c6ccf80078ccc0c0c0c67c00f8ccc6c6c6c6fc00fec0fcc0c0c0fe00fec0fcc0c0c0c0003860c0cec6c67e06" +
"c6c6c6fec6c6c6007e18181818187e000e060606c6c67c00c6ccd8f0d8ccc600c0c0c0c0c0c0fe00c6eefed6c6c6c600c6e6f6decec6c60078ccc6c6c6c67c00" +
"f8ccc6c6fcc0c00078ccc6c6c6d67c0cf8ccc6c6fcd8cc0678c07c0646c67c007e18181818181800c6c6c6c6c6c67c00c6c6c66c6c383800c6c6c6d6feeec600" +
"c66c38386cc6c600c6c6c67c0c0c0c00fe0c183060c0fe003f30303030303f00c06030180c060301fc0c0c0c0c0cfc0010386c000000000000000000000000ff" +
"18180c0000000000003c067ec6c67e00c0f8ccc6c6c6fc000078ccc0c0c67c00063e66c6c6c67e000078ccfcc0c67c00386c607860606060007ec6c6c67e067c" +
"c0f8ccc6c6c6c6001800381818187e000c001c0c0c0c4c38c0ccd8f0d8ccc6003818181818187e0000c4eefed6c6c60000f8ccc6c6c6c6000078ccc6c6c67c00" +
"00f8ccc6c6c6fcc0003e66c6c6c67e0600fcc6c0c0c0c0000078c07c06c67c00307c303030321c0000c6c6c6c6c67e0000c6c66c6c38380000c6d6fe7c6c4400" +
"00c66c38386cc60000c6c6c6c67e067c00fe0c183060fe000f19187018190f001818181818181818f098180e1898f000729c0000000000003870e0c183070e1c" +
"cff78733013939ffe7df8733013939ffcf338733013939ff8d638733013939ff93ff8733013939ff87338733013939ffc0933003333330ff87333f3f3f3387cf" +
"cff7013f033f01ffe7df013f033f01ffe799013f033f01ff93ff013f033f01ffcff781e7e7e781ffe7df81e7e7e781ffe79981e7e7e781ff93ff81e7e7e781ff" +
"07333919393903ff8d631909213139ffcff78733393983ffe7df8733393983ffcf338733393983ff8d638733393983ff93ff8733393983ffff832900243881ff" +
"87332109193983ffcff73939393983ffe7df3939393983ffe7993939393983ff93ff3939393983ffe7df393983f3f3ff3f073339033f3f3fff8733233939233f" +
"000000000000000018001818181818003078ccc0c0c67c30386c60f86060fe0000c67cc6c67cc600c6c6c67c0c3e0c00181818181818181878c07cc6c67c063c" +
"6c000000000000003c4299a1a199423c007ec6c67e007c0000366cd86c360000ff030000000000000000007e000000003c42b9a5b9a5423cff00000000000000" +
"3c66663c0000000000107c10007c000070183060780000007018301870000000183060000000000000c6c6c6c6c6fcc0007ef474141414000000181800000000" +
"00000000000018303070303078000000007cc6c67c007c0000d86c366cd8000063e66c7b376fc38063e66c7f376fcf80c0e66cdb376fc3003000303c06c67c00" +
"300878ccfec6c600182078ccfec6c60030cc78ccfec6c600729c78ccfec6c6006c0078ccfec6c60078cc78ccfec6c6003f6ccffccccccf0078ccc0c0c0c67c30" +
"3008fec0fcc0fe001820fec0fcc0fe001866fec0fcc0fe006c00fec0fcc0fe0030087e1818187e0018207e1818187e0018667e1818187e006c007e1818187e00" +
"f8ccc6e6c6c6fc00729ce6f6decec600300878ccc6c67c00182078ccc6c67c0030cc78ccc6c67c00729c78ccc6c67c006c0078ccc6c67c00007cd6ffdbc77e00" +
"78ccdef6e6c67c003008c6c6c6c67c001820c6c6c6c67c001866c6c6c6c67c006c00c6c6c6c67c001820c6c67c0c0c00c0f8ccc6fcc0c0c00078ccdcc6c6dcc0" +
"30083c067ec67e0018203c067ec67e0018663c067ec67e00729c3c067ec67e006c003c067ec67e003c663c067ec67e00007e1b7fd8d87f000078ccc0c0c67c30" +
"300878fcc0c67c00182078fcc0c67c0030cc78fcc0c67c006c0078fcc0c67c003008381818187e001820381818187e001866381818187e006c00381818187e00" +
"0c163e66c6c67e00729cf8ccc6c6c600300878ccc6c67c00182078ccc6c67c00186678ccc6c67c00729c78ccc6c67c006c0078ccc6c67c00001800ff00180000" +
"0078ccdef6e67c003008c6c6c6c67e001820c6c6c6c67e001866c6c6c6c67e006c00c6c6c6c67e001820c6c6c67e067cc0c0f8ccc6fcc0c06c00c6c6c67e067c",
)
/** Topaz Plus (Amiga, Kickstart 2's Topaz) */
val TOPAZ_PLUS: RomFont = RomFont(
h8 =
"000000000000000083392129213f87ffc3999981999999ff83999983999983ffe1cf9f9f9fcfe1ff87939999999387ff819f9f879f9f81ff819f9f879f9f9fff" +
"c3999f919999c1ff99999981999999ffc3e7e7e7e7e7c3fff9f9f9f9f999c3ff9c99938793999cff9f9f9f9f9f9f81ff9c8880949c9c9cff9c8c8490989c9cff" +
"c39999999999c3ff839999839f9f9fffc39999999991c0ff83999983939999ffc3998fc3f199c3ff81e7e7e7e7e7e7ff999999999999c3ff9999999999c3e7ff" +
"9c9c9c9480889cff3c99c3e7c3993cff3c99c3e7e7e7e7ff80f9f3e7cf9f80ffc3cfcfcfcfcfc3ff3f9fcfe7f3f9fcfec3f3f3f3f3f3c3fff7e3c99cffffffff" +
"000000000000000018181818180018006c6c0000000000006c6cfe6cfe6c6c00183e603c067c18000366acd8366acc00386c6876dcce7b001818300000000000" +
"070e1818180e0700e07018181870e00000663cff3c6600000018187e181800000000000000181830000000ff00000000000000000018180003060c183060c080" +
"3c666e7e76663c0018387818181818003c66060c18307e003c66061c06663c001c3c6cccfe0c0c007e607c0606663c001c30607c66663c007e06060c18181800" +
"3c66663c66663c003c66663e060c38000018180000181800001818000018183003060c180c0603000000ff00ff000000c06030183060c0003c66060c18001800" +
"7cc6ded6dec078003c66667e666666007c66667c66667c001e30606060301e00786c6666666c78007e60607860607e007e606078606060003c66606e66663e00" +
"6666667e666666003c18181818183c000606060606663c00c6ccd8f0d8ccc6006060606060607e00c6eefed6c6c6c600c6e6f6decec6c6003c66666666663c00" +
"7c66667c6060600078ccccccccdc7e007c66667c6c6666003c66703c0e663c007e181818181818006666666666663c00666666663c3c1800c6c6c6d6feeec600" +
"c3663c183c66c300c3663c1818181800fe0c183060c0fe003f30303030303f00c06030180c060301fc0c0c0c0c0cfc0010386cc60000000000000000000000ff" +
"18180c000000000000003c063e663e0060607c6666667c0000003c6060603c0006063e6666663e0000003c667e603c001c307c303030300000003e66663e063c" +
"60607c66666666001800181818180c000c000c0c0c0c0c786060666c786c66001818181818180c000000ecfed6c6c60000007c666666660000003c6666663c00" +
"00007c66667c606000003e66663e060600007c666060600000003c603c067c0030307c3030301c000000666666663e0000006666663c18000000c6c6d6fe6c00" +
"0000c66c386cc60000006666663c183000007e0c18307e000f19187018190f001818181818181818f098180e1898f000729c0000000000000f3cf0c30f3cf000" +
"cfe7c399819999fff3e7c399819999ffe799c399819999ff8e71c399819999ff99ffc399819999ffe7dbc399819999ffe0c3c390833330ffe1cf9f9fcfe1f3e7" +
"cfe7819f879f81fff3e7819f879f81ffe799819f879f81ff99ff819f879f81ffcfe7c3e7e7e7c3fff3e7c3e7e7e7c3ffe799c3e7e7e7c3ff99ffc3e7e7e7c3ff" +
"87939909999387ff8e311909213139ffcfe7c3999999c3fff3e7c3999999c3ffe799c3999999c3ff8e71c3999999c3ff3cc399999999c3ffff3993c79339ffff" +
"c0999181899903ffcfe799999999c3fff3e799999999c3ffe7db99999999c3ff99ff99999999c3fff9f73c99c3e7e7ff3f3f0339033f3fffc39999939999939f" +
"ffffffffffffff001800181818181800000c3e6c3e0c00001c36307830307e00423c663c42000000c3663c183c18180018181800181818003c603c663c063c00" +
"66660000000000007e819db19d817e001c24443c007e0000003366cc66330000ff03000000000000000000ff000000007e81b9a5b9a5817eff00000000000000" +
"3c663c000000000018187e1818007e00780c18307c000000780c180c7800000018306000000000000000666666667f603e7a7a3a0a0a0a000018180000000000" +
"0000000000001830307030303000000038444438007c000000cc663366cc000040c64c583266cf0240c64c583e62c40ec023662cda366fc21800183060663c00" +
"30183c667e6666000c183c667e66660018663c667e666600718e3c667e66660066003c667e66660018243c667e6666001f3c3c6f7ccccf001e306060301e0c18" +
"30187e6078607e000c187e6078607e0018667e6078607e0066007e6078607e0030183c1818183c000c183c1818183c0018663c1818183c0066003c1818183c00" +
"786c66f6666c780071cee6f6decec60030183c6666663c000c183c6666663c0018663c6666663c00718e3c6666663c00c33c666666663c0000c66c386cc60000" +
"3f666e7e7666fc003018666666663c000c18666666663c001824666666663c006600666666663c000608c3663c181800c0c0fcc6fcc0c0003c66666c66666c60" +
"30183c063e663e000c183c063e663e0018663c063e663e00718e3c063e663e0066003c063e663e0018243c063e663e0000007e1b7fd8770000003c6060603c18" +
"30183c667e603c000c183c667e603c0018663c667e603c0066003c667e603c003018001818180c000c18001818180c001866001818180c000066001818180c00" +
"60fc183c66663c00718e007c666666003018003c66663c000c18003c66663c001866003c66663c00718e003c66663c000066003c66663c000018007e00180000" +
"00027cced6e67c803018006666663e000c18006666663e001866006666663e000066006666663e000c180066663c183060607c66667c606000660066663c1830",
)
/** MicroKnight (Amiga) */
val MICROKNIGHT: RomFont = RomFont(
h8 =
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"000000000000000018181818180018006c6c2400000000006c6cfe6cfe6c6c00107cd07c16167c1060967c18306cd20c70d870f6dcd87c061818081000000000" +
"183060606030180030180c0c0c183000006c38fe386c00000018187e1818000000000000181808100000007c00000000000000000018180000060c183060c000" +
"0078ccdef6e67c001818381818187e007c063c60c0c0fe003c061c0646c67c001818306cccfe0c00f8c0fc0646cc780070c0fcc6c6cc7800fe060c1818181800" +
"78cc7cc6c6cc780078ccc6c67e061c0000181800001818000018180000180810001830603018000000007c007c0000000030180c183000007cc6063c30003000" +
"386cdef6dec0663c78ccc6fec6c6c600f8ccfcc6c6ccf80078ccc0c0c0c67c00f8ccc6c6c6c6fc00fec0fcc0c0c0fe00fec0fcc0c0c0c0003860c0cec6c67e06" +
"c6c6c6fec6c6c6007e18181818187e000e060606c6c67c00c6ccd8f0d8ccc600c0c0c0c0c0c0fe00c6eefed6c6c6c600c6e6f6decec6c60078ccc6c6c6c67c00" +
"f8ccc6c6fcc0c00078ccc6c6c6d67c0cf8ccc6c6fcd8cc0678c07c0646c67c007e18181818181800c6c6c6c6c6c67c00c6c6c66c6c383800c6c6c6d6feeec600" +
"c66c38386cc6c600c6c6c67c0c0c0c00fe0c183060c0fe00383030303030380000c06030180c0600381818181818380010386c000000000000000000000000fe" +
"1818100800000000003c067ec6c67e00c0f8ccc6c6c6fc000078ccc0c0c67c00063e66c6c6c67e000078ccfcc0c67c00386c607860606060007ec6c6c67e067c" +
"c0f8ccc6c6c6c6001800381818187e000c001c0c0c0c4c38c0ccd8f0d8ccc6003818181818187e0000c4eefed6c6c60000f8ccc6c6c6c6000078ccc6c6c67c00" +
"00f8ccc6c6c6fcc0003e66c6c6c67e0600fcc6c0c0c0c0000078c07c06c67c00307c303030321c0000c6c6c6c6c67e0000c6c66c6c38380000c6d6fe7c6c4400" +
"00c66c38386cc60000c6c6c6c67e067c00fe0c183060fe000c18183018180c0018181818181818183018180c18183000729c0000000000003870e0c183070e1c" +
"fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00" +
"fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00" +
"fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00" +
"fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00fec6c6c6c6c6fe00" +
"000000000000000018001818181818003078ccc0c0c67c30386c60f86060fe0000c67cc6c67cc600c6c6c67c0c3e0c00181818001818180078c07cc6c67c063c" +
"6c000000000000003c4299a1a199423c007ec6c67e007c0000366cd86c3600007c0c0000000000000000007c000000003c42b9a5b9a5423c7c00000000000000" +
"386c6c380000000000107c10007c000070183060780000007018301870000000183060000000000000c6c6c6c6c6fcc0007ef474141414000000181800000000" +
"00000000000018303070303078000000007cc6c67c007c0000d86c366cd8000060e66c7a366fcf0360e66c783e63ce1fe0366c3af66fcf033000303c06c67c00" +
"300878ccfec6c600182078ccfec6c60030cc78ccfec6c600729c78ccfec6c6006c0078ccfec6c60078cc78ccfec6c6003f6ccffccccccf0078ccc0c0c0c67c30" +
"3008fec0fcc0fe001820fec0fcc0fe001866fec0fcc0fe006c00fec0fcc0fe0030087e1818187e0018207e1818187e0018667e1818187e006c007e1818187e00" +
"f8ccc6e6c6c6fc00729ce6f6decec600300878ccc6c67c00182078ccc6c67c0030cc78ccc6c67c00729c78ccc6c67c006c0078ccc6c67c00007cd6ffdbc77e00" +
"78ccdef6e6c67c003008c6c6c6c67c001820c6c6c6c67c001866c6c6c6c67c006c00c6c6c6c67c001820c6c67c0c0c00c0f8ccc6fcc0c0c00078ccdcc6c6dcc0" +
"30083c067ec67e0018203c067ec67e0018663c067ec67e00729c3c067ec67e006c003c067ec67e003c663c067ec67e00007e1b7fd8d87f000078ccc0c0c67c30" +
"300878fcc0c67c00182078fcc0c67c0030cc78fcc0c67c006c0078fcc0c67c003008381818187e001820381818187e001866381818187e006c00381818187e00" +
"0c163e66c6c67e00729cf8ccc6c6c600300878ccc6c67c00182078ccc6c67c00186678ccc6c67c00729c78ccc6c67c006c0078ccc6c67c000018007e00180000" +
"0078ccdef6e67c003008c6c6c6c67e001820c6c6c6c67e001866c6c6c6c67e006c00c6c6c6c67e001820c6c6c67e067cc0c0f8ccc6fcc0c06c00c6c6c67e067c",
)
/** Topaz (Amiga, Kickstart 1's) */
val TOPAZ: RomFont = RomFont(
h8 =
"000000000000000083392129213f87ffc3999981999999ff83999983999983ffe1cf9f9f9fcfe1ff87939999999387ff819f9f879f9f81ff819f9f879f9f9fff" +
"c3999f919999c1ff99999981999999ffc3e7e7e7e7e7c3fff9f9f9f9f999c3ff9c99938793999cff9f9f9f9f9f9f81ff9c8880949c9c9cff9c8c8490989c9cff" +
"c39999999999c3ff839999839f9f9fffc39999999991c0ff83999983939999ffc3998fc3f199c3ff81e7e7e7e7e7e7ff999999999999c3ff9999999999c3e7ff" +
"9c9c9c9480889cff3c99c3e7c3993cff3c99c3e7e7e7e7ff80f9f3e7cf9f80ffc3cfcfcfcfcfc3ff3f9fcfe7f3f9fcffc3f3f3f3f3f3c3fff7e3c99cffffffff" +
"000000000000000018181818180018006c6c0000000000006c6cfe6cfe6c6c00183e603c067c18000066acd8366acc00386c6876dcce7b001818300000000000" +
"0c18303030180c0030180c0c0c18300000663cff3c6600000018187e1818000000000000001818300000007e00000000000000000018180003060c183060c000" +
"3c666e7e76663c0018387818181818003c66060c18307e003c66061c06663c001c3c6cccfe0c0c007e607c0606663c001c30607c66663c007e06060c18181800" +
"3c66663c66663c003c66663e060c380000181800001818000018180000181830000618601806000000007e007e00000000601806186000003c66060c18001800" +
"7cc6ded6dec078003c66667e666666007c66667c66667c001e30606060301e00786c6666666c78007e60607860607e007e606078606060003c66606e66663e00" +
"6666667e666666003c18181818183c000606060606663c00c6ccd8f0d8ccc6006060606060607e00c6eefed6c6c6c600c6e6f6decec6c6003c66666666663c00" +
"7c66667c6060600078ccccccccdc7e007c66667c6c6666003c66703c0e663c007e181818181818006666666666663c00666666663c3c1800c6c6c6d6feeec600" +
"c3663c183c66c300c3663c1818181800fe0c183060c0fe003c30303030303c00c06030180c0603003c0c0c0c0c0c3c0010386cc60000000000000000000000fe" +
"18180c000000000000003c063e663e0060607c6666667c0000003c6060603c0006063e6666663e0000003c667e603c001c307c303030300000003e66663e063c" +
"60607c66666666001800181818180c000c000c0c0c0c0c786060666c786c66001818181818180c000000ecfed6c6c60000007c666666660000003c6666663c00" +
"00007c66667c606000003e66663e060600007c666060600000003c603c067c0030307c3030301c000000666666663e0000006666663c18000000c6c6d6fe6c00" +
"0000c66c386cc60000006666663c183000007e0c18307e000e18187018180e0018181818181818007018180e18187000729c0000000000000f3cf0c30f3cf000" +
"cfe7c399819999fff3e7c399819999ffe799c399819999ff8e71c399819999ff99ffc399819999ffe7dbc399819999ffe0c3c390833330ffe1cf9f9fcfe1f3e7" +
"cfe7819f879f81fff3e7819f879f81ffe799819f879f81ff99ff819f879f81ffcfe7c3e7e7e7c3fff3e7c3e7e7e7c3ffe799c3e7e7e7c3ff99ffc3e7e7e7c3ff" +
"87939909999387ff8e311909213139ffcfe7c3999999c3fff3e7c3999999c3ffe799c3999999c3ff8e71c3999999c3ff3cc399999999c3ffff3993c79339ffff" +
"c0999181899903ffcfe799999999c3fff3e799999999c3ffe7db99999999c3ff99ff99999999c3fff9f73c99c3e7e7ff3f3f0339033f3fffc39999939999939f" +
"ffffffffffffff801800181818181800000c3e6c3e0c00001c36307830307e00423c663c42000000c3663c183c18180018181800181818003c603c663c063c00" +
"66660000000000007e819db19d817e001c24443c007e0000003366cc663300003e060000000000000000007e000000007e81b9a5b9a5817e7e00000000000000" +
"3c663c000000000018187e1818007e00780c18307c000000780c180c7800000018306000000000000000666666667f603e7a7a3a0a0a0a000000181800000000" +
"0000000000001830307030303000000038444438007c000000cc663366cc000040c64c583266cf0240c64c583e62c40ec023662cd93367011800183060663c00" +
"30183c667e6666000c183c667e66660018663c667e666600718e3c667e66660066003c667e66660018243c667e6666001f3c3c6f7ccccf001e306060301e0c18" +
"30187e6078607e000c187e6078607e0018667e6078607e0066007e6078607e0030183c1818183c000c183c1818183c0018663c1818183c0066003c1818183c00" +
"786c66f6666c780071cee6f6decec60030183c6666663c000c183c6666663c0018663c6666663c00718e3c6666663c00c33c666666663c0000c66c386cc60000" +
"3f666e7e7666fc003018666666663c000c18666666663c001824666666663c006600666666663c000608c3663c181800c0c0fcc6fcc0c0003c66666c66666c60" +
"30183c063e663e000c183c063e663e0018663c063e663e00718e3c063e663e0066003c063e663e0018243c063e663e0000007e1b7fd8770000003c6060603c18" +
"30183c667e603c000c183c667e603c0018663c667e603c0066003c667e603c003018001818180c000c18001818180c001866001818180c000066001818180c00" +
"60fc183c66663c00718e007c666666003018003c66663c000c18003c66663c001866003c66663c00718e003c66663c000066003c66663c000018007e00180000" +
"00027cced6e67c803018006666663e000c18006666663e001866006666663e000066006666663e000c180066663c183060607c66667c606000660066663c1830",
)
/** Prestel (the SAA5050's teletext characters, smoothed) */
val PRESTEL: RomFont = RomFont(
h16 =
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" +
"000000000000000000000000000000000000183c3c3c18181800181800000000006666662400000000000000000000000000386c646060f06060e6fc00000000" +
"18187cc6c2c07c060686c67c1818000000000000c2c60c183060c686000000000000386c6c3876dccccccc760000000000303030600000000000000000000000" +
"00000c18303030303030180c00000000000030180c0c0c0c0c0c1830000000000000000000663cff3c66000000000000000000000018187e1818000000000000" +
"0000000000000000001818183000000000000000000000fe0000000000000000000000000000000000001818000000000000000002060c183060c08000000000" +
"00003c66c3c3dbdbc3c3663c0000000000001838781818181818187e0000000000007cc6060c183060c0c6fe0000000000007cc606063c060606c67c00000000" +
"00000c1c3c6cccfe0c0c0c1e000000000000fec0c0c0fc060606c67c0000000000003860c0c0fcc6c6c6c67c000000000000fec606060c183030303000000000" +
"00007cc6c6c67cc6c6c6c67c0000000000007cc6c6c67e0606060c78000000000000000018180000001818000000000000000000181800000018183000000000" +
"000000060c18306030180c060000000000000000007e00007e000000000000000000006030180c060c1830600000000000007cc6c60c18181800181800000000" +
"0000007cc6c6dedededcc07c00000000000010386cc6c6fec6c6c6c6000000000000fc6666667c66666666fc0000000000003c66c2c0c0c0c0c2663c00000000" +
"0000f86c6666666666666cf8000000000000fe6662687868606266fe000000000000fe6662687868606060f00000000000003c66c2c0c0dec6c6663a00000000" +
"0000c6c6c6c6fec6c6c6c6c60000000000003c18181818181818183c0000000000001e0c0c0c0c0ccccccc78000000000000e666666c78786c6666e600000000" +
"0000f06060606060606266fe000000000000c3e7ffffdbc3c3c3c3c3000000000000c6e6f6fedecec6c6c6c60000000000007cc6c6c6c6c6c6c6c67c00000000" +
"0000fc6666667c60606060f00000000000007cc6c6c6c6c6c6d6de7c0c0e00000000fc6666667c6c666666e60000000000007cc6c660380c06c6c67c00000000" +
"0000ffdb991818181818183c000000000000c6c6c6c6c6c6c6c6c67c000000000000c3c3c3c3c3c3c3663c18000000000000c3c3c3c3c3dbdbff666600000000" +
"0000c3c3663c18183c66c3c3000000000000c3c3c3663c181818183c000000000000ffc3860c183060c1c3ff0000000000000000003060fe6030000000000000" +
"00c0c0c2c6cc183060ce9b060c1f00000000000000180cfe0c180000000000000000183c7e18181818181818000000000000006c6cfe6c6c6cfe6c6c00000000" +
"00000000000000ff00000000000000000000000000780c7ccccccc76000000000000e06060786c666666667c0000000000000000007cc6c0c0c0c67c00000000" +
"00001c0c0c3c6ccccccccc760000000000000000007cc6fec0c0c67c000000000000386c6460f060606060f000000000000000000076cccccccccc7c0ccc7800" +
"0000e060606c7666666666e60000000000001818003818181818183c0000000000000606000e06060606060666663c000000e06060666c78786c66e600000000" +
"00003818181818181818183c000000000000000000e6ffdbdbdbdbdb000000000000000000dc6666666666660000000000000000007cc6c6c6c6c67c00000000" +
"0000000000dc66666666667c6060f000000000000076cccccccccc7c0c0c1e000000000000dc7666606060f00000000000000000007cc660380cc67c00000000" +
"0000103030fc30303030361c000000000000000000cccccccccccc76000000000000000000c3c3c3c3663c18000000000000000000c3c3c3dbdbff6600000000" +
"0000000000c3663c183c66c3000000000000000000c6c6c6c6c6c67e060cf8000000000000fecc183060c6fe0000000000c0c0c2c6cc183066ce963e06060000" +
"0000666666666666666666660000000000e030e236ec183066ce963e0606000000000000100000fe000010000000000000fefefefefefefefefefefefe000000" +
"00000000000000000000000000000000f0f0f0f0f000000000000000000000000f0f0f0f0f0000000000000000000000ffffffffff0000000000000000000000" +
"0000000000f0f0f0f0f0f00000000000f0f0f0f0f0f0f0f0f0f0f000000000000f0f0f0f0ff0f0f0f0f0f00000000000fffffffffff0f0f0f0f0f00000000000" +
"00000000000f0f0f0f0f0f0000000000f0f0f0f0f00f0f0f0f0f0f00000000000f0f0f0f0f0f0f0f0f0f0f0000000000ffffffffff0f0f0f0f0f0f0000000000" +
"0000000000ffffffffffff0000000000f0f0f0f0f0ffffffffffff00000000000f0f0f0f0fffffffffffff0000000000ffffffffffffffffffffff0000000000" +
"0000000000000000000000f0f0f0f0f0f0f0f0f0f0000000000000f0f0f0f0f00f0f0f0f0f000000000000f0f0f0f0f0ffffffffff000000000000f0f0f0f0f0" +
"0000000000f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f00f0f0f0f0ff0f0f0f0f0f0f0f0f0f0f0fffffffffff0f0f0f0f0f0f0f0f0f0f0" +
"00000000000f0f0f0f0f0ff0f0f0f0f0f0f0f0f0f00f0f0f0f0f0ff0f0f0f0f00f0f0f0f0f0f0f0f0f0f0ff0f0f0f0f0ffffffffff0f0f0f0f0f0ff0f0f0f0f0" +
"0000000000fffffffffffff0f0f0f0f0f0f0f0f0f0fffffffffffff0f0f0f0f00f0f0f0f0ffffffffffffff0f0f0f0f0fffffffffffffffffffffff0f0f0f0f0" +
"00000000000000000000000f0f0f0f0ff0f0f0f0f00000000000000f0f0f0f0f0f0f0f0f0f0000000000000f0f0f0f0fffffffffff0000000000000f0f0f0f0f" +
"0000000000f0f0f0f0f0f00f0f0f0f0ff0f0f0f0f0f0f0f0f0f0f00f0f0f0f0f0f0f0f0f0ff0f0f0f0f0f00f0f0f0f0ffffffffffff0f0f0f0f0f00f0f0f0f0f" +
"00000000000f0f0f0f0f0f0f0f0f0f0ff0f0f0f0f00f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0fffffffffff0f0f0f0f0f0f0f0f0f0f0f" +
"0000000000ffffffffffff0f0f0f0f0ff0f0f0f0f0ffffffffffff0f0f0f0f0f0f0f0f0f0fffffffffffff0f0f0f0f0fffffffffffffffffffffff0f0f0f0f0f" +
"0000000000000000000000fffffffffff0f0f0f0f0000000000000ffffffffff0f0f0f0f0f000000000000ffffffffffffffffffff000000000000ffffffffff" +
"0000000000f0f0f0f0f0f0fffffffffff0f0f0f0f0f0f0f0f0f0f0ffffffffff0f0f0f0f0ff0f0f0f0f0f0fffffffffffffffffffff0f0f0f0f0f0ffffffffff" +
"00000000000f0f0f0f0f0ffffffffffff0f0f0f0f00f0f0f0f0f0fffffffffff0f0f0f0f0f0f0f0f0f0f0fffffffffffffffffffff0f0f0f0f0f0fffffffffff" +
"0000000000fffffffffffffffffffffff0f0f0f0f0ffffffffffffffffffffff0f0f0f0f0fffffffffffffffffffffffffffffffffffffffffffffffffffffff" +
"00000000000000000000000000000000707070700000000000000000000000000707070700000000000000000000000077777777000000000000000000000000" +
"00000000007070707070000000000000707070700070707070700000000000000707070700707070707000000000000077777777007070707070000000000000" +
"00000000000707070707000000000000707070700007070707070000000000000707070700070707070700000000000077777777000707070707000000000000" +
"00000000007777777777000000000000707070700077777777770000000000000707070700777777777700000000000077777777007777777777000000000000" +
"00000000000000000000007070707000707070700000000000000070707070000707070700000000000000707070700077777777000000000000007070707000" +
"00000000007070707070007070707000707070700070707070700070707070000707070700707070707000707070700077777777007070707070007070707000" +
"00000000000707070707007070707000707070700007070707070070707070000707070700070707070700707070700077777777000707070707007070707000" +
"00000000007777777777007070707000707070700077777777770070707070000707070700777777777700707070700077777777007777777777007070707000" +
"00000000000000000000000707070700707070700000000000000007070707000707070700000000000000070707070077777777000000000000000707070700" +
"00000000007070707070000707070700707070700070707070700007070707000707070700707070707000070707070077777777007070707070000707070700" +
"00000000000707070707000707070700707070700007070707070007070707000707070700070707070700070707070077777777000707070707000707070700" +
"00000000007777777777000707070700707070700077777777770007070707000707070700777777777700070707070077777777007777777777000707070700" +
"00000000000000000000007777777700707070700000000000000077777777000707070700000000000000777777770077777777000000000000007777777700" +
"00000000007070707070007777777700707070700070707070700077777777000707070700707070707000777777770077777777007070707070007777777700" +
"00000000000707070707007777777700707070700007070707070077777777000707070700070707070700777777770077777777000707070707007777777700" +
"00000000007777777777007777777700707070700077777777770077777777000707070700777777777700777777770077777777007777777777007777777700",
)
/** Atari ST (8x8 its colour modes', 8x16 its mono mode's) */
val ATARI_ST: RomFont = RomFont(
h8 =
"0000000000000000183c66c3e724243c3c2424e7c3663c18181cf68383f61c1818386fc1c16f38183c99c3e7c3993c00fffffefcf9f3e700e7c3993c99c3e700" +
"0103068cd87020007ec3d3d3dbc3c37e183c3c3c7e103810181c16101070f060f0c0fed8de181800f0c0dfdbff1e1b000505050d0d197971a0a0a0b0b0989e8e" +
"7cc6c600c6c67c0006060600060606007c06067cc0c07c007c06067c06067c00c6c6c67c060606007cc0c07c06067c007cc0c07cc6c67c007c06060006060600" +
"7cc6c67cc6c67c007cc6c67c06067c0000003c067e663c00786078607e181e00070f1f1818101e17f0f8ec0404043c54110b0d06072e39380428d828d010e000" +
"000000000000000018181818180018006666660000000000006cfe6c6cfe6c00183e603c067c180000666c1830664600386c3870decc76001818180000000000" +
"0e1c1818181c0e00703818181838700000663cff3c6600000018187e1818000000000000003030600000007e00000000000000000018180002060c1830604000" +
"3c666e7666663c001838181818187e003c66060c18307e007e0c180c06663c000c1c3c6c7e0c0c007e607c0606663c003c60607c66663c007e060c1830303000" +
"3c66663c66663c003c66663e060c380000181800181800000018180018183000060c1830180c060000007e00007e00006030180c183060003c66060c18001800" +
"3c666e6a6e603e00183c66667e6666007c66667c66667c003c66606060663c00786c6666666c78007e60607c60607e007e60607c606060003e60606e66663e00" +
"6666667e666666003c18181818183c000606060606663c00666c7870786c66006060606060607e00c6eefed6c6c6c60066767e7e6e6666003c66666666663c00" +
"7c66667c606060003c666666766c36007c66667c6c6666003c66603c06663c007e181818181818006666666666663e0066666666663c1800c6c6c6d6feeec600" +
"66663c183c6666006666663c181818007e060c1830607e001e18181818181e00406030180c060200781818181818780010386cc600000000000000000000fe00" +
"00c060300000000000003c063e663e0060607c6666667c0000003c6060603c0006063e6666663e0000003c667e603c001c307c303030300000003e66663e067c" +
"60607c66666666001800381818183c0018001818181818706060666c786c66003818181818183c000000ecfed6c6c60000007c666666660000003c6666663c00" +
"00007c6666667c6000003e6666663e0600007c666060600000003e603c067c0000187e1818180e000000666666663e0000006666663c18000000c6c6d67c6c00" +
"0000663c183c660000006666663e067c00007e0c18307e000e18183018180e0018181818181818187018180c181870000060f29e0c0000000018183434627e00" +
"003c6660663c08386600006666663e000c18003c7e603c001866003c067e3e0066003c063e663e003018003c067e3e001818003c067e3e0000003c60603c0818" +
"1866003c7e603c0066003c667e603c003018003c7e603c006600003818183c001866003818183c006030003818183c006600183c667e66001800183c667e6600" +
"0c187e607c607e0000007e1b7fd87e003f78d8def8d8df001866003c66663c006600003c66663c003018003c66663c001866006666663e003018006666663e00" +
"66006666663e067c66003c6666663c006600666666663e0018183c60603c18181c3a307c30307e0066663c183c1818001c36667c66667c601e307c3030306000" +
"0c18003c067e3e000c18003818183c000c18003c66663c000c18006666663e003458007c6666660034580066766e6600003c063e663e003c003c6666663c003c" +
"001800183060663c0000003e303030000000007c0c0c0c00c6ccd8366bc3860fc6ccd8366ed69f0600180018181818181b366cd86c361b00d86c361b366cd800" +
"3458003c067e3e003458003c66663c00023c666e76663c4000023c6e76663c4000007edbdfd87e007fd8d8ded8d87f00301800183c667e66345800183c667e66" +
"34583c666666663c66000000000000000c1830000000000000103810101000007acacaca7a0a0a0a7ec3bdb1b1bdc37e7ec3bda5b9adc37ef15b5f5551000000" +
"6600e66666f6061cf666666666f6061c0066763c6e660000007c0c0c0c7e0000001e060e1e360000007e0c0c0c0c0000007c066666660000001c0c0c0c0c0000" +
"001e0c0606060000007e363636360000606e6666667e0000003c0c0c00000000003e0606063e0000607e0606060e0000006c3e66666e0000001c0c0c0c3c0000" +
"003e3636361c000000363636367e0000007e6676067e00000066663c0e7e0000003e06363634300000780c0c0c0c000000d6d6d6d6fe0000007c6c6c6cec0000" +
"001c0c0c0c0c0c00003e06060606060000fe6666667e0000007e6676060606000036361c0c0c0c000e1b3c66663cd8700010386cc682000066f79999ef660000" +
"000076dcc8dc76001c36667c66667c6000fe6662606060f80000fe6c6c6c6c48fe6630183066fe00001e386c6c6c380000006c6c6c6c7fc000007e1818181810" +
"3c183c66663c183c003c667e66663c00003c6666662466001c3678dcccec78000c1838545438306000107cd6d6d67c103e70607e60703e003c66666666666600" +
"007e007e007e000018187e1818007e0030180c1830007e000c1830180c007e00000e1b1b1818181818181818d8d870001818007e0018180000324c00324c0000" +
"386c380000000000387c380000000000000000001818000000000f18d8703000386c6c6c6c000000386c18307c000000780c380c7800000000fe000000000000",
h16 =
"00000000000000000000000000000000000000183c66c381e72424243c0000000000003c242424e781c3663c18000000000030382ce68383e62c383000000000" +
"00000c1c3467c1c167341c0c0000000000007c38ba92d6c6d692ba387c0000000000fefefefcfcf8faf2f6e6ee0000000000eec6d692ba38ba92d6c6ee000000" +
"00000101030306068c8cd858703020000000003c66c391919d81c3663c00000000000000183c3c3c3c3c7eff103810000000080e0f09080878f8700000000000" +
"00007840704040001e101c101000000000003840404038001c121c141200000000050505050d0d1d397971716141000000a0a0a0a0b0b0b89c9e8e8e86820000" +
"007cbac6c6c6820082c6c6c6ba7c000000000206060602000206060602000000007c3a0606063a7cb8c0c0c0b87c0000007c3a0606063a7c3a0606063a7c0000" +
"000082c6c6c6ba7c3a06060602000000007cb8c0c0c0b87c3a0606063a7c0000007cb8c0c0c0b87cbac6c6c6ba7c0000007cbac6c6c682000206060602000000" +
"007cbac6c6c6ba7cbac6c6c6ba7c0000007cbac6c6c6ba7c3a0606063a7c000000000000007c7e06067e66667e3c000000007840704078000e100c021c000000" +
"0000000000000000070f1f1818101e170000000000000000f0f8ec0404043c54110b0d06072e393800000000000000000428d828d010e0000000000000000000" +
"00000000000000000000000000000000000018181818181818180000181800000000666666666666000000000000000000006666ffff6666ffff666600000000" +
"18183e7e60607c3e06067e7c18180000000066666c0c18183036666600000000387c6c6c38387070dedeccccfe76000000001818181818180000000000000000" +
"0000060c1c1818181818181c0c06000000006030381818181818183830600000000066663c3cffff3c3c6666000000000000001818187e7e1818180000000000" +
"000000000000000000001818181830200000000000007e7e00000000000000000000000000000000000018181818000000000606060c0c181830306060600000" +
"00003c7e6666666e766666667e3c00000000181838381818181818187e7e000000003c7e66660c0c181830307e7e000000007e7e0c0c18180c0c66667e3c0000" +
"00000c0c1c1c3c3c6c6c7e7e0c0c000000007e7e60607c7e060606667e3c000000001c3c7060607c7e6666667e3c000000007e7e06060c0c1818303030300000" +
"00003c7e66663c3c666666667e3c000000003c7e66667e3e0606060e3c3800000000000018181818000018181818000000000000181818180000181818183020" +
"0000000e1c3870e070381c0e00000000000000007e7e00007e7e000000000000000000e070381c0e1c3870e00000000000003c7e66660c0c1818180018180000" +
"0000387ce6c2dad6d6dcc0e27e3c00000000183c7e6666667e7e66666666000000007c7e66667e7c666666667e7c000000003c7e66666060606066667e3c0000" +
"0000787c6e6666666666666e7c78000000007e7e60607c7c606060607e7e000000007e7e60607c7c606060606060000000003e7e60606e6e666666667e3c0000" +
"0000666666667e7e666666666666000000007e7e18181818181818187e7e00000000060606060606060666667e3c00000000ccccd8d8f0f0d8d8ccccc6c60000" +
"0000606060606060606060607e7e00000000c6c6eeeefed6d6c6c6c6c6c60000000066666676767e7e6e6e666666000000003c7e66666666666666667e3c0000" +
"00007c7e666666667e7c60606060000000003c7e666666666666666a7c3600000000f8fcccccccfcf8d8ccccc6c6000000003e7e606070381c0e06067e7c0000" +
"00007e7e1818181818181818181800000000666666666666666666667e3c0000000066666666666666663c3c181800000000c6c6c6c6c6d6d6fefeeec6820000" +
"00006666663c3c18183c3c66666600000000666666663c3c181818181818000000007e7e0c0c1818303060607e7e000000001e1e18181818181818181e1e0000" +
"0000606060303018180c0c06060600000000787818181818181818187878000000101038386c6cc6c600000000000000000000000000000000000000fefe0000" +
"406070381c0c0400000000000000000000000000003c3e063e7e66667e3e000000006060607c7e66666666667e7c000000000000003c7c60606060607e3e0000" +
"00000606063e7e66666666667e3e000000000000003c7e66667e60607e3e000000000e1e18187e7e181818181818000000000000003e7e666666667e3e067e7c" +
"00006060607c7e6666666666666600000000181800383818181818183c3c000000000c0c000c0c0c0c0c0c0c0c0c7c780000c0c0c0ccdcf8f0f8d8cccec60000" +
"0000383818181818181818183c3c000000000000006cfefed6d6d6c6c6c6000000000000003c7e66666666666666000000000000003c7e66666666667e3c0000" +
"00000000007c7e66666666667e7c606000000000003e7e66666666667e3e060600000000007c7e66606060606060000000000000003e7e60703c0e067e7c0000" +
"00000018187e7e18181818181e0e00000000000000666666666666667e3e0000000000000066666666663c3c181800000000000000c6c6d6d6fefeeec6820000" +
"000000000066663c3c183c3c6666000000000000006666666666667e3e067e7c00000000007e7e0c181830307e7e0000000e1818181838f0f038181818180e00" +
"0018181818181818181818181818180000e030303030381e1e3830303030e000000000000062f2be9c00000000000000000000000018183c246642c3ff000000" +
"00003c7e66666060606066667e3c0c380000666600666666666666667e3e000000060c18003c7e66667e60607e3e000000183c66003c3e063e7e66667e3e0000" +
"00006666003c3e063e7e66667e3e000000603018003c3e063e7e66667e3e0000001c361c003c3e063e7e66667e3e000000000000003c7c60606060607e3e0c38" +
"00183c66003c7e66667e60607e3e000000006666003c7e66667e60607e3e000000603018003c7e66667e60607e3e00000000666600383818181818183c3c0000" +
"00183c6600383818181818183c3c00000060301800383818181818183c3c0000006666183c7e66667e7e6666666600003c663c183c7e66667e7e666666660000" +
"060c187e7e60607c7c6060607e7e00000000000000767f1b7bffd8d8ff7f0000003e7ef8d8d8dedef8f8d8d8dede000000183c66003c7e66666666667e3c0000" +
"00006666003c7e66666666667e3c000000603018003c7e66666666667e3c000000183c6600666666666666667e3e00000060301800666666666666667e3e0000" +
"00006666006666666666667e3e067e7c006666003c7e6666666666667e3c00000066660066666666666666667e3c0000000018183c7e666060667e3c18180000" +
"000e1e3830303030fe3030307fff00000000666666667e3c187e1818181800000000183c6666667c6666667c6c60400000000e1e1818187e1818181818706000" +
"00060c18003c3e063e7e66667e3e000000060c1800383818181818183c3c000000060c18003c7e66666666667e3c000000060c1800666666666666667e3e0000" +
"00327a4c003c7e66666666666666000000327a4c006666767e7e6e6666660000000000003c3e063e7e66667e3e007e00000000003c7e66666666667e3c007e00" +
"0000181800181818303066667e3c00000000000000000000007e7e60606000000000000000000000007e7e06060600000060202023262c18306ed3060c181f00" +
"0060202023262c183266ce1a323f0200000000181800181818181818181818000000000000001a366cd86c361a000000000000000000b0d86c366cd8b0000000" +
"00327a4c003c3e063e7e66667e3e000000327a4c003c7e66666666667e3c000000013d7e66666e6e767666667ebc800000000000013d7e666e7e76667ebc8000" +
"00000000007effdbdbdfd8d8ff7f000000007efed8d8deded8d8d8d8fe7e0000603018003c7e66667e7e666666660000327a4c003c7e66667e7e666666660000" +
"327a4c003c7e6666666666667e3c00000066660000000000000000000000000000060c1800000000000000000000000000107c10101010100000000000000000" +
"00007acacacacaca7a0a0a0a0a0a000000007cc682baa2a2a2ba82c67c00000000007cc682baaab2baaa82c67c000000f15b5f55510000000000000000000000" +
"00666600e666666666666666f60e3c38f6f6666666666666666666f6f60e7c7800006676763e3c3c6e6e66620000000000007c7c0c0c0c0c0c0c7e7e00000000" +
"00001e1e06060e1e363636360000000000007e7e0c0c0c0c0c0c0c0c0000000000007e7e06666666666666660000000000003838181818181818181800000000" +
"00001e1e040c0c0c0c0c0c040000000000007e7e66666666666666660000000000006e6e6666666666667e7e0000000000003c3c0c0c00000000000000000000" +
"00003c3e0606060606063e3c0000000060607e7e0606060e1c3030300000000000006c6e3e366666666e6e6e0000000000001c1c0c0c0c0c0c0c7c7c00000000" +
"0000fefefec6c6c6c6c6fe7c00000000000036363636363636367e7e0000000000007e7e66667676067e7e7e0000000000006e6e66363e181c0e7e7e00000000" +
"00003e3e3e060636363636363030300000007c7e0606060606060606000000000000d6d6d6d6f6f6c6c6fefe0000000000007e7e666666666666e6e600000000" +
"0000383818181818181818181818000000007e7e06060606060606060606000000007e3e3636363636363e3e0000000000007e7e666676760606060606060000" +
"00006e6e66763e0e060606060606000000001c3632183c66663c184c6c3800000000000000101038386c6cc6c60000000000000066f79999ef66000000000000" +
"0000000062f6dc8888dcf662000000000000183c6666667c6666667c6c6040000000fe7e626060606060606060f0000000000000027efca82828282800000000" +
"0000fefe6030180c0c183060fefe0000000000001e386cc6c6c6c66c3800000000000000006666666666667f5dc08000000000027efc90303030302000000000" +
"007c10107cc682828282c67c10107c0000003c7e6642427e4242667e3c0000000000386cc6c6c6c66c28aaee6c000000001e3e2030183c664242667e3c000000" +
"000e1e107cd692929292d67c10f0e000000010107cd692929292d67c1010000000003e7ee0c0c0fcfcc0c0e07e3e000000007cfec6c6c6c6c6c6c6c6c6c60000" +
"000000007e7e007e7e007e7e000000000000001818187e7e181818007e7e000000006070381c0e1c387060007e7e00000000060e1c3870381c0e06007e7e0000" +
"00000e191b1b1818181818181818181818181818181818181818d8d8987000000000001818007e7e0018180000000000000000023e7c40023e7c400000000000" +
"00386c446c380000000000000000000000387c7c7c3800000000000000000000000000000000000000183c3c1800000000000000001f10d0d050702000000000" +
"00003078484848480000000000000000000030481830607800000000000000000000781830184830000000000000000000fefe00000000000000000000000000",
)
/** RIPterm's 8x8 (code page 437) */
val RIPTERM: RomFont = RomFont(
h8 =
"00000000000000007e81a581bd99817e7effdbffc3e7ff7e44eefefe7c38100010387cfe7c381000183cdbffdb183c00183c7eff7e183c000000183c3c180000" +
"ffffe7c3c3e7ffff003c4242423c0000ffc3bdbdbdc3ffff0f070f7dcccccc783c6666663c187e183e323e3030f0e0003f637f636367e6c0dbdb3ce7e73cdbdb" +
"c0f0f8fef8f0c000061e3efe3e1e06003078fc3030fc78306c6c6c6c6c006c007fdbdb7b1b1b1b003e63386c6c38cc78000000007e7e7e00183c7e187e3c18ff" +
"183c7e181818180030303030fc78300000180cfe0c180000002060fe602000000000c0c0fe000000002442ff422400000010387cfefe000000fefe7c38100000" +
"0000000000000000307878783000300066666600000000006c6cfe6cfe6c6c00307cc0780cf8300000c6cc183066c600386c3870decc76003030600000000000" +
"0c18303030180c0030180c0c0c183000006c38fe386c00000018187e181800000000000000181830000000fc000000000000000000303000060c183060c08000" +
"7cc6c6c6c6c67c00307030303030fc007cc6061c70c6fe007cc6061c06c67c001c3c6cccfe0c0c00fec0fc0606c67c003c60c0fcc6c67c00fec60c1830303000" +
"7cc6c67cc6c67c0078cccc7c0c18700000303000003030000030300000303060183060c0603018000000fc0000fc000030180c060c1830003c66060c18001800" +
"7cc6dededec07c00386cc6c6fec6c600fcc6c6fcc6c6fc007cc6c6c0c0c67c00f8ccc6c6c6ccf800fec0c0fcc0c0fe00fec0c0fcc0c0c0007cc6c0cec6c67e00" +
"c6c6c6fec6c6c60078303030303078001e0c0c0ccccc7800c6ccd8f0d8ccc600c0c0c0c0c0c0fe00c6eefed6c6c6c600c6e6f6decec6c6007cc6c6c6c6c67c00" +
"fcc6c6fcc0c0c0007cc6c6c6c6c67c06fcc6c6fcc6c6c60078cc603018cc7800fc30303030303000c6c6c6c6c6c67c00c6c6c6c6c66c3800c6c6c6d6feeec600" +
"c6c66c386cc6c600c3c3663c18181800fe0c183060c0fe003c30303030303c00c06030180c0603003c0c0c0c0c0c3c0000386cc60000000000000000000000ff" +
"303018000000000000007c067ec67e00c0c0fcc6c6e6dc0000007cc6c0c67c0006067ec6c6ce760000007cc6fec07e001e307c303030300000007ec6ce76067c" +
"c0c0fcc6c6c6c6001800381818183c0018003818181818f0c0c0ccd8f0d8cc003818181818183c000000ccfed6c6c6000000fcc6c6c6c60000007cc6c6c67c00" +
"0000fcc6c6e6dcc000007ec6c6ce760600006e706060600000007cc07c06fc0030307c3030301c000000c6c6c6c67e000000c6c6c66c38000000c6c6d6fe6c00" +
"0000c66c386cc6000000c6c6ce76067c0000fc183060fc000e18187018180e0030303000303030007018180e181870000076dc000000000010386cc6c6c6fe00" +
"7cc6c0c67c0c067c00cc00cccccc7e001c0078ccfcc078007ec33c063e663f00cc00780c7ccc7e00e000780c7ccc7e003030780c7ccc760000007cc6c0780c38" +
"7e813c667e603c00cc0078ccfcc07800e00078ccfcc07800cc007030303078007c82381818183c00e000703030307800c6386cc6fec6c60030300078ccfccc00" +
"1c00fc607860fc0000007f0c7fcc7f003e6cccfeccccce0078840078cccc780000cc0078cccc780000e00078cccc7800788400cccccc760000e000cccccc7600" +
"00cc00cccc7c0cf8c3183c66663c1800cc00cccccccc780018187ec0c07e1818386c64f060e6fc00cccc78fc30fc3030f8ccccfac6cfc6c30e1b183c1818d870" +
"1c00780c7ccc76003800703030307800001c0078cccc7800001c00cccccc760000f800b8cccccc00fc00ccecfcdccc003c6c6c3e007e0000386c6c38007c0000" +
"30003060c0cc7800000000fcc0c00000000000fc0c0c0000c6ccd8366bc2840fc3c6ccdb376dcf03180018183c3c1800003366cc6633000000cc663366cc0000" +
"228822882288228855aa55aa55aa55aadb77dbeedb77dbee181818181818181818181818f81818181818f818f818181836363636f636363600000000fe363636" +
"0000f818f81818183636f606f636363636363636363636360000fe06f63636363636f606fe00000036363636fe0000001818f818f800000000000000f8181818" +
"181818181f00000018181818ff00000000000000ff181818181818181f18181800000000ff00000018181818ff18181818181f181f1818183636363637363636" +
"363637303f00000000003f30373636363636f700ff0000000000ff00f736363636363730373636360000ff00ff0000003636f700f73636361818ff00ff000000" +
"36363636ff0000000000ff00ff18181800000000ff363636363636363f00000018181f181f00000000001f181f181818000000003f36363636363636ff363636" +
"1818ff18ff18181818181818f8000000000000001f181818ffffffffffffffff00000000fffffffff0f0f0f0f0f0f0f00f0f0f0f0f0f0f0fffffffff00000000" +
"000076dcc8dc76000078ccf8ccf8c0c000fcccc0c0c0c00000fe6c6c6c6c6c00fccc603060ccfc0000007ed8d8d8700000666666667c60c00076dc1818181800" +
"fc3078cccc7830fc386cc6fec66c3800386cc6c66c6cee001c30187ccccc780000007edbdb7e0000060c7edbdb7e60c03860c0f8c06038003c66666666666600" +
"00fc00fc00fc00003030fc303000fc00603018306000fc00183060301800fc000e1b1b18181818181818181818d8d8701818007e001818000076dc0076dc0000" +
"386c6c3800000000000000181800000000000000180000000f0c0c0cec6c3c1c786c6c6c6c000000701830607800000000003c3c3c3c00000000000000000000",
)
/** SyncTERM's font numbers (CSI SP D's) and the fonts here */
val syncterm: Map<Int, RomFont> by lazy {
mapOf(
0 to VGA,
26 to VGA_THIN,
32 to C64_UPPER,
33 to C64_LOWER,
34 to C128_UPPER,
35 to C128_LOWER,
36 to ATARI,
37 to POT_NOODLE,
38 to MOSOUL,
39 to MICROKNIGHT_PLUS,
40 to TOPAZ_PLUS,
41 to MICROKNIGHT,
42 to TOPAZ,
43 to PRESTEL,
44 to ATARI_ST,
)
}
}
@@ -233,6 +233,7 @@ class TerminalEmulator(
if (v === field) return
field = v
interpreter.detach()
hostFont = null
interpreter = v.interpreter(this)
homeOnClear = v.homeOnClear
softReset()
@@ -270,8 +271,12 @@ class TerminalEmulator(
/** whether the remote's octets are read as they come, in the terminal's own set (a Commodore's), not the user's */
val readsOctets: Boolean get() = interpreter.readsOctets
/** the glyphs its cells are drawn with, a bitmap font the profile's machine had (null: the view's font) */
val glyphs: BitmapFont? get() = profile.glyphs
/** the glyphs its cells are drawn with: the font the host chose, else the profile's machine's (null: the view's font) */
val glyphs: BitmapFont? get() = hostFont ?: profile.glyphs
/** the font the host chose (CSI SP D) in place of the profile's; null: the profile's */
var hostFont: BitmapFont? = null
internal set
/** the soft characters the host loaded (DECDLD), their code points [SoftFont.BASE]'s; null for none */
var softGlyphs: BitmapFont? = null
@@ -841,6 +846,7 @@ class TerminalEmulator(
statusType = 0
statusLine.clear()
softGlyphs = null
hostFont = null
screen = main
for (l in main) { l.blank(Style.NORMAL) }
for (l in alt) { l.blank(Style.NORMAL) }
@@ -24,7 +24,7 @@ abstract class TerminalProfile {
/** ESC[2J homes the cursor, as ANSI.SYS did (BBS screens expect it) */
open val homeOnClear: Boolean get() = false
/** the bitmap glyphs its cells are drawn with (its machine's character ROM, as Unscii draws it); null: the view's font */
/** the bitmap glyphs its cells are drawn with (its machine's character ROM); null: the view's font */
open val glyphs: BitmapFont? get() = null
/** a capture's file extension, where its machine's files had their own (a Commodore's .seq); null: the app's */
@@ -228,8 +228,10 @@ open class AnsiBbsProfile : XtermProfile() {
override val term get() = "ansi"
override val telnetType get() = "ANSI"
override val charset: TermCharset? get() = TermCharset.CP437
/** a VGA's 8x16 code page 437 */
override val glyphs: BitmapFont? get() = LegacyCharsets.VGA
/** a VGA's 8x16 code page 437 (its ROM's) */
override val glyphs: BitmapFont? get() = MachineFonts.VGA
/** SyncTERM's number for [glyphs] (CSI SP D's), what font 0 of the four goes back to */
open val syncTermFont: Int get() = 0
/** its machine's sixteen colours (ARGB, ANSI's order), over the theme's; null: the theme's */
open val colors: IntArray? get() = null
@@ -239,7 +241,7 @@ open class AnsiBbsProfile : XtermProfile() {
/**
* An Amiga's BBS terminal (as NComm and Term are): ANSI in Latin-1, the
* Amiga's own set, drawn 8x8 as Topaz is (Unscii's glyphs), in colours
* Amiga's own set, in its Topaz font, in colours
* from the Amiga's 12-bit palette
*/
open class AmigaAnsiProfile : AnsiBbsProfile() {
@@ -249,8 +251,9 @@ open class AmigaAnsiProfile : AnsiBbsProfile() {
// (BBSes find ANSI by it)
override val telnetType get() = "ANSI"
override val charset: TermCharset? get() = TermCharset.LATIN1
/** 8x8, Topaz's size */
override val glyphs: BitmapFont? get() = LegacyCharsets.GLYPHS
/** Topaz, the Amiga's own 8x8 */
override val glyphs: BitmapFont? get() = MachineFonts.TOPAZ
override val syncTermFont get() = 42
override val colors: IntArray? get() = AMIGA
companion object {
@@ -91,6 +91,8 @@ open class ViewdataProfile : VideotexProfile() {
override val term get() = "viewdata"
override val telnetType get() = "VIEWDATA"
override val rows get() = 24
/** Prestel's teletext characters */
override val glyphs: BitmapFont? get() = MachineFonts.PRESTEL
override val keyBar: List<KeyBarPage> get() = listOf(KeyBars.VIEWDATA)
@@ -226,7 +228,7 @@ open class ViewdataInterpreter(t: TerminalEmulator, private val m: ViewdataProfi
companion object {
/** teletext's English set, 0x20-0x7f: £ for #, arrows, fractions, # for _, a dash, ‖, ÷ and a block */
private val G0 = IntArray(0x60) { 0x20 + it }.also {
internal val G0 = IntArray(0x60) { 0x20 + it }.also {
for ((c, u) in listOf(0x23 to '£', 0x5b to '←', 0x5c to '½', 0x5d to '→', 0x5e to '↑', 0x5f to '#',
0x60 to '—', 0x7b to '¼', 0x7c to '‖', 0x7d to '¾', 0x7e to '÷', 0x7f to '■')) it[c - 0x20] = u.code
}
@@ -0,0 +1,70 @@
// SPDX-License-Identifier: AGPL-3.0-only
// Copyright (C) 2026 Neo-Desktop
package org.dmodem.app.terminal
import kotlin.test.assertEquals
import kotlin.test.assertNull
import kotlin.test.assertSame
import kotlin.test.assertTrue
import kotlin.test.Test
class RomFontsTest {
/** [cp]'s glyph's rows in [f] */
private fun rows(f: BitmapFont?, cp: Int): List<Int> = (0 until f!!.height).map { f.row(cp, it) }
/** hex bytes as rows */
private fun hex(s: String): List<Int> = s.chunked(2).map { it.toInt(16) }
/** each machine's own glyph for a character it had */
@Test
fun machines() {
// (the VGA's A, the C64's A and a, the Atari's heart, Topaz's A halved back to 8x8)
assertEquals(hex("00001038" + "6cc6c6fe" + "c6c6c6c6" + "00000000"), rows(TerminalProfiles.ANSI_BBS.glyphs, 'A'.code))
assertEquals(hex("183c667e66666600"), rows(TerminalProfiles.C64.glyphs, 'A'.code))
assertEquals(hex("00003c063e663e00"), rows(TerminalProfiles.C64.glyphs, 'a'.code))
assertEquals(hex("00367f7f3e1c0800"), rows(TerminalProfiles.ATARI.glyphs, LegacyCharsets.ATARI_GRAPHICS[0]))
assertEquals(hex("3c66667e66666600"), rows(TerminalProfiles.AMIGA.glyphs, 'A'.code))
// (code page 437's high half, the C64's graphics, Latin-1's letters, the ST's Hebrew, Prestel's ½: all there)
for (b in 0x80..0xff) assertTrue(TerminalProfiles.ANSI_BBS.glyphs!!.has(Cp437.decode(b)))
for (b in 0xa0..0xff) assertTrue(TerminalProfiles.C64.glyphs!!.has(LegacyCharsets.C64_UPPER[b]))
for (b in 0xa0..0xff) assertTrue(TerminalProfiles.AMIGA.glyphs!!.has(b))
assertTrue(TerminalProfiles.ATARI_ST.glyphs!!.has('א'.code))
assertEquals(16, TerminalProfiles.VIEWDATA.glyphs!!.height)
assertTrue(TerminalProfiles.VIEWDATA.glyphs!!.has('½'.code))
assertEquals(8, TerminalProfiles.RIP.glyphs!!.height)
// (a character another model had, from Unscii's: the Atari's international set's)
assertTrue(TerminalProfiles.ATARI_INTL.glyphs!!.has(LegacyCharsets.ATARI_INTERNATIONAL[1]))
}
/** a ROM font asked for the other size: 8 rows doubled, 16 halved (both rows' pixels kept) */
@Test
fun sizes() {
val f = RomFont(h8 = "81".repeat(8 * 256))
assertEquals(List(16) { 0x81 }, f.glyph(0, 16).toList())
val g = RomFont(h16 = ("01" + "80").repeat(8 * 256))
assertEquals(List(8) { 0x81 }, g.glyph(5, 8).toList())
}
/** CSI 0 ; n SP D: SyncTERM's font n read as the session's octets, at the profile's height; its own number, RIS or a new profile back to the profile's */
@Test
fun selection() {
val t = TerminalEmulator(80, 25, 100, TerminalProfiles.ANSI_BBS) {}
t.decoder.charset = TermCharset.CP437
val vga = t.glyphs
t.appendText("\u001b[0;32 D")
// (the C64's A, doubled to the VGA's 16 rows)
assertEquals(hex("183c667e66666600").flatMap { listOf(it, it) }, rows(t.glyphs, 'A'.code))
t.appendText("\u001b[0;0 D")
assertSame(vga, t.glyphs)
t.appendText("\u001b[0;5 D")
assertSame(vga, t.glyphs)
t.appendText("\u001b[0;42 D")
assertEquals(16, t.glyphs!!.height)
t.appendText("\u001bc")
assertSame(vga, t.glyphs)
t.appendText("\u001b[0;36 D")
t.profile = TerminalProfiles.AMIGA
assertSame(TerminalProfiles.AMIGA.glyphs, t.glyphs)
assertNull(RomFonts.syncterm[1])
}
}
+171
View File
@@ -0,0 +1,171 @@
#!/usr/bin/env python3
# SPDX-License-Identifier: AGPL-3.0-only
# Copyright (C) 2026 Neo-Desktop
"""
Writes shared/.../terminal/RomFonts.kt: the machines' own character ROM
fonts (the IBM VGA's, the Commodore 64's and 128's, the Atari 8-bit's,
the Amiga's Topaz and the BBS scene's fonts for it, Prestel's, the
Atari ST's), as SyncTERM draws them, from Synchronet's ciolib
(src/conio/allfonts.c, LGPL-2.0-or-later).
python3 tools/gen_rom_fonts.py ALLFONTS_C
ALLFONTS_C is https://gitlab.synchro.net/main/sbbs/-/raw/master/src/conio/allfonts.c
(this was made from commit 7cf7f2fc, sha256 a725672f...). Each font is
kept at the sizes its machine had: 8x8 for the home computers (the
Amiga's, which SyncTERM keeps doubled to 8x16, halved back), 8x16 for
the VGA and Prestel, both for the ST (its colour modes' and its mono
mode's).
"""
import re
import sys
OUT = "shared/src/commonMain/kotlin/org/dmodem/app/terminal/RomFonts.kt"
# (the Kotlin name, SyncTERM's font number, the sizes kept, what it is)
FONTS = [
("VGA", 0, (16, 8), "IBM VGA, code page 437 (8x16; 8x8 the VGA's 50-line font)"),
("VGA_THIN", 26, (16,), "code page 437, SyncTERM's thin variant"),
("C64_UPPER", 32, (8,), "Commodore 64, upper case and graphics (PETSCII order)"),
("C64_LOWER", 33, (8,), "Commodore 64, lower and upper case"),
("C128_UPPER", 34, (8,), "Commodore 128, upper case and graphics"),
("C128_LOWER", 35, (8,), "Commodore 128, lower and upper case"),
("ATARI", 36, (8,), "Atari 8-bit (ATASCII order)"),
("POT_NOODLE", 37, (8,), "P0T-NOoDLE (Amiga)"),
("MOSOUL", 38, (8,), "mO'sOul (Amiga)"),
("MICROKNIGHT_PLUS", 39, (8,), "MicroKnight Plus (Amiga)"),
("TOPAZ_PLUS", 40, (8,), "Topaz Plus (Amiga, Kickstart 2's Topaz)"),
("MICROKNIGHT", 41, (8,), "MicroKnight (Amiga)"),
("TOPAZ", 42, (8,), "Topaz (Amiga, Kickstart 1's)"),
("PRESTEL", 43, (16,), "Prestel (the SAA5050's teletext characters, smoothed)"),
("ATARI_ST", 44, (8, 16), "Atari ST (8x8 its colour modes', 8x16 its mono mode's)"),
("RIPTERM", 45, (8,), "RIPterm's 8x8 (code page 437)"),
]
def unescape(s):
"""a C string literal's body as its bytes"""
out = bytearray()
k = 0
while k < len(s):
c = s[k]
if c != "\\":
out.append(ord(c))
k += 1
continue
n = s[k + 1]
if n == "x":
m = re.match(r"[0-9a-fA-F]{1,2}", s[k + 2:])
out.append(int(m.group(), 16))
k += 2 + len(m.group())
elif n in "01234567":
m = re.match(r"[0-7]{1,3}", s[k + 1:])
out.append(int(m.group(), 8))
k += 1 + len(m.group())
else:
out.append({"n": 10, "t": 9, "r": 13, "\\": 92, '"': 34, "'": 39, "a": 7, "b": 8,
"f": 12, "v": 11, "?": 63}[n])
k += 2
return bytes(out)
def entries(path):
"""conio_fontdata's entries (the build with fonts): each field bytes, or a name"""
src = open(path, encoding="latin-1").read()
body = src[src.index("#else"):]
head = "conio_fontdata[257] = {"
body = body[body.index(head) + len(head):]
tok = re.compile(r'"((?:[^"\\]|\\.)*)"|(\w+)|([{},])|(//[^\n]*|/\*.*?\*/)|(\s+)', re.S)
out, cur, field, pos = [], None, None, 0
while pos < len(body):
m = tok.match(body, pos)
pos = m.end()
if m.group(4) or m.group(5):
continue
if m.group(1) is not None:
b = unescape(m.group(1))
field = field + b if isinstance(field, bytes) else b
continue
t = m.group(2) or m.group(3)
if t == "{":
cur, field = [], None
elif t in (",", "}"):
if cur is not None and field is not None:
cur.append(field)
field = None
if t == "}":
if cur is None:
break
out.append(cur)
cur = None
else:
field = t
return out
def halve(d16):
"""an 8x16 font that doubles 8x8 rows, as 8x8: each pair of rows as one (both's pixels)"""
return bytes(d16[g * 16 + 2 * r] | d16[g * 16 + 2 * r + 1] for g in range(256) for r in range(8))
def size(e, h):
"""an entry's glyphs [h] rows high: its own, or (8) its 8x16 halved"""
own = {16: e[0], 14: e[1], 8: e[2]}[h]
if isinstance(own, bytes):
return own
if h == 8 and isinstance(e[0], bytes):
return halve(e[0])
raise SystemExit(f"no {h}-row glyphs for {e[4]!r}")
def chunks(s, n):
"""[s] in pieces of [n] characters"""
return [s[i:i + n] for i in range(0, len(s), n)]
def main():
"""the Kotlin file from allfonts.c"""
if len(sys.argv) != 2:
raise SystemExit(__doc__)
es = entries(sys.argv[1])
w = []
w.append("// SPDX-License-Identifier: AGPL-3.0-only")
w.append("// Copyright (C) 2026 Neo-Desktop")
w.append("// Generated by tools/gen_rom_fonts.py: don't edit by hand.")
w.append("// The glyphs are Synchronet ciolib's (src/conio/allfonts.c), LGPL-2.0-or-later,")
w.append("// copyright Rob Swindell and its contributors; used here under the AGPL as that allows.")
w.append("package org.dmodem.app.terminal")
w.append("")
w.append("/**")
w.append(" * The machines' own character ROM fonts as SyncTERM draws them, each")
w.append(" * 256 glyphs in its machine's code order (hex, two digits a row), at")
w.append(" * the sizes the machine had; [syncterm] by SyncTERM's font numbers")
w.append(" * (CSI SP D's).")
w.append(" */")
w.append("internal object RomFonts {")
for name, n, heights, what in FONTS:
e = es[n]
args = []
for h in heights:
hexs = size(e, h).hex()
parts = " +\n ".join(f'"{c}"' for c in chunks(hexs, 128))
args.append(f" h{h} =\n {parts},")
w.append(f" /** {what} */")
w.append(f" val {name}: RomFont = RomFont(")
w.extend(args)
w.append(" )")
w.append("")
w.append(" /** SyncTERM's font numbers (CSI SP D's) and the fonts here */")
w.append(" val syncterm: Map<Int, RomFont> by lazy {")
w.append(" mapOf(")
for name, n, _, _ in FONTS:
if name != "RIPTERM":
w.append(f" {n} to {name},")
w.append(" )")
w.append(" }")
w.append("}")
open(OUT, "w").write("\n".join(w) + "\n")
if __name__ == "__main__":
main()