diff options
author | Simon Steiner <ssteiner@apache.org> | 2018-03-19 08:49:57 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2018-03-19 08:49:57 +0000 |
commit | 88751079b006c5e7ce427485dc50bf8a6217c903 (patch) | |
tree | fe441fcd6c845aa90c5a0996b58be04581b49f5b /fop/test/xml | |
parent | a3a3995f8b6f271e57bcd87e2a03f45da2f04c16 (diff) | |
download | xmlgraphics-fop-88751079b006c5e7ce427485dc50bf8a6217c903.tar.gz xmlgraphics-fop-88751079b006c5e7ce427485dc50bf8a6217c903.zip |
FOP-1969: Support for unicode Surrogate pairs
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1827168 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop/test/xml')
-rw-r--r-- | fop/test/xml/pdf-encoding/pdf-encoding-test.xconf | 9 | ||||
-rw-r--r-- | fop/test/xml/pdf-encoding/test-custom-font.fo | 2 | ||||
-rw-r--r-- | fop/test/xml/pdf-encoding/test-custom-non-bmp-font.fo | 37 |
3 files changed, 44 insertions, 4 deletions
diff --git a/fop/test/xml/pdf-encoding/pdf-encoding-test.xconf b/fop/test/xml/pdf-encoding/pdf-encoding-test.xconf index 27f96c950..ec087359b 100644 --- a/fop/test/xml/pdf-encoding/pdf-encoding-test.xconf +++ b/fop/test/xml/pdf-encoding/pdf-encoding-test.xconf @@ -29,19 +29,22 @@ <renderers> <renderer mime="application/pdf"> <!-- disable PDF text compression --> - <filterList> + <filterList> <value>null</value> </filterList> <filterList type="image"> <value>flate</value> <value>ascii-85</value> </filterList> - + <!-- use a custom font to show encoding problems --> <fonts> - <font metrics-url="test/resources/fonts/ttf/glb12.ttf.xml" embed-url="test/resources/fonts/ttf/glb12.ttf"> + <font metrics-url="../../resources/fonts/ttf/glb12.ttf.xml" embed-url="../../resources/fonts/ttf/glb12.ttf"> <font-triplet name="Gladiator" style="normal" weight="normal"/> </font> + <font embed-url="../../resources/fonts/ttf/Aegean600.ttf" > + <font-triplet name="Aegean600" style="normal" weight="normal"/> + </font> </fonts> </renderer> </renderers> diff --git a/fop/test/xml/pdf-encoding/test-custom-font.fo b/fop/test/xml/pdf-encoding/test-custom-font.fo index 86689f343..ee4c0406a 100644 --- a/fop/test/xml/pdf-encoding/test-custom-font.fo +++ b/fop/test/xml/pdf-encoding/test-custom-font.fo @@ -21,7 +21,7 @@ Minimal FO document used to test PDF encoding --> -<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Gladiator"> +<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Gladiator" font-size="10px"> <fo:layout-master-set> <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm"> <fo:region-body/> diff --git a/fop/test/xml/pdf-encoding/test-custom-non-bmp-font.fo b/fop/test/xml/pdf-encoding/test-custom-non-bmp-font.fo new file mode 100644 index 000000000..2793d737c --- /dev/null +++ b/fop/test/xml/pdf-encoding/test-custom-non-bmp-font.fo @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<!-- + Minimal FO document used to test PDF encoding +--> + +<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica, Aegean600"> + <fo:layout-master-set> + <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="A4"> + <fo:flow flow-name="xsl-region-body"> + <!--<fo:block>Testing PDF text encoding using the user-specified AndroidEmoji font which cover non BMP codepoints</fo:block>--> + <fo:block>PDFE_TEST_MARK_1: Hello AndroidEmoji World!</fo:block> + <fo:block>PDFE_TEST_MARK_2: This is a OLD ITALIC LETTER A: XX_ 𐌀 _XX</fo:block> + </fo:flow> + </fo:page-sequence> +</fo:root> |