Updated kernel fonts

This commit is contained in:
Alex 2023-01-03 17:54:24 +02:00
parent e59eef6be9
commit e3180d4092
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
20 changed files with 100 additions and 8 deletions

1
.gitignore vendored
View File

@ -4,5 +4,4 @@
*.map
*.fsys
*.log
Files/*.psf
.dccache

View File

@ -3,9 +3,9 @@
#include <uart.hpp>
#include <debug.h>
extern uintptr_t _binary_Files_ter_powerline_v12n_psf_start;
extern uintptr_t _binary_Files_ter_powerline_v12n_psf_end;
extern uintptr_t _binary_Files_ter_powerline_v12n_psf_size;
extern uintptr_t _binary_Files_tamsyn_font_1_11_Tamsyn7x14r_psf_start;
extern uintptr_t _binary_Files_tamsyn_font_1_11_Tamsyn7x14r_psf_end;
extern uintptr_t _binary_Files_tamsyn_font_1_11_Tamsyn7x14r_psf_size;
NewLock(PrintLock);
@ -174,7 +174,7 @@ namespace Video
this->framebuffer = Info;
if (LoadDefaultFont)
{
this->CurrentFont = new Font(&_binary_Files_ter_powerline_v12n_psf_start, &_binary_Files_ter_powerline_v12n_psf_end, FontType::PCScreenFont2);
this->CurrentFont = new Font(&_binary_Files_tamsyn_font_1_11_Tamsyn7x14r_psf_start, &_binary_Files_tamsyn_font_1_11_Tamsyn7x14r_psf_end, FontType::PCScreenFont2);
FontInfo Info = this->CurrentFont->GetInfo();
debug("Font loaded: %dx%d %s",
Info.Width, Info.Height, Info.Type == FontType::PCScreenFont1 ? "PSF1" : "PSF2");

View File

@ -0,0 +1,10 @@
Tamsyn font is free. You are hereby granted permission to use, copy, modify,
and distribute it as you see fit.
Tamsyn font is provided "as is" without any express or implied warranty.
The author makes no representations about the suitability of this font for
a particular purpose.
In no event will the author be held liable for damages arising from the use
of this font.

View File

@ -0,0 +1,82 @@
_____
|_ _|_ _ _ __ ___ ___ _ _ _ __
| |/ _` | '_ ` _ \/ __| | | | '_ \
| | (_| | | | | | \__ \ |_| | | | |
|_|\__,_|_| |_| |_|___/\__, |_| |_|
|___/
Monospaced Programming Font for Linux and Windows
--------------------------------------------------------------------------------
VERSION 1.11 2015-01-21
CHANGES IN 1.11
Changed capital "A" to be less pointy, more consistent between sizes.
Expecting hate mail.
Previously, unimplemented chars defaulted to print a blank space under X.
Now those chars are not placed in the font at all in order to allow
fontconfig to fall back to use a char from another font. (Thanks, Allen,
for pointing this out and testing the fix.)
CHANGES IN 1.10
New size: 7x13.
New size: 8x16 (replaces 8x17)
Many changes in favor of a cleaner look. In particular, replaced the
double-story lowercase "g" with the single-story variety.
Added the degree symbol. (Enjoy, Sven!)
Added the copyright symbol.
CHANGES IN 1.9
Fixed the problem with inverted question mark facing the wrong way. (Thanks
to Swyter for reporting it.)
Modified the small "w" and "g".
Restored the original look for size 6x12 bold.
CHANGES IN 1.8
Fixed a problem where chars showed up as boxes in xfontsel and some apps.
Tweaks, esp. to 8x17 size
CHANGES IN 1.7
Added two new sizes: tiny 5x9 and large 10x20.
Retired size 7x12. (If this presents major problem for you, get in touch.)
Added a pixel to the height of the 6x11 size, making it 6x12.
Added new chars for partial ISO8859-1 support, mainly covering the accented
characters and currency symbols. I consider these new characters to be BETA,
since I don't use them so I'm not sure how they should look. If you have
feedback about them, please get in touch.
Made many minor tweaks to character shapes. In particular, the f, l, and t
have a more "traditional" look. Also, I've changed the w and y again.
FUTURE PLANS:
Full CP437, ISO8859-1, Windows-1252 coverage
Mac/ttf version
Cyrillic
Unified FON file containing all sizes in regular and bold
Separate OEM and 1252 Windows versions
User feedback is welcomed and encouraged.
Enjoy!

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -35,6 +35,9 @@
* - General:
* https://wiki.osdev.org/Main_Page
*
* - Font:
* http://www.fial.com/~scott/tamsyn-font/
*
* - CPU XCR0 structure:
* https://wiki.osdev.org/CPU_Registers_x86#XCR0
*

View File

@ -118,9 +118,7 @@ default:
$(error Please specify a target)
prepare:
rm -f ./Files/ter-powerline-v12n.psf
wget https://raw.githubusercontent.com/powerline/fonts/master/Terminus/PSF/ter-powerline-v12n.psf.gz -P Files
gzip -d Files/ter-powerline-v12n.psf.gz
$(info Nothing to prepare)
build: $(KERNEL_FILENAME)