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

Force Qt to use FreeType on Windows #2160

Merged
merged 1 commit into from
Jan 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmake/FreecivInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ if(WIN32 OR MSYS OR MINGW)
# Custom command files to run the applications
install(
FILES
${CMAKE_SOURCE_DIR}/dist/freeciv21-server.cmd
${CMAKE_SOURCE_DIR}/data/icons/128x128/freeciv21-client.ico
${CMAKE_SOURCE_DIR}/data/icons/128x128/freeciv21-modpack.ico
${CMAKE_SOURCE_DIR}/data/icons/128x128/freeciv21-server.ico
jwrober marked this conversation as resolved.
Show resolved Hide resolved
${CMAKE_SOURCE_DIR}/dist/windows/freeciv21-server.cmd
${CMAKE_SOURCE_DIR}/dist/windows/qt.conf
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT freeciv21)
endif()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
if not "%1" == "auto" set LANG=%1
start "%~n0" /D . "%~dp0\freeciv21-server.exe" %2 %3 %4 %5 %6 %7 %8 %9
@echo off
if not "%1" == "auto" set LANG=%1
start "%~n0" /D . "%~dp0\freeciv21-server.exe" %2 %3 %4 %5 %6 %7 %8 %9
5 changes: 5 additions & 0 deletions dist/windows/qt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Platforms]
# We force FreeType on Windows because rendering Libertinus with DirectWrite
# looks terrible.
# Dark mode controls window title bars. 1 means follow the system default.
WindowsArguments = fontengine=freetype,darkmode=1
Loading