xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregoire Meier <me...@epicard.ch>
Subject Re: AFP & FOP Font Problem
Date Wed, 07 Sep 2011 09:43:44 GMT
Hi Peter,

Thank you for your answer.
I have tried with FOP version 0.95 (but same result with 1.0)
I would like to use the 0.95 version (if possible)

About the ./font/ibm directory, I already have tried several form (also the 
full path) without success. I seems that it does not read the <font> part of 
the configuration file (but I am sure that it open the right configuration 
file, because I have tried to add some xml error within this file, and the 
parser detect it)

My fop.xconf look like this :

<?xml version="1.0"?>
  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


  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  See the License for the specific language governing permissions and
  limitations under the License.
<!-- $Id: fop.xconf 447325 2006-09-18 08:55:33Z jeremias $ -->


This is an example configuration file for FOP.
This file contains the same settings as the default values
and will have no effect if used unchanged.

Relative config url's will be resolved relative to
the location of this file.


<!-- NOTE: This is the version of the configuration -->
<fop version="1.0">

  <!-- Base URL for resolving relative URLs -->
  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size 
of pixels in SVG and bitmap images, default: 72dpi -->
  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the 
target resolution for generated bitmaps, default: 72dpi -->
  <!-- Default page-height and page-width, in case
       value is specified as auto -->
  <default-page-settings height="11in" width="8.26in"/>
  <!-- Information for specific renderers -->
  <!-- Uses renderer mime type for renderers -->

	<renderer mime="application/x-afp">
	  <!-- AFP Renderer -->  
			<!-- This is an example of mapping actual IBM raster 
fonts / code pages to a FOP font -->
			<!-- The afp-font element defines the IBM code page, 
the matching Java encoding and the
				 path to the font -->
					  <!-- For a raster font a separate 
element for each font size is required providing
					   the font size and the corresponding 
IBM Character set name -->
				<afp-font name="Arial" type="raster" 
codepage="T1EX0000" encoding="Cp1146" path="./fonts/ibm">
					<afp-raster-font size="5" 
					<afp-raster-font size="7" 
					<afp-raster-font size="7" 
					<afp-raster-font size="9" 
					<afp-raster-font size="10" 
					<afp-raster-font size="10" 
					<afp-raster-font size="12" 

			<!-- These are the usual FOP font triplets as they 
apply to this font -->
			<font-triplet name="Arial" style="normal" 


Thanks for your help,

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message