xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: Problem using Lucida Console font
Date Wed, 07 May 2008 08:30:32 GMT
Worked fine for me with and without additional quotes in 0.95beta (same
setup as yours except I used Sun JVM 1.5.0_14). Are you sure that your
config file gets used?

Test file:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Lucida Console">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="A4">
    <fo:flow flow-name="xsl-region-body">
      <fo:block>Hello World!</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

Config file:
<?xml version="1.0" encoding="UTF-8"?>
<fop>
  <renderers>
    <renderer mime="application/pdf">
      <fonts>
        <auto-detect/>  
      </fonts>
    </renderer>
  </renderers>
</fop>


On 07.05.2008 10:11:09 Antti Karanta wrote:
> 
> 
>                      Hi!
> 
>    My adventures with fonts continue. Now I run into trouble trying to use  
> Lucida Console (in pdf).
> 
> 
>    What I have is this:
> 
> <fo:block space-before.minimum="0.8em" space-before.optimum="1em"  
> space-before.maximum="1.2em" space-after.minimum="0.8em"  
> space-after.optimum="1em" space-after.maximum="1.2em" hyphenate="false"  
> wrap-option="no-wrap" white-space-collapse="false"  
> white-space-treatment="preserve" linefeed-treatment="preserve"  
> text-align="start" font-family="'Lucida Console'" id="d0e69">blah  
> blah</fo:block>
> 
>    I also tried
> 
> font-family="Lucida Console"
> 
>    (i.e. without the single quotes)
> 
>    FOP says
> 
> WARNING: Font 'Lucida Console,normal,400' not found. Substituting with  
> 'any,normal,400'.
> 
> 
>    This is strange since the other fonts in c:\WINDOWS\Fonts directory seem  
> to work ok when referenced (e.g. Tahoma, Verdana).
> 
>    Could there be a problem because the font name has a space in it?
> 
>    Do I have to create a separate font metrics file? If so, why is this  
> necessary for Lucida Console, but not e.g. for Tahoma and Verdana?
> 
> 
>    My environment: win xp sp 2, java 1.5.0_15, fop 0.95beta
> 
> in my fop.xconf I have
> 
>    <renderers>
>      <renderer mime="application/pdf">
>        <fonts>
>          <auto-detect/>
>        </fonts>
> 
> 
> 
>        -::Antti::-
> 
> 



Jeremias Maerki


---------------------------------------------------------------------
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