From 48b026e7500c5f7239e173d14d09b9e2e272e874 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 5 Sep 2018 15:27:22 +0200 Subject: Regularize language and script names. Drop the unused 'serif' argument to the CJK lookup functions. Use the BCP 47 names for CJK scripts and languages: zh-Hant for traditional Chinese, zh-Hans for simplified Chinese, ja for Japanese, ko for Korean. The lookup function also allows commonly used language+country codes: zh-TW and zh-HK for traditional Chinese, zh-CN for simplified Chinese. --- platform/java/mupdf_native.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'platform/java/mupdf_native.h') diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h index 0e581fda..fe318382 100644 --- a/platform/java/mupdf_native.h +++ b/platform/java/mupdf_native.h @@ -797,14 +797,14 @@ extern "C" { #define com_artifex_mupdf_fitz_Font_GREEK 1L #undef com_artifex_mupdf_fitz_Font_CYRILLIC #define com_artifex_mupdf_fitz_Font_CYRILLIC 2L -#undef com_artifex_mupdf_fitz_Font_CN -#define com_artifex_mupdf_fitz_Font_CN 0L -#undef com_artifex_mupdf_fitz_Font_TW -#define com_artifex_mupdf_fitz_Font_TW 1L -#undef com_artifex_mupdf_fitz_Font_JP -#define com_artifex_mupdf_fitz_Font_JP 2L -#undef com_artifex_mupdf_fitz_Font_KR -#define com_artifex_mupdf_fitz_Font_KR 3L +#undef com_artifex_mupdf_fitz_Font_ADOBE_CNS +#define com_artifex_mupdf_fitz_Font_ADOBE_CNS 0L +#undef com_artifex_mupdf_fitz_Font_ADOBE_GB +#define com_artifex_mupdf_fitz_Font_ADOBE_GB 1L +#undef com_artifex_mupdf_fitz_Font_ADOBE_JAPAN +#define com_artifex_mupdf_fitz_Font_ADOBE_JAPAN 2L +#undef com_artifex_mupdf_fitz_Font_ADOBE_KOREA +#define com_artifex_mupdf_fitz_Font_ADOBE_KOREA 3L /* * Class: com_artifex_mupdf_fitz_Font * Method: finalize -- cgit v1.2.3