Skip to content

Commit 85ec041

Browse files
committed
Update Noto fonts.
Import Source Han Serif 1.001. Use serif fonts in preference for sans.
1 parent d69dcb5 commit 85ec041

File tree

212 files changed

+724
-581
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+724
-581
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ $(OUT)/source/tools/%.o : source/tools/%.c | $(ALL_DIR)
106106
$(CC_CMD) $(THREADING_CFLAGS)
107107

108108
$(OUT)/generated/%.o : generated/%.c | $(ALL_DIR)
109+
@ mkdir -p $(dir $@)
109110
$(CC_CMD) -O0
110111

111112
$(OUT)/platform/x11/%.o : platform/x11/%.c | $(ALL_DIR)
@@ -184,8 +185,9 @@ $(SIGNATURE_OBJ) : $(PKCS7_HDR)
184185
HEXDUMP_EXE := $(OUT)/scripts/hexdump.exe
185186

186187
FONT_BIN := $(sort $(wildcard resources/fonts/urw/*.cff))
187-
FONT_BIN += $(sort $(wildcard resources/fonts/han/*.otf))
188+
FONT_BIN += $(sort $(wildcard resources/fonts/han/*.ttc))
188189
FONT_BIN += $(sort $(wildcard resources/fonts/droid/*.ttf))
190+
FONT_BIN += $(sort $(wildcard resources/fonts/noto/*.otf))
189191
FONT_BIN += $(sort $(wildcard resources/fonts/noto/*.ttf))
190192
FONT_BIN += $(sort $(wildcard resources/fonts/sil/*.cff))
191193

@@ -194,12 +196,14 @@ FONT_GEN := $(FONT_BIN:%=generated/%.c)
194196
generated/%.cff.c : %.cff $(HEXDUMP_EXE) ; $(QUIET_GEN) mkdir -p $(dir $@) ; $(HEXDUMP_EXE) -s $@ $<
195197
generated/%.otf.c : %.otf $(HEXDUMP_EXE) ; $(QUIET_GEN) mkdir -p $(dir $@) ; $(HEXDUMP_EXE) -s $@ $<
196198
generated/%.ttf.c : %.ttf $(HEXDUMP_EXE) ; $(QUIET_GEN) mkdir -p $(dir $@) ; $(HEXDUMP_EXE) -s $@ $<
199+
generated/%.ttc.c : %.ttc $(HEXDUMP_EXE) ; $(QUIET_GEN) mkdir -p $(dir $@) ; $(HEXDUMP_EXE) -s $@ $<
197200

198201
ifeq "$(OS)" "Linux"
199202
FONT_OBJ := $(FONT_BIN:%=$(OUT)/%.o)
200203
$(OUT)/%.cff.o : %.cff ; $(OBJCOPY_CMD)
201204
$(OUT)/%.otf.o : %.otf ; $(OBJCOPY_CMD)
202205
$(OUT)/%.ttf.o : %.ttf ; $(OBJCOPY_CMD)
206+
$(OUT)/%.ttc.o : %.ttc ; $(OBJCOPY_CMD)
203207
else
204208
FONT_OBJ := $(FONT_GEN:%.c=$(OUT)/%.o)
205209
endif

platform/java/mupdf_native.c

Lines changed: 174 additions & 104 deletions
Large diffs are not rendered by default.

resources/fonts/han/README.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

resources/fonts/han/README.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Source Han Serif 1.001
2+
3+
https://github.com/adobe-fonts/source-han-serif
-7.98 MB
Binary file not shown.
-4.27 MB
Binary file not shown.
-4.35 MB
Binary file not shown.
-5.39 MB
Binary file not shown.
23.7 MB
Binary file not shown.
-409 KB
Binary file not shown.

0 commit comments

Comments
 (0)