Merge fix/report-pdf-cjk-font: 生产镜像 CJK 字体,报表 PDF 中文保真
Some checks failed
ci / build-test-parity (push) Has been cancelled
Some checks failed
ci / build-test-parity (push) Has been cancelled
platform-app 镜像装 fontconfig + fonts-wqy-zenhei + fonts-dejavu-core;docker 真镜像内 渲染验证 PDF 中文零豆腐块、字体嵌入子集可移植、套打版式全保真(圈码/全角¥/CJK标点全覆盖)。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,9 +3,16 @@
|
|||||||
# 设计:slim JRE21 运行层 + 非 root + prod profile;敏感配置经环境变量注入(application-prod.yml 强制,缺失即 fail-fast)。
|
# 设计:slim JRE21 运行层 + 非 root + prod profile;敏感配置经环境变量注入(application-prod.yml 强制,缺失即 fail-fast)。
|
||||||
FROM eclipse-temurin:21-jre
|
FROM eclipse-temurin:21-jre
|
||||||
|
|
||||||
# curl 仅供容器健康探针打 /actuator/health(application-prod.yml 暴露,匿名可见 UP/DOWN)
|
# curl:容器健康探针打 /actuator/health(application-prod.yml 暴露,匿名可见 UP/DOWN)。
|
||||||
|
# fontconfig + CJK 字体:报表 PDF 导出由保真层 jatools 经 AWT/Graphics2D + iText 渲染,
|
||||||
|
# slim JRE 镜像无任何字体 → headless AWT 无 CJK 字形 → 套打报表中文渲成豆腐块(□)甚至报错。
|
||||||
|
# fonts-wqy-zenhei 装到 /usr/share/fonts/truetype/wqy/wqy-zenhei.ttc(= JatoolsConfig 兜底候选 + font.dirs 覆盖),
|
||||||
|
# 含 GB 汉字/CJK 标点(、()。)/圈码(①②③)/全角¥,iText 按所绘字形子集嵌入 PDF(可移植+可抽取文本);
|
||||||
|
# fonts-dejavu-core 供拉丁/数字清晰渲染;fontconfig 让 AWT 能枚举上述字体。
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y --no-install-recommends curl \
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
curl fontconfig fonts-wqy-zenhei fonts-dejavu-core \
|
||||||
|
&& fc-cache -f \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|||||||
Reference in New Issue
Block a user