Skip to content

Commit 74b5b6a

Browse files
Modify parameter for pandoc not to pass Japanese font when language code is not 'JA'
1 parent 8cadba6 commit 74b5b6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/common.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ ifeq ($(DOC_LANG),JA)
66
PATCH = ../Custom-wolfSSL-theme-JA.patch
77
SRC = src-ja
88
MKDOC = mkdocs-ja.yml
9+
CJK = --variable CJKmainfont="Noto Sans CJK JP"
910
else
1011
PATCH = ../Custom-wolfSSL-theme.patch
1112
SRC = src
1213
MKDOC = mkdocs.yml
14+
CJK =
1315
endif
1416

1517
.PHONY: builddir
@@ -49,7 +51,7 @@ pdf: pdf-setup pdf-prep
4951
--variable mainfont="Noto Sans" \
5052
--variable sansfont="Noto Sans" \
5153
--variable monofont="Noto Sans Mono" \
52-
--variable CJKmainfont="Noto Sans CJK JP" \
54+
$(CJK) \
5355
--variable papersize=letter \
5456
--variable geometry="margin=2.5cm" \
5557
--variable version=2.0 \

0 commit comments

Comments
 (0)