xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Hancock <peter.hanc...@gmail.com>
Subject Re: AFP & FOP Font Problem
Date Wed, 07 Sep 2011 11:07:34 GMT
Hi Gregoire,

The font element should be a child of the fonts element in your fop.xconf.

Try that and please let me know if you need more help.

Peter

On Wed, Sep 7, 2011 at 10:43 AM, Gregoire Meier <meier@epicard.ch> wrote:
> 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
>
>       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.
> -->
> <!-- $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 -->
>  <base>.</base>
>
>  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size
> of pixels in SVG and bitmap images, default: 72dpi -->
>  <source-resolution>72</source-resolution>
>  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the
> target resolution for generated bitmaps, default: 72dpi -->
>  <target-resolution>72</target-resolution>
>
>  <!-- 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 -->
>  <renderers>
>
>
>        <renderer mime="application/x-afp">
>          <!-- AFP Renderer -->
>
>                        <!-- This is an example of mapping actual IBM raster
> fonts / code pages to a FOP font -->
>                        <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"
> characterset="C0ZA05K0"/>
>                                        <afp-raster-font size="7"
> characterset="C0ZA00K0"/>
>                                        <afp-raster-font size="7"
> characterset="C0ZA05E0"/>
>                                        <afp-raster-font size="9"
> characterset="C0ZA00G0"/>
>                                        <afp-raster-font size="10"
> characterset="C0ZA0080"/>
>                                        <afp-raster-font size="10"
> characterset="C0ZA00I0"/>
>                                        <afp-raster-font size="12"
> characterset="C0ZA00M0"/>
>
>                                </afp-font>
>
>                        <!-- These are the usual FOP font triplets as they
> apply to this font -->
>
>                        <font-triplet name="Arial" style="normal"
> weight="normal"/>
>
>
>                  </font>
>        </renderer>
>
>
>  </renderers>
>
> </fop>
>
>
>
> Thanks for your help,
> Gregoire
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>

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


Mime
View raw message