PaddleOCR icon indicating copy to clipboard operation
PaddleOCR copied to clipboard

paddleocr3.0.0字体问题

Open wqw0806 opened this issue 6 months ago • 1 comments

🔎 Search before asking

  • [x] I have searched the PaddleOCR Docs and found no similar bug report.
  • [x] I have searched the PaddleOCR Issues and found no similar bug report.
  • [x] I have searched the PaddleOCR Discussions and found no similar bug report.

🐛 Bug (问题描述)

字体总是要下载,我想指定默认字体该怎么处理呢

🏃‍♂️ Environment (运行环境)

paddle3.0.0 paddleocr3.0.0

🌰 Minimal Reproducible Example (最小可复现问题的Demo)

    "font_path": "./fonts/simfang.ttf",
    "download_enable": False,

添加了字体和不让自动下载 还是会自动下载

wqw0806 avatar Jun 06 '25 07:06 wqw0806

可以尝试通过环境变量指定本地字体文件路径:export PADDLE_PDX_LOCAL_FONT_FILE_PATH=./fonts/simfang.ttf,然后再运行。

TingquanGao avatar Jun 06 '25 09:06 TingquanGao

The issue has no response for a long time and will be closed. You can reopen or new another issue if are still confused.


From Bot

TingquanGao avatar Jul 07 '25 12:07 TingquanGao

可以尝试通过环境变量指定本地字体文件路径:export PADDLE_PDX_LOCAL_FONT_FILE_PATH=./fonts/simfang.ttf,然后再运行。

paddleVL 需要使用:LOCAL_FONT_FILE_PATH? 而且,字体换成了PingFang-SC-Regular.ttf?

Tellyang7 avatar Oct 23 '25 08:10 Tellyang7