aboutsummaryrefslogtreecommitdiffstats
path: root/test/xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-05-28 14:31:24 +0000
committerJeremias Maerki <jeremias@apache.org>2007-05-28 14:31:24 +0000
commit8c1aba3f976127d33ec50b67d760f56364c08487 (patch)
treeadfdca730f41c1b9029324bf53535aa25bf16d27 /test/xml
parent7ada0a06fe2b9ce0e1867d2c9c47f71ea47a43b2 (diff)
downloadxmlgraphics-fop-8c1aba3f976127d33ec50b67d760f56364c08487.tar.gz
xmlgraphics-fop-8c1aba3f976127d33ec50b67d760f56364c08487.zip
Bugzilla #41831:
- Add support font auto-detection (easier font configuration) including a font cache to speed up the auto-detection process. - Refactoring of the configuration code: All Avalon configuration stuff is extracted into separate "Configurator" classes. - Refactoring of the FOURIResolver. Submitted by: Adrian Cumiskey <fop-dev.at.cumiskey.com> Changes to the patch by jeremias during the review: - Font cache simplified (Java object serialization instead of XML), functionality fixed and moved to the fonts.package. - Relocated default cache file location to user directory. - Fixed the font configuration for PDFDocumentGraphics2D/PDFTranscoder that got lost with the patch. - Fixed a problem with having a non-file URL as font base URL. - Simplified RendererContextInfo stuff to make it easier to understand. - Fixed handling of Type 1 fonts in auto-detection. - Reduced verbosity of font-related log output. - Updated Jakarta Commons IO to version 1.3.1 (the patch depends on it) - Various javadocs improvements git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@542237 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/xml')
-rw-r--r--test/xml/bugtests/font-dir.fo24
-rw-r--r--test/xml/pdf-encoding/pdf-encoding-test.xconf3
2 files changed, 27 insertions, 0 deletions
diff --git a/test/xml/bugtests/font-dir.fo b/test/xml/bugtests/font-dir.fo
new file mode 100644
index 000000000..c2178d7a1
--- /dev/null
+++ b/test/xml/bugtests/font-dir.fo
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="simplePM"
+ page-height="25cm"
+ page-width="20cm"
+ margin-top="1cm"
+ margin-bottom="1cm"
+ margin-left="1.5cm"
+ margin-right="1.5cm">
+ <fo:region-body margin-top="3cm" margin-bottom="3cm"/>
+ <fo:region-before extent="2.5cm"/>
+ <fo:region-after extent="2.5cm"/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+
+ <fo:page-sequence master-reference="simplePM">
+ <fo:flow flow-name="xsl-region-body">
+ <fo:block font-family="RageItalic" font-size="12pt">
+ This is a simple fo text in Rage italic font.
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+</fo:root>
diff --git a/test/xml/pdf-encoding/pdf-encoding-test.xconf b/test/xml/pdf-encoding/pdf-encoding-test.xconf
index 6046fb45c..82d126328 100644
--- a/test/xml/pdf-encoding/pdf-encoding-test.xconf
+++ b/test/xml/pdf-encoding/pdf-encoding-test.xconf
@@ -23,6 +23,9 @@
-->
<fop version="1.0">
+ <!-- Switch off font caching for the purposes of unit testing -->
+ <cache-fonts>false</cache-fonts>
+
<renderers>
<renderer mime="application/pdf">
<!-- disable PDF text compression -->