Skip to content
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

Shortcuts handling and font rendering fixes #60

Merged
merged 2 commits into from
Jul 22, 2022
Merged

Shortcuts handling and font rendering fixes #60

merged 2 commits into from
Jul 22, 2022

Conversation

lubasowo0
Copy link
Contributor

Hello! This little patchset fixes bugs I encountered during translation of Inochi Creator to polish. It fixes typing polish diacritics into textboxes using keyboard with AltGr key on Windows, which incorrectly triggered some shortcuts (more info in commit message). It also changes font using to render non-CJK characters into NotoSans-Regular because CJK version missed some needed characters. Let me know if this is the correct approach.

On Windows with some keyboard layouts Right Alt (AltGr) acts the same
as Ctrl+Alt. In incShortcut check for exact pressed modifiers and be
explicit about not supporting shortcuts with Ctrl+Alt.
See: https://en.wikipedia.org/wiki/AltGr_key#Ctrl+Alt

This fixes bug where shortcuts were triggered while typing special
characters with AltGr on these keyboard layouts.
Latin characters seem to render incorrectly using CJK variant of Noto
font (cut bottom pixels on text, missing characters like polish
diacritics among others). Use NotoSans-Regular for these characters and
add more ranges supported by this font, like Greek and Cyrillic.
@lubasowo0 lubasowo0 changed the title Shortcuts handling and fornt rendering fixes Shortcuts handling and fort rendering fixes Jul 22, 2022
@lubasowo0 lubasowo0 changed the title Shortcuts handling and fort rendering fixes Shortcuts handling and font rendering fixes Jul 22, 2022
@LunaTheFoxgirl
Copy link
Member

LGTM, letting the CI build test to run to make sure there's no build issues has arisen. If that is in the clear I'll merge

@LunaTheFoxgirl LunaTheFoxgirl merged commit 528c8da into Inochi2D:main Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants