-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add TextBuffer #452
Comments
If you boot using BIOS, you can use VGA text mode to directly feed text to the GPU. Bowever in the case of UEFI, GOP (the UEFI replacement for the VGA and VESA device interfaces) only supports setting up framebuffers. Because of this the kernel has to turn text into pixels itself. For consistency the bootloader crate only provides a framebuffer interface, even on BIOS where it could technically provide a text mode interface. |
How to load and parse existing fonts developed by people? E.g, to copy the fonts from Host OS. |
Parsing and rendering of regular vector fonts is very complex (and slow inside a kernel due to needing to use soft floats there) and almost certainly not what you want in the kernel. (it has lead to countless of kernel exploits in the case of windows for example) Rather you likely want to use a pre-rasterized font instead. There are several crates that contain pre-rasterized fonts like noto_sans_mono_bitmap (containing Noto Sans Mono) Or you can use the |
Why vectors and floats lead to kernel exploits? |
There are two separate big problems with rendering vector fonts in the kernel:
These two problems are entirely separate, but both are reasons you don't want to process vector fonts inside the kernel and should rather use a pre-rasterized bitmap font instead. |
There's FrameBuffer but no TextBuffer.
The text was updated successfully, but these errors were encountered: