[
https://issues.apache.org/jira/browse/PDFBOX-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14246156#comment-14246156
]
Tilman Hausherr commented on PDFBOX-2524:
-----------------------------------------
{code}
Running org.apache.pdfbox.pdmodel.font.TestFontEmbedding
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.227 sec <<<
FAILURE! - in org.apache.pdfbox.pdmodel.font.TestFontEmbedding
testCIDFontType2(org.apache.pdfbox.pdmodel.font.TestFontEmbedding) Time
elapsed: 0.227 sec <<< FAILURE!
junit.framework.ComparisonFailure: expected:<...???? ???? Ti?ng Vi?t[]
> but was:<...???? ???? Ti?ng Vi?t[
]
>
at junit.framework.Assert.assertEquals(Assert.java:100)
at junit.framework.Assert.assertEquals(Assert.java:107)
at junit.framework.TestCase.assertEquals(TestCase.java:269)
at
org.apache.pdfbox.pdmodel.font.TestFontEmbedding.testCIDFontType2(TestFontEmbedding.java:70)
{code}
> [PATCH] Two PDFont to create PDF documents in CJK and non-ISO-8859-1 languages
> ------------------------------------------------------------------------------
>
> Key: PDFBOX-2524
> URL: https://issues.apache.org/jira/browse/PDFBOX-2524
> Project: PDFBox
> Issue Type: Improvement
> Components: Writing
> Affects Versions: 2.0.0
> Reporter: Keiji Suzuki
> Assignee: John Hewson
> Attachments: PDCIDFontType2.patch, Type0.java, Type0CJK.java,
> Type0Unicode.java, check-embeddability.patch, cidtype0.diff, cidtype2.diff,
> format14.patch, two-new-fonts.diff, type0bom.pdf, type0nobom.pdf
>
>
> I made two PDFont classes for creating PDF documents in CJK and
> non-ISO-8859-1 languages.
> One is PDType0CJKFont. This is for using CJK fonts included in the Asian font
> package of Adobe Reader. This font doesn't require the target font at the
> time of creating PDF documentary. This font uses UTF-16 as a text code and
> supports surrogate pair characters.
> The other is PDType0UnicodeFont. This is for using TrueType Type0 Font which
> can deal with any Unicode characters like a ArialUnicodeMS. Only the
> characters which are used actually in the document are embedde. Realizing
> this, you have to call the PDType0Unicode.reloadFont() method just before
> closing PDPageContentStream. I think this specification is ugly, but I could
> not thought of a suitable way to remove this spec. This font uses the
> original glyph code of the embedded font as a text code and supports
> surrogate pair characters too.
> Example programs using these two fonts are also attached.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)