diff options
author | Adrian Cumiskey <acumiskey@apache.org> | 2008-05-06 16:18:51 +0000 |
---|---|---|
committer | Adrian Cumiskey <acumiskey@apache.org> | 2008-05-06 16:18:51 +0000 |
commit | 175c6a8d234fc44e8b41bad5816645c2a9184a87 (patch) | |
tree | 43ff4a8ddf613e27336201697e83d0028e4ab277 /test/config | |
parent | e413e9c8a102146703e2f47291f5894476edc48b (diff) | |
download | xmlgraphics-fop-175c6a8d234fc44e8b41bad5816645c2a9184a87.tar.gz xmlgraphics-fop-175c6a8d234fc44e8b41bad5816645c2a9184a87.zip |
Merged revisions 653826 via svnmerge from
https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk
........
r653826 | acumiskey | 2008-05-06 17:14:09 +0100 (Tue, 06 May 2008) | 6 lines
* Added font substitution configuration reader, model, business logic, junit test and docs.
* Added java 1.5 generics comments to many methods.
* Performed some preparatory cleanup and refactoring which includes (but is not limited to..)
- Creating a FontManager delegating class that is called upon when renderers are setting up fonts
- A new FontCollection interface and concrete implementing classes to supercede the static FontSetup mechanism.
........
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@653827 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/config')
-rw-r--r-- | test/config/test_fonts_substitution.xconf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/test/config/test_fonts_substitution.xconf b/test/config/test_fonts_substitution.xconf new file mode 100644 index 000000000..b5638a035 --- /dev/null +++ b/test/config/test_fonts_substitution.xconf @@ -0,0 +1,33 @@ +<?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> + + <fonts> + <substitutions> + <substitution> + <from font-family="Times" font-style="italic"/> + <to font-family="Gladiator" font-style="normal" font-weight="bold"/> + </substitution> + </substitutions> + </fonts> + + <renderers> + <renderer mime="application/pdf"> + <fonts> + <font metrics-url="test/resources/fonts/glb12.ttf.xml" embed-url="test/resources/fonts/glb12.ttf"> + <font-triplet name="Gladiator" style="normal" weight="bold"/> + </font> + </fonts> + </renderer> + </renderers> +</fop> |