feat: implemented multiple new fonts

This commit is contained in:
Furqan-14
2026-06-18 18:25:05 +05:30
parent edb991606e
commit c46b462dd0
8 changed files with 9 additions and 0 deletions
+9
View File
@@ -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.