Kernel Developing using UEFI Booloader

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: Kernel Developing using UEFI Booloader

Post by SpyderTL »

All of your questions are answered in the Wiki. Try clicking the link at the top of the page that says "Got a question? - Search this first!".

But you can find Font rendering code here: http://wiki.osdev.org/Drawing_In_Protec ... awing_Text
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Kernel Developing using UEFI Booloader

Post by Combuster »

Prior to ExitBootServices, you can use the output protocol to render text. After that, you need to render text a pixel at a time.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
albus95
Member
Member
Posts: 42
Joined: Tue Nov 17, 2015 3:12 am
Libera.chat IRC: albus95

Re: Kernel Developing using UEFI Booloader

Post by albus95 »

Combuster wrote:Prior to ExitBootServices, you can use the output protocol to render text. After that, you need to render text a pixel at a time.
I know of course, the point is that I want render text after I call exitbootservices. I have a pointer to the graphics buffer and can draw/put pixel at any location, so what would be the best method for drawing text?
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Kernel Developing using UEFI Booloader

Post by Brendan »

Hi,
albus95 wrote:I have a pointer to the graphics buffer and can draw/put pixel at any location, so what would be the best method for drawing text?
The "Drawing in Protected Mode" wiki page (that you've been linked to twice now) contains a section called drawing text.

Beyond that; "best" needs to be defined. For best speed it'd be hard to improve on the optimised method on that same wiki page. For best quality (e.g. scalable vector fonts, proportional fonts, anti-aliasing, etc) things get much more complicated.


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
albus95
Member
Member
Posts: 42
Joined: Tue Nov 17, 2015 3:12 am
Libera.chat IRC: albus95

Re: Kernel Developing using UEFI Booloader

Post by albus95 »

Linked twice about peotected mode but I AM NOT IN PROTECTED MODE! Read the thread.
Anyway i can write this buffer.
But any way i want some more general way so i can set the text width and color. It is more complex right?
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Kernel Developing using UEFI Booloader

Post by Combuster »

That doesn't mean that the information you need isn't in there.
albus95 wrote:I AM NOT IN PROTECTED MODE! Read the thread.
And since you're so insistent about it, you hereby have a homework task to prove that you actually are.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
matute81
Member
Member
Posts: 33
Joined: Tue Sep 28, 2010 2:47 am

Re: Kernel Developing using UEFI Booloader

Post by matute81 »

albus95 wrote:Linked twice about peotected mode but I AM NOT IN PROTECTED MODE! Read the thread.
Anyway i can write this buffer.
But any way i want some more general way so i can set the text width and color. It is more complex right?

Protected mode and long mode are almost the same by the perspective you watch them.
If you want to use protected mode you have to put the CPU in that mode, if not keep the long mode.
If you like to implement basic font management (offline of course) you just need to convert the font in a "convenient" way (c array).
You can use a tool like bdf2c...
Try to use google anyway instead of asking stupid question
Post Reply