mirror of https://gitlab.com/nakst/essence
more bold glyphs for bitmap font
This commit is contained in:
parent
d6d8c545b0
commit
b5cb8e883a
|
@ -331,7 +331,7 @@ int32_t FontGetDescent(Font *font) {
|
|||
int32_t FontGetEmWidth(Font *font) {
|
||||
if (font->type == FONT_TYPE_BITMAP) {
|
||||
const BitmapFontHeader *header = (const BitmapFontHeader *) font->bitmapData;
|
||||
return header->xEmWidth * FREETYPE_UNIT_SCALE;
|
||||
return header->xEmWidth;
|
||||
}
|
||||
|
||||
#ifdef USE_FREETYPE_AND_HARFBUZZ
|
||||
|
|
|
@ -347,3 +347,11 @@ EsPanelBand columns[2] = {
|
|||
{ .push = 3 }, /* column 2 */
|
||||
};
|
||||
EsPanelSetBands(panel, 2 /* number of columns */, 0, &columns);
|
||||
|
||||
= On the use of GS in the kernel =
|
||||
|
||||
nakst
|
||||
—
|
||||
Today at 8:57 AM
|
||||
[gs:0] points to the CPULocalStorage, [gs:8] contains the address of the kernel stack (so it can be switched to in a syscall), [gs:16] points to the current thread
|
||||
You can't get the thread from the CPULocalStorage in most situations (i.e. with interrupts enabled), because it will change if the thread is rescheduled on a different CPU, and then you'd read the wrong thread
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue