From c7cb79128e9811a425b1d498f8558e1fb3cfe3d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Wed, 1 Mar 2023 19:41:24 +0100 Subject: [PATCH] fonts: Only convert simsun.ttc to TrueType. This partially reverts commit 303299793f1ca3065cab202d6da66cded48baa64. CW-Bug-Id: #21346 --- Makefile.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 9862e63f..7df47f9e 100644 --- a/Makefile.in +++ b/Makefile.in @@ -821,8 +821,7 @@ $(FONTS_OBJ)/source-han/%.ttf: $$(%.ttf_CIDFONT) $$(%.ttf_FEATURES) $$(%.ttf_SEQ # to run it in a dedicated temporary directory to prevent concurrent instances # to step onto each other's feet (TEMP_DIR=`mktemp -d` && cd $$TEMP_DIR && afdko sfntedit -a CFF=$(abspath $($(notdir $@)).cff) $(abspath $@.tmp) && rm -fr $$TEMP_DIR) - afdko otf2ttf -o $@ $@.tmp - rm $@.tmp + mv $@.tmp $@ $(FONTS_OBJ)/ume-gothic/%.ttf: $$(%.ttf_FONT) $$(%.ttf_NAMETABLE_PATCH) mkdir -p $(FONTS_OBJ)/ume-gothic @@ -831,7 +830,9 @@ $(FONTS_OBJ)/ume-gothic/%.ttf: $$(%.ttf_FONT) $$(%.ttf_NAMETABLE_PATCH) ttx -o $@ -m $($(notdir $@)_FONT) $(FONTS_OBJ)/ume-gothic/$(notdir $(basename $($(notdir $@)_NAMETABLE_PATCH))).ttx $(simsun.ttc): $(simsun.ttf) $(nsimsun.ttf) - afdko otf2otc -o $@ $^ + afdko otf2otc -o $@.tmp $^ + afdko otf2ttf -o $@ $@.tmp + rm $@.tmp $(msgothic.ttc): $(msgothic.ttf) $(mspgothic.ttf) $(msuigothic.ttf) afdko otf2otc -o $@ $^