Only font rendering fix for Linux

This commit is contained in:
Gregory Schier
2025-03-06 06:29:03 -08:00
parent 26371e5f6b
commit 0db0cdfd6c
2 changed files with 7 additions and 1 deletions

View File

@@ -9,9 +9,13 @@
@apply w-full h-full overflow-hidden text-text bg-surface;
}
* {
/* Never show ligatures */
:root {
font-variant-ligatures: none;
}
/* The following fixes weird font rendering issues on Linux */
html[data-platform="linux"] {
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;

View File

@@ -20,6 +20,8 @@ if (osType !== 'macos') {
await getCurrentWebviewWindow().setDecorations(false);
}
document.documentElement.setAttribute('data-platform', osType);
window.addEventListener('keydown', (e) => {
const rx = /input|select|textarea/i;