VikParuchuri / surya

OCR, layout analysis, reading order, table recognition in 90+ languages
https://www.datalab.to
GNU General Public License v3.0
14.35k stars 899 forks source link

Custom `FONT_DIR` did not take effect #240

Open xiaoyao9184 opened 2 weeks ago

xiaoyao9184 commented 2 weeks ago

The FONT_DIR was overridden by an external environment variable, but the final RECOGNITION_RENDER_FONTS still uses the old value. Perhaps I should override RECOGNITION_RENDER_FONTS as well, or make RECOGNITION_RENDER_FONTS a dynamic property, like https://github.com/VikParuchuri/surya/blob/a8b34c442ca55b639b8f76ad4c062a65459b3ace/surya/settings.py#L88-L91.