OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Apr 18, 2024 12:31 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Set a another 8x8 font in real mode and in protected mode
PostPosted: Tue Jan 03, 2023 5:02 am 
Offline

Joined: Tue Jan 03, 2023 3:29 am
Posts: 1
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


Top
 Profile  
 
 Post subject: Re: Set a another 8x8 font in real mode and in protected mod
PostPosted: Tue Jan 03, 2023 10:29 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5137
sytze wrote:
I would like to know how to set a different 8x8 vga text font via the bios.

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 also wonder if I can do this in protected mode as well

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.

Modern UEFI-only PCs don't have VGA compatibility; VGA requires a legacy BIOS (or UEFI CSM).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 251 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group