Skip to content

Commit 9efc2ce

Browse files
committed
fix(main): set font engine to GDI to resolve font issues with PyQt6.8
1 parent 01c3876 commit 9efc2ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import asyncio
23
import logging
34
import sys
@@ -15,6 +16,9 @@
1516
import ctypes.wintypes
1617
from core.utils.win32.windows import WindowsTaskbar
1718

19+
# Set font engine to GDI as DirectWrite causes issues with some fonts in PyQt6.8
20+
os.environ["QT_QPA_PLATFORM"] = "windows:fontengine=gdi"
21+
1822
logging.getLogger('asyncio').setLevel(logging.WARNING)
1923

2024
def main():

0 commit comments

Comments
 (0)