feat: implemented multiple new fonts
This commit is contained in:
@@ -63,6 +63,15 @@ if(PDFENGINE_WITH_PDFIUM)
|
||||
target_compile_definitions(pdfengine PRIVATE PDFENGINE_WITH_PDFIUM)
|
||||
endif()
|
||||
|
||||
# Directory of the bundled fallback fonts (Carlito/Tinos). Under WASM they're embedded into the
|
||||
# module's in-memory FS at /fonts (see wasm/CMakeLists.txt --embed-file); natively the engine reads
|
||||
# them straight from the source assets dir. font_fallback.cpp prefers these over OS fonts.
|
||||
if(EMSCRIPTEN)
|
||||
target_compile_definitions(pdfengine PRIVATE PDFENGINE_FONT_DIR="/fonts")
|
||||
else()
|
||||
target_compile_definitions(pdfengine PRIVATE PDFENGINE_FONT_DIR="${CMAKE_SOURCE_DIR}/engine/assets/fonts")
|
||||
endif()
|
||||
|
||||
if(PDFENGINE_WITH_SKIA)
|
||||
target_link_libraries(pdfengine PRIVATE skia::skia)
|
||||
target_compile_definitions(pdfengine PUBLIC PDFENGINE_WITH_SKIA)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user