Skip to content

Commit

Permalink
Set NTTDI_VERSION to Windows 10 RS2, needed for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Oct 24, 2020
1 parent 1ae14db commit 8a1713c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/cmake/Vstgui.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
# higher C++ requirement on Windows
set_property(TARGET sfizz-vstgui PROPERTY CXX_STANDARD 14)
# Windows 10 RS2 DDI for custom fonts
target_compile_definitions(sfizz-vstgui PRIVATE "NTDDI_VERSION=0x0A000003")
# disable custom fonts while dwrite3 API is unavailable in MinGW
if(MINGW)
target_compile_definitions(sfizz-vstgui PRIVATE "VSTGUI_WIN32_CUSTOMFONT_SUPPORT=0")
Expand Down

0 comments on commit 8a1713c

Please sign in to comment.