Iconbrowser test: use the variable font on Android

It's the font with the highest priority in the engine, and allows us to
test variants by setting a variable axis.

Change-Id: I44bd3a63eef8d6cb999eaa372c29abbf445f401b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
Volker Hilsheimer 2024-02-20 17:33:46 +01:00
parent b5a0db53b5
commit dfdb7a0430

View File

@ -29,14 +29,14 @@ target_link_libraries(iconbrowser PRIVATE
endif()
if (ANDROID)
set(font_filename "MaterialIcons-Regular.ttf")
set(font_filename "MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf")
if (QT_ALLOW_DOWNLOAD)
include(FetchContent)
FetchContent_Declare(
MaterialIcons
URL
"https://github.com/google/material-design-icons/raw/master/font/${font_filename}"
"https://github.com/google/material-design-icons/raw/master/variablefont/${font_filename}"
DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}
DOWNLOAD_NAME "${font_filename}"
DOWNLOAD_NO_EXTRACT TRUE