start bold bitmap sans; resize window bugfix; add testing instructions

This commit is contained in:
nakst 2021-12-29 11:58:10 +00:00
parent 9fd5249abd
commit f1e8d99abc
5 changed files with 15 additions and 2 deletions

View File

@ -14,6 +14,14 @@ Alternatively, visit the forums (not very active): https://essence.handmade.netw
To support development, you can donate to my Patreon: https://www.patreon.com/nakst.
## Testing
You can download and test the latest nightly build from https://github.com/nakst/build-essence/releases. Download and extract `Essence.tar.xz`. If you are using VirtualBox, import `Essence.ova`. If you are using Qemu, run
qemu-kvm -drive file=drive,format=raw -m 2048 -smp 2 || qemu-system-x86_64 -enable-kvm -drive file=drive,format=raw -m 2048 -smp 2
These builds are configured to run on emulators only, to make testing easier. Builds for real hardware are coming soon :)
## Building
See `help/Building.md` for a description of how to build and test the system.

View File

@ -272,9 +272,13 @@ void SendMessageToWindow(Window *window, EsMessage *message) {
} else if (message->type == ES_MSG_KEY_DOWN || message->type == ES_MSG_KEY_UP) {
window->embed->owner->messageQueue.SendMessage(window->embed->apiWindow, message);
if (message->keyboard.modifiers & (ES_MODIFIER_CTRL | ES_MODIFIER_ALT | ES_MODIFIER_FLAG | ES_MODIFIER_ALT_GR)) {
if ((message->keyboard.modifiers & (ES_MODIFIER_CTRL | ES_MODIFIER_ALT | ES_MODIFIER_FLAG | ES_MODIFIER_ALT_GR))
|| message->keyboard.scancode == ES_SCANCODE_LEFT_CTRL || message->keyboard.scancode == ES_SCANCODE_RIGHT_CTRL
|| message->keyboard.scancode == ES_SCANCODE_LEFT_SHIFT || message->keyboard.scancode == ES_SCANCODE_RIGHT_SHIFT
|| message->keyboard.scancode == ES_SCANCODE_LEFT_ALT || message->keyboard.scancode == ES_SCANCODE_RIGHT_ALT
|| message->keyboard.scancode == ES_SCANCODE_LEFT_FLAG || message->keyboard.scancode == ES_SCANCODE_RIGHT_FLAG) {
// Additionally send the keyboard input message to the embed parent
// if Ctrl, Alt or Flag were held.
// if Ctrl, Alt or Flag were held, or this is a modifier change message.
// (Otherwise don't, to avoid increasing typing latency.)
window->owner->messageQueue.SendMessage(window->apiWindow, message);
}

Binary file not shown.

Binary file not shown.

View File

@ -107,6 +107,7 @@ BuildFont fonts[] = {
{ "Bitmap Sans", "", "Sans", "Latn", (FontFile []) {
{ "4", "Bitmap Sans Regular 9.font" },
{ "7", "Bitmap Sans Bold 9.font" },
{},
} },