This is an automated email from the ASF dual-hosted git repository.

tballison pushed a commit to branch branch_3x
in repository https://gitbox.apache.org/repos/asf/tika-docker.git


The following commit(s) were added to refs/heads/branch_3x by this push:
     new 871c646  TIKA-5005: drop ttf-mscorefonts-installer from the full 
image; add IPA and WenQuanYi CJK fonts (#33)
871c646 is described below

commit 871c6467cb764474ec9bad7f63ed4ad447a89c92
Author: Tim Allison <[email protected]>
AuthorDate: Wed Oct 28 08:59:02 2026 -0400

    TIKA-5005: drop ttf-mscorefonts-installer from the full image; add IPA and 
WenQuanYi CJK fonts (#33)
---
 CHANGES.md      | 11 +++++++++++
 README.md       | 23 +++++++++++++++++++++++
 full/Dockerfile |  7 ++++---
 3 files changed, 38 insertions(+), 3 deletions(-)

diff --git a/CHANGES.md b/CHANGES.md
index 5892eaa..621712e 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -4,6 +4,17 @@ As of 2.5.0.1, we started adding a digit for Docker versions.  
Going forward, we
 a four digit version, where the first three are the Tika version and the last 
one is the docker version.
 As of 2.5.0.2, we started tagging release commits in our github repo.
 
+* Unreleased
+  * Full image: dropped `ttf-mscorefonts-installer` and `cabextract`. The 
installer
+    downloaded Microsoft's fonts from SourceForge at build time, and the image
+    redistributed them under Microsoft's EULA. Non-embedded Verdana, Georgia,
+    Trebuchet, Impact, Comic Sans and Arial Black now render with Liberation 
fonts.
+    See the README for adding them back in your own image (TIKA-5005).
+  * Full image: added `fonts-ipafont-gothic`, `fonts-ipafont-mincho` and
+    `fonts-wqy-zenhei`, so PDF pages in non-embedded Japanese and Chinese 
fonts render
+    instead of showing empty boxes or nothing (TIKA-5005).
+  * `wget` stays in the full image for healthchecks.
+
 * 3.3.1.0 (27 May 2026)
   * First 3.3.1 release
   * Dropped `linux/arm/v7` from published platforms due to a qemu/dpkg
diff --git a/README.md b/README.md
index 24cb62d..1321766 100644
--- a/README.md
+++ b/README.md
@@ -153,6 +153,29 @@ As of 2.5.0.2, if you'd like to add extra jars from your 
local `my-jars` directo
 You may want to do this to add optional components, such as the tika-eval 
metadata filter, or optional
 dependencies such as jai-imageio-jpeg2000 (check license compatibility first!).
 
+### Fonts
+
+Fonts matter only when Tika renders a PDF page (OCR, page images, thumbnails) 
and the PDF does
+not embed the font it uses; text extraction does not need them. The full image 
includes
+Liberation for Arial, Times New Roman and Courier New, and IPA and WenQuanYi 
for Japanese and
+Chinese. To render with other fonts, install them in an image of your own. For 
example, the
+Microsoft core fonts (Verdana, Georgia, Trebuchet and others), whose license 
you accept by
+installing them:
+
+```Dockerfile
+FROM apache/tika:3.3.1.0-full
+USER root
+RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula 
select true \
+      | debconf-set-selections \
+    && apt-get update \
+    && DEBIAN_FRONTEND=noninteractive apt-get install --yes 
--no-install-recommends \
+         ttf-mscorefonts-installer \
+    && rm -rf /var/lib/apt/lists/*
+USER 35002:35002
+```
+
+The installer downloads the fonts from SourceForge, so the build needs network 
access.
+
 ### Docker Compose Examples
 
 There are a number of sample Docker Compose files included in the repos to 
allow you to test some different scenarios.
diff --git a/full/Dockerfile b/full/Dockerfile
index 889a060..ce47518 100644
--- a/full/Dockerfile
+++ b/full/Dockerfile
@@ -55,14 +55,15 @@ RUN set -eux \
         imagemagick \
         tesseract-ocr \
         $(printf 'tesseract-ocr-%s ' $LANGUAGES) \
-    && echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula 
select true | debconf-set-selections \
     && DEBIAN_FRONTEND=noninteractive apt-get install --yes 
--no-install-recommends \
         xfonts-utils \
         fonts-freefont-ttf \
         fonts-liberation \
-        ttf-mscorefonts-installer \
+        # TrueType CJK fallbacks for non-embedded Japanese and Chinese fonts 
in PDFs
+        fonts-ipafont-gothic \
+        fonts-ipafont-mincho \
+        fonts-wqy-zenhei \
         wget \
-        cabextract \
     && apt-get clean -y \
     && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
 ARG TIKA_VERSION

Reply via email to