add: Basic Font Rendering

This commit is contained in:
Simon Hardt
2022-03-05 02:37:08 +01:00
parent df1ce5583b
commit 0553927dad
15 changed files with 386 additions and 9 deletions

View File

@@ -15,7 +15,10 @@ set(src
src/display/Display.cpp
src/render/RenderTarget.hpp
src/render/RenderTarget.cpp
src/font/Font.hpp
src/font/Font.cpp
src/font/Glyph.hpp
src/font/Glyph.cpp
)
if (BUILD_EPD)
@@ -33,12 +36,22 @@ if (BUILD_VIRTUAL_DISPLAY)
endif (BUILD_VIRTUAL_DISPLAY)
add_executable(${target} ${src})
target_link_libraries(${target} PRIVATE fmt::fmt)
target_link_libraries(${target} PRIVATE
fmt::fmt
)
if (BUILD_EPD)
target_link_libraries(${target} PRIVATE waveshare)
target_link_libraries(${target} PRIVATE
waveshare
)
endif (BUILD_EPD)
if (BUILD_VIRTUAL_DISPLAY)
target_link_libraries(${target} PRIVATE sfml-system sfml-window sfml-graphics)
target_link_libraries(${target} PRIVATE
sfml-system
sfml-window
sfml-graphics
fmt::fmt
nlohmann_json::nlohmann_json
)
endif(BUILD_VIRTUAL_DISPLAY)