Set a another 8x8 font in real mode and in protected mode
Set a another 8x8 font in real mode and in protected mode
I would like to know how to set a different 8x8 vga text font via the bios. I also wonder if I can do this in protected mode as well
-
- Member
- Posts: 5562
- Joined: Mon Mar 25, 2013 7:01 pm
Re: Set a another 8x8 font in real mode and in protected mod
INT 0x10 AX=0x1100. On VGA, the font will actually be 9x8 by default. If you use INT 0x10 AH=0x12 BL=0x30 to reduce the vertical resolution, the character width will be reduced to 8 pixels too. As far as I know, there's no way to reduce the character size to 8x8 using the BIOS without also reducing the vertical resolution.sytze wrote:I would like to know how to set a different 8x8 vga text font via the bios.
You can directly manipulate the VGA registers to do anything the BIOS does. If you really want to, you can try using virtual 8086 mode to run the BIOS code, but this might not work very well on modern PCs.sytze wrote:I also wonder if I can do this in protected mode as well
Modern UEFI-only PCs don't have VGA compatibility; VGA requires a legacy BIOS (or UEFI CSM).