Page 2 of 2

Re: Kernel Developing using UEFI Booloader

Posted: Tue Nov 24, 2015 5:28 am
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

Re: Kernel Developing using UEFI Booloader

Posted: Tue Nov 24, 2015 6:30 am
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.

Re: Kernel Developing using UEFI Booloader

Posted: Tue Nov 24, 2015 7:55 am
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?

Re: Kernel Developing using UEFI Booloader

Posted: Wed Nov 25, 2015 2:30 am
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

Re: Kernel Developing using UEFI Booloader

Posted: Wed Nov 25, 2015 8:25 am
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?

Re: Kernel Developing using UEFI Booloader

Posted: Wed Nov 25, 2015 9:20 am
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.

Re: Kernel Developing using UEFI Booloader

Posted: Wed Mar 02, 2016 10:58 am
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