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: Postscript - Helvetica
Date Thu, 07 Oct 2010 08:52:53 GMT
The built-in Helvetica (part of the base 14 set) only supports WinAnsi
encoding as you noticed. If you explicitely configure and embed the
Helvetica Type 1 font, I expect FOP to handle all characters/glyphs found
in the font file.

You'd need to add the following to your config file:

<font embed-url="file:///C:/myfonts/HV______.PFB">
  <font-triplet name="Helvetica" style="normal" weight="normal"/>
</font>


On 06.10.2010 13:02:04 Bogusław Fries wrote:
> Hi, 
>  
> I have the following problem. 
>  
> In the xml file I have ( polish characters )
> &#8230;&#8230;
>  
>     <ReportHeader>
>         <date>06-08-2009 10:22:01</date>
>         <courierName>ąćęłńóśżź ĄĆĘŁŃÓŚŻŹ  </courierName>
>         <courierCode>RB8WA1</courierCode>
>         <depot>1305</depot>
>         <documentType>D</documentType>
>     </ReportHeader>
> &#8230;&#8230;.
>  
> In xsl transformate I use font-family=&#8221;Helvetica&#8221;
>  
> My fop configuration:
> &#8230;
>         <renderer mime="application/postscript">
>             <auto-rotate-landscape>true</auto-rotate-landscape>
>             <fonts>
> </fonts>
>        </renderer>            
> &#8230;.
> I am using fop version 1.0
>  
> I did the fop transformation into  POSTSCRIPT format.  Instead of ąćęłńóśżź
ĄĆĘŁŃÓŚŻŹ   I got #####ó### #####Ó### unfortunately.
>  
> So, I tried to solve this making some changes in the source code. 
>  
> I made in src/codegen/fonts some changes and now is everything fine.
>  
> Here is my CEEncoding ( from the  postscript output )
>  
> /CEEncoding [
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /.notdef /space /exclam /quotedbl
> /numbersign /dollar /percent /ampersand /quoteright
> /parenleft /parenright /asterisk /plus /comma
> /minus /period /slash /zero /one
> /two /three /four /five /six
> /seven /eight /nine /colon /semicolon
> /less /equal /greater /question /at
> /A /B /C /D /E
> /F /G /H /I /J
> /K /L /M /N /O
> /P /Q /R /S /T
> /U /V /W /X /Y
> /Z /bracketleft /backslash /bracketright /asciicircum
> /underscore /quoteleft /a /b /c
> /d /e /f /g /h
> /i /j /k /l /m
> /n /o /p /q /r
> /s /t /u /v /w
> /x /y /z /braceleft /bar
> /braceright /tilde /.notdef /.notdef /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /Sacute /.notdef /.notdef /Zacute /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /.notdef /.notdef /.notdef /.notdef
> /.notdef /sacute /.notdef /.notdef /zacute
> /space /.notdef /breve /Lslash /currency
> /Aogonek /.notdef /dieresis /.notdef /Scaron
> /Scedilla /Tcaron /Zacute /hyphen /Zcaron
> /Zdotaccent /degree /aogonek /ogonek /lslash
> /acute /lcaron /.notdef /caron /cedilla
> /aogonek /scedilla /tcaron /zacute /hungarumlaut
> /zcaron /zdotaccent /Racute /Aacute /Acircumflex
> /Abreve /Adieresis /Lacute /Cacute /Ccedilla
> /Ccaron /Eacute /Eogonek /Edieresis /Ecaron
> /Iacute /Icircumflex /Dcaron /Eth /Nacute
> /Ncaron /Oacute /Ocircumflex /Ohungarumlaut /Odieresis
> /multiply /Rcaron /Uring /Uacute /Uhungarumlaut
> /Udieresis /Yacute /Tcedilla /germandbls /racute
> /aacute /acircumflex /abreve /adieresis /lacute
> /cacute /ccedilla /ccaron /eacute /eogonek
> /edieresis /ecaron /iacute /icircumflex /dcaron
> /eth /nacute /ncaron /oacute /ocircumflex
> /ohungarumlaut /odieresis /divide /rcaron /uring
> /uacute /uhungarumlaut /udieresis /yacute /tcedilla
> /dotaccent
> ] def
>  
>  
> After compilation and use the compiled version I got proper output : ąćęłńóśżź
ĄĆĘŁŃÓŚŻŹ   
>  
> Of course I cannot use such a fop version in the producton environment.  So, my question
is: how to configure the fop to obtain proper encoding?
>  
>  
> Boguś
> 




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