From 88751079b006c5e7ce427485dc50bf8a6217c903 Mon Sep 17 00:00:00 2001 From: Simon Steiner Date: Mon, 19 Mar 2018 08:49:57 +0000 Subject: 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 --- .../block_hyphenation_kerning_non_bmp.xml | 57 +++++++++++++++++++++ fop/test/resources/fonts/ttf/Aegean600.LICENSE | 3 ++ fop/test/resources/fonts/ttf/Aegean600.ttf | Bin 0 -> 2077252 bytes fop/test/resources/fonts/ttf/AndroidEmoji.LICENSE | 18 +++++++ fop/test/resources/fonts/ttf/AndroidEmoji.ttf | Bin 0 -> 448680 bytes fop/test/xml/pdf-encoding/pdf-encoding-test.xconf | 9 ++-- fop/test/xml/pdf-encoding/test-custom-font.fo | 2 +- .../xml/pdf-encoding/test-custom-non-bmp-font.fo | 37 +++++++++++++ 8 files changed, 122 insertions(+), 4 deletions(-) create mode 100644 fop/test/layoutengine/hyphenation-testcases/block_hyphenation_kerning_non_bmp.xml create mode 100644 fop/test/resources/fonts/ttf/Aegean600.LICENSE create mode 100644 fop/test/resources/fonts/ttf/Aegean600.ttf create mode 100644 fop/test/resources/fonts/ttf/AndroidEmoji.LICENSE create mode 100644 fop/test/resources/fonts/ttf/AndroidEmoji.ttf create mode 100644 fop/test/xml/pdf-encoding/test-custom-non-bmp-font.fo (limited to 'fop/test') diff --git a/fop/test/layoutengine/hyphenation-testcases/block_hyphenation_kerning_non_bmp.xml b/fop/test/layoutengine/hyphenation-testcases/block_hyphenation_kerning_non_bmp.xml new file mode 100644 index 000000000..d4734600a --- /dev/null +++ b/fop/test/layoutengine/hyphenation-testcases/block_hyphenation_kerning_non_bmp.xml @@ -0,0 +1,57 @@ + + + + + +

+ Checks hyphenation in combination with kerning. +

+
+ + true + + + + + + + + + + + + hyphenation𐌆𐌇𐌋𐌌 regression advantage foundation𐌇𐌈𐌉𐌊 𐌋𐌌 vandavanda + + + + + + + + + + + + + + + + + + +
diff --git a/fop/test/resources/fonts/ttf/Aegean600.LICENSE b/fop/test/resources/fonts/ttf/Aegean600.LICENSE new file mode 100644 index 000000000..9c4c180c3 --- /dev/null +++ b/fop/test/resources/fonts/ttf/Aegean600.LICENSE @@ -0,0 +1,3 @@ +http://users.teilar.gr/~g1951d/ + +In lieu of a licence; fonts and documents in this site are free for any use; diff --git a/fop/test/resources/fonts/ttf/Aegean600.ttf b/fop/test/resources/fonts/ttf/Aegean600.ttf new file mode 100644 index 000000000..6f3abb059 Binary files /dev/null and b/fop/test/resources/fonts/ttf/Aegean600.ttf differ diff --git a/fop/test/resources/fonts/ttf/AndroidEmoji.LICENSE b/fop/test/resources/fonts/ttf/AndroidEmoji.LICENSE new file mode 100644 index 000000000..0a010886a --- /dev/null +++ b/fop/test/resources/fonts/ttf/AndroidEmoji.LICENSE @@ -0,0 +1,18 @@ +Copyright (C) 2008 The Android Open Source Project + +Licensed 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. + +########## + +This directory contains the fonts for the platform. They are licensed +under the Apache 2 license. diff --git a/fop/test/resources/fonts/ttf/AndroidEmoji.ttf b/fop/test/resources/fonts/ttf/AndroidEmoji.ttf new file mode 100644 index 000000000..92bf047b8 Binary files /dev/null and b/fop/test/resources/fonts/ttf/AndroidEmoji.ttf differ 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 @@ - + null flate ascii-85 - + - + + + + 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 --> - + 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 @@ + + + + + + + + + + + + + + + + PDFE_TEST_MARK_1: Hello AndroidEmoji World! + PDFE_TEST_MARK_2: This is a OLD ITALIC LETTER A: XX_ 𐌀 _XX + + + -- cgit v1.2.3