diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-14 17:52:17 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-03-16 14:51:41 +0100 |
commit | 2612c20b725319833caeef36ccf4240f34e0e24b (patch) | |
tree | eb58090f9a78187690bc5197b11284576a50b8c3 /platform/java/mupdf_native.h | |
parent | 5a2b234c8e93a2c3acdb21e79da684dbcfe677c7 (diff) | |
download | mupdf-2612c20b725319833caeef36ccf4240f34e0e24b.tar.xz |
Add simple CJK font creation.
Create a non-embedded CJK font using UTF-16 encoding. This can be used
in mutool create like so:
%%CJKFont Ming GB1
BT
/Ming 10 Tf
100 100 Td
<4F60 597D> Tj
ET
Diffstat (limited to 'platform/java/mupdf_native.h')
-rw-r--r-- | platform/java/mupdf_native.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h index 8bfe3480..42d54345 100644 --- a/platform/java/mupdf_native.h +++ b/platform/java/mupdf_native.h @@ -889,6 +889,14 @@ extern "C" { #ifdef __cplusplus extern "C" { #endif +#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 /* * Class: com_artifex_mupdf_fitz_Font * Method: finalize @@ -1904,6 +1912,14 @@ JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_addSimpleFont /* * Class: com_artifex_mupdf_fitz_PDFDocument + * Method: addCJKFont + * Signature: (Lcom/artifex/mupdf/fitz/Font;I)Lcom/artifex/mupdf/fitz/PDFObject; + */ +JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_PDFDocument_addCJKFont + (JNIEnv *, jobject, jobject, jint); + +/* + * Class: com_artifex_mupdf_fitz_PDFDocument * Method: addFont * Signature: (Lcom/artifex/mupdf/fitz/Font;)Lcom/artifex/mupdf/fitz/PDFObject; */ |