# SPDX-FileCopyrightText: 2026 Marco Allegretti
# SPDX-License-Identifier: EUPL-1.2

# Install bundled font files (if any are present) into the system font dir
# so the shell session can render the configured default font even on
# distributions that do not package it.
#
# Drop OFL-licensed font files into fonts/AtkinsonHyperlegibleNext/ and
# fonts/AtkinsonHyperlegibleMono/ alongside their SPDX .license sidecars.

file(GLOB SHIFT_FONT_FILES
    LIST_DIRECTORIES false
    "${CMAKE_CURRENT_SOURCE_DIR}/*/*.ttf"
    "${CMAKE_CURRENT_SOURCE_DIR}/*/*.otf"
)

if(SHIFT_FONT_FILES)
    install(
        FILES ${SHIFT_FONT_FILES}
        DESTINATION ${KDE_INSTALL_DATADIR}/fonts/shift
    )
endif()
