aboutsummaryrefslogtreecommitdiffstats
path: root/fop/test/config
diff options
context:
space:
mode:
Diffstat (limited to 'fop/test/config')
-rw-r--r--fop/test/config/afp-codepage-missing.xconf16
-rw-r--r--fop/test/config/afp-font-missing.xconf13
-rw-r--r--fop/test/config/afp-invalid-characterset.xconf17
-rw-r--r--fop/test/config/afp-invalid-config.xconf17
-rw-r--r--fop/test/config/afp-invalid-file-name.xconf16
-rw-r--r--fop/test/config/afp-raster-font-missing.xconf16
-rw-r--r--fop/test/config/afp-triplet-missing.xconf15
-rw-r--r--fop/test/config/relative-uri/base_font.xconf5
-rw-r--r--fop/test/config/relative-uri/base_no-font.xconf4
-rw-r--r--fop/test/config/relative-uri/no-base_font.xconf4
-rw-r--r--fop/test/config/relative-uri/no-base_no-font.xconf3
-rw-r--r--fop/test/config/test_font_attributes_missing.xconf25
-rw-r--r--fop/test/config/test_fonts_directory_bad.xconf22
13 files changed, 173 insertions, 0 deletions
diff --git a/fop/test/config/afp-codepage-missing.xconf b/fop/test/config/afp-codepage-missing.xconf
new file mode 100644
index 000000000..c44b1256e
--- /dev/null
+++ b/fop/test/config/afp-codepage-missing.xconf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>.</base>
+ <renderers>
+ <renderer mime="application/x-afp">
+ <fonts>
+ <font>
+ <afp-font name="TEST" type="raster" codepage="codepage" encoding="Cp500">
+ <afp-raster-font size="36" characterset="C0N200Z0"/>
+ </afp-font>
+ <font-triplet name="TEST" style="normal" weight="normal"/>
+ </font>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
diff --git a/fop/test/config/afp-font-missing.xconf b/fop/test/config/afp-font-missing.xconf
new file mode 100644
index 000000000..8eeb3557d
--- /dev/null
+++ b/fop/test/config/afp-font-missing.xconf
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>.</base>
+ <renderers>
+ <renderer mime="application/x-afp">
+ <fonts>
+ <font>
+ <font-triplet name="TEST" style="normal" weight="normal"/>
+ </font>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
diff --git a/fop/test/config/afp-invalid-characterset.xconf b/fop/test/config/afp-invalid-characterset.xconf
new file mode 100644
index 000000000..e15fa7cd4
--- /dev/null
+++ b/fop/test/config/afp-invalid-characterset.xconf
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>.</base>
+ <strict-validation>false</strict-validation>
+ <renderers>
+ <renderer mime="application/x-afp">
+ <fonts>
+ <font>
+ <afp-font name="TEST" type="raster" codepage="T1V10500" encoding="Cp500" ebcdic-dbcs="true">
+ <afp-raster-font size="36" characterset="THIS NAME IS TOO LONG"/>
+ </afp-font>
+ <font-triplet name="TEST" style="normal" weight="normal"/>
+ </font>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
diff --git a/fop/test/config/afp-invalid-config.xconf b/fop/test/config/afp-invalid-config.xconf
new file mode 100644
index 000000000..55c2ca18a
--- /dev/null
+++ b/fop/test/config/afp-invalid-config.xconf
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>.</base>
+ <strict-validation>false</strict-validation>
+ <renderers>
+ <renderer mime="application/x-afp">
+ <fonts>
+ <font>
+ <afp-font name="TEST" type="raster" codepage="T1V10500" encoding="Cp500">
+ <afp-raster-font size="36" characterset="C0N200Z0"/>
+ </afp-font>
+ <font-triplet name="TEST" style="normal" weight="normal"/>
+ </font>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
diff --git a/fop/test/config/afp-invalid-file-name.xconf b/fop/test/config/afp-invalid-file-name.xconf
new file mode 100644
index 000000000..8cbafcac9
--- /dev/null
+++ b/fop/test/config/afp-invalid-file-name.xconf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>.</base>
+ <renderers>
+ <renderer mime="application/x-afp">
+ <fonts>
+ <font>
+ <afp-font name="TEST" type="raster" codepage="bad:\\lkja" encoding="Cp500" ebcdic-dbcs="true">
+ <afp-raster-font size="36" characterset="C0N200Z0"/>
+ </afp-font>
+ <font-triplet name="TEST" style="normal" weight="normal"/>
+ </font>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
diff --git a/fop/test/config/afp-raster-font-missing.xconf b/fop/test/config/afp-raster-font-missing.xconf
new file mode 100644
index 000000000..907c70778
--- /dev/null
+++ b/fop/test/config/afp-raster-font-missing.xconf
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>.</base>
+ <strict-validation>false</strict-validation>
+ <renderers>
+ <renderer mime="application/x-afp">
+ <fonts>
+ <font>
+ <afp-font name="TEST" type="raster" codepage="T1V10500" encoding="Cp500">
+ </afp-font>
+ <font-triplet name="TEST" style="normal" weight="normal"/>
+ </font>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
diff --git a/fop/test/config/afp-triplet-missing.xconf b/fop/test/config/afp-triplet-missing.xconf
new file mode 100644
index 000000000..59ddd9689
--- /dev/null
+++ b/fop/test/config/afp-triplet-missing.xconf
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>.</base>
+ <renderers>
+ <renderer mime="application/x-afp">
+ <fonts>
+ <font>
+ <afp-font name="Times Roman" type="raster" codepage="T1V10500" encoding="Cp500">
+ <afp-raster-font size="36" characterset="C0N200Z0" base14-font="TimesRoman"/>
+ </afp-font>
+ </font>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
diff --git a/fop/test/config/relative-uri/base_font.xconf b/fop/test/config/relative-uri/base_font.xconf
new file mode 100644
index 000000000..872c102e7
--- /dev/null
+++ b/fop/test/config/relative-uri/base_font.xconf
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>relative/</base>
+ <font-base>fonts/</font-base>
+</fop>
diff --git a/fop/test/config/relative-uri/base_no-font.xconf b/fop/test/config/relative-uri/base_no-font.xconf
new file mode 100644
index 000000000..97d378511
--- /dev/null
+++ b/fop/test/config/relative-uri/base_no-font.xconf
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <base>relative/</base>
+</fop>
diff --git a/fop/test/config/relative-uri/no-base_font.xconf b/fop/test/config/relative-uri/no-base_font.xconf
new file mode 100644
index 000000000..165cc1231
--- /dev/null
+++ b/fop/test/config/relative-uri/no-base_font.xconf
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+ <font-base>fonts/</font-base>
+</fop>
diff --git a/fop/test/config/relative-uri/no-base_no-font.xconf b/fop/test/config/relative-uri/no-base_no-font.xconf
new file mode 100644
index 000000000..211d94212
--- /dev/null
+++ b/fop/test/config/relative-uri/no-base_no-font.xconf
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fop version="1.0">
+</fop>
diff --git a/fop/test/config/test_font_attributes_missing.xconf b/fop/test/config/test_font_attributes_missing.xconf
new file mode 100644
index 000000000..4265e82d3
--- /dev/null
+++ b/fop/test/config/test_font_attributes_missing.xconf
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<fop version="1.0">
+ <!-- Strict configuration On -->
+ <strict-configuration>true</strict-configuration>
+
+ <!-- Switch off font caching for the purposes of the unit test -->
+ <use-cache>false</use-cache>
+
+ <!-- Base URL for resolving relative URLs -->
+ <base>./</base>
+
+ <!-- Font Base URL for resolving relative font URLs -->
+ <font-base>./</font-base>
+
+ <renderers>
+ <renderer mime="application/pdf">
+ <fonts>
+ <!-- this font is without a metrics-url -->
+ <font>
+ <font-triplet name="Gladiator" style="normal" weight="normal"/>
+ </font>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>
diff --git a/fop/test/config/test_fonts_directory_bad.xconf b/fop/test/config/test_fonts_directory_bad.xconf
new file mode 100644
index 000000000..f5c7fe4e2
--- /dev/null
+++ b/fop/test/config/test_fonts_directory_bad.xconf
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<fop version="1.0">
+ <!-- Strict configuration On -->
+ <strict-configuration>true</strict-configuration>
+
+ <!-- Switch off font caching for the purposes of the unit test -->
+ <use-cache>false</use-cache>
+
+ <!-- Base URL for resolving relative URLs -->
+ <base>./</base>
+
+ <!-- Font Base URL for resolving relative font URLs -->
+ <font-base>./</font-base>
+
+ <renderers>
+ <renderer mime="application/pdf">
+ <fonts>
+ <directory>doesnotexist</directory>
+ </fonts>
+ </renderer>
+ </renderers>
+</fop>