api: Add note on location of fonts

This commit is contained in:
TheOnlyWayUp
2025-10-28 16:45:37 +05:30
parent 3eca87e7cf
commit d7da15a434
@@ -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.