Fixed bug with empty string, allowing local fonts to be loaded.

This commit is contained in:
2023-06-17 22:15:57 -07:00
parent 6a202edf23
commit 0ea7f1d749
5 changed files with 38 additions and 17 deletions

View File

@@ -48,13 +48,23 @@ function(tool_truetype target)
endif()
endforeach()
# Check for missing args
set(DEPS "")
if(DAWN_BUILD_TOOLS)
set(DEPS truetypetool)
endif()
if(DEFINED REGULAR)
set(REGULAR "${DAWN_ASSETS_SOURCE_DIR}/${REGULAR}")
endif()
if(DEFINED BOLD)
set(BOLD "${DAWN_ASSETS_SOURCE_DIR}/${BOLD}")
endif()
if(DEFINED ITALICS)
set(ITALICS "${DAWN_ASSETS_SOURCE_DIR}/${ITALICS}")
endif()
if(DEFINED BOLD_ITALICS)
set(BOLD_ITALICS "${DAWN_ASSETS_SOURCE_DIR}/${BOLD_ITALICS}")
endif()
add_custom_target(${target}
COMMAND truetypetool