Basic Font integration.

This commit is contained in:
James Grogan 2022-11-15 09:32:28 +00:00
parent ce11c52ae5
commit 72123bc333
36 changed files with 325 additions and 198 deletions

View file

@ -4,12 +4,13 @@ set(fonts_LIB_DEPENDS "")
list(APPEND fonts_LIB_INCLUDES
FontReader.cpp
TrueTypeFont.cpp
FontsManager.cpp
)
if(UNIX)
find_package(Freetype QUIET)
if(Freetype_FOUND)
list(APPEND font_LIB_INCLUDES
list(APPEND fonts_LIB_INCLUDES
FreeTypeFontEngine.cpp
)
@ -27,6 +28,6 @@ target_include_directories(fonts PUBLIC
"${CMAKE_CURRENT_SOURCE_DIR}"
)
target_link_libraries(fonts PUBLIC core ${fonts_LIB_DEPENDS})
target_link_libraries(fonts PUBLIC core image ${fonts_LIB_DEPENDS})
set_property(TARGET fonts PROPERTY FOLDER src)
set_target_properties( fonts PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )