summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-03-14 17:52:17 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-03-16 14:51:41 +0100
commit2612c20b725319833caeef36ccf4240f34e0e24b (patch)
treeeb58090f9a78187690bc5197b11284576a50b8c3 /platform/java/src/com/artifex
parent5a2b234c8e93a2c3acdb21e79da684dbcfe677c7 (diff)
downloadmupdf-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/src/com/artifex')
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Font.java5
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java1
2 files changed, 6 insertions, 0 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Font.java b/platform/java/src/com/artifex/mupdf/fitz/Font.java
index 9eb6f61a..2910d543 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Font.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Font.java
@@ -6,6 +6,11 @@ public class Font
Context.init();
}
+ public static final int CN = 0;
+ public static final int TW = 1;
+ public static final int JP = 2;
+ public static final int KR = 3;
+
private long pointer;
protected native void finalize();
diff --git a/platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java b/platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java
index 945294f3..b650df52 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/PDFDocument.java
@@ -97,6 +97,7 @@ public class PDFDocument extends Document
public native void deletePage(int at);
public native PDFObject addImage(Image image);
public native PDFObject addSimpleFont(Font font);
+ public native PDFObject addCJKFont(Font font, int ordering);
public native PDFObject addFont(Font font);
public native boolean hasUnsavedChanges();
public native boolean canBeSavedIncrementally();