From d7da15a4344998d83a14f9c297e0e3986060a024 Mon Sep 17 00:00:00 2001 From: TheOnlyWayUp Date: Tue, 28 Oct 2025 16:45:37 +0530 Subject: [PATCH] api: Add note on location of fonts --- src/api/src/create_book/generators/pdf/notes.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/api/src/create_book/generators/pdf/notes.md diff --git a/src/api/src/create_book/generators/pdf/notes.md b/src/api/src/create_book/generators/pdf/notes.md new file mode 100644 index 0000000..9c30ddb --- /dev/null +++ b/src/api/src/create_book/generators/pdf/notes.md @@ -0,0 +1,5 @@ +The fonts need to be symlinked to /tmp/fonts, this allows the fonts to be loaded during development and during build-time. +It's assumed fonts will be present at `/tmp/fonts`, during development they're at `/src/api/src/create_book/generators/pdf`, and during deployment they're at `/app/src/api/src/create_book/generators/pdf`. This seems like a clean solution. + +`Fontconfig error: Cannot load default config file: No such file: (null)` +If the fonts aren't found, this warning pops up in console. It won't cause downloads to fail, though.