VGA Fonts: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Line 34: Line 34:
Easiest way, but increases your code by 4k. There are several sources that provide the entire font in binary or source format so you do not need to manually write it out.
Easiest way, but increases your code by 4k. There are several sources that provide the entire font in binary or source format so you do not need to manually write it out.
=== Store it in a file ===
=== Store it in a file ===
Most modular way. You can use different fonts if you like. Downside you'll need a working filesystem implementation. As for the file format, I'd suggest to use Linux's [[PC Screen Font]] format so that you can use the console fonts shipped with your Linux distribution.
Most modular way. You can use different fonts if you like. Downside you'll need a working filesystem implementation. As for the file format, I'd suggest the aforementioned [[PC Screen Font]] (.psfu) or [[Scalable Screen Font]] (.sfn).

=== Get the copy stored in the VGA BIOS ===
=== Get the copy stored in the VGA BIOS ===
It's a standard BIOS call (no need to check it's persistence). If you're still in real mode, it's quite easy to use.
It's a standard BIOS call (no need to check it's persistence). If you're still in real mode, it's quite easy to use.