Re: embedding fonts fails for Cyrillic

2009-11-20 Thread Simon Pepping
On Thu, Nov 19, 2009 at 11:04:06AM +0100, Isabel Hofherr wrote:
> 
> 3.   So I decide to generate an appropriate font metrics file for it by 
> entering the command line options:
> 
> java -cp build\fop.jar; -jar 
> lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar

You swapped the -cp and -jar arguments, and you cannot use the -jar
option for generating metric files, only for a normal fop run. Try

java -cp 
lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar
 org.apache.fop.fonts.apps.TTFReader "Q:\fop\fonts\ERARKOI8.TTF ERARKOI8.XML"

Simon

-- 
Simon Pepping
home page: http://www.leverkruid.eu

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



Re: embedding fonts fails for Cyrillic

2009-11-19 Thread Chris Bowditch

Isabel Hofherr wrote:

Hi,


Hi,



we want to generate PDFs with *Docbook* to get different language output 
(e.g. Cyrillic, Japanese and simplified Chinese).
/Beginning with version 0.94 you can skip the generation of font metric 
files and remove the "font-metrics" attribute(?) in the font 
configuration. The font metrics files are, for the moment, still 
required if you use a TrueType Collection (*.ttc) and in that case you 
need to regenerate the font metrics file. /


àWe only use a .ttf – but it didn’t worked without a font-metrics 
attribute. The body text always was displayed with pound signs(#).//


The hash symbol (#) indicates that the font does not contain the 
requested glyph. It is not related to metrics files. I would expect the 
same behaviour with or without a metrics file.






/Unable to access jarfile 
lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar/


When entering only the following:

/java -cp build\fop.jar; -jar lib\avalon-framework-4.2.0.jar/

then this error message was displayed:

/Failed to load Main-Class manifest attribute from/ 
/lib\avalon-framework-4.2.0.jar/


/ /

/ /

Is it possible that this True Type Font doesn't contain the so-called 
Unicode "cmap" table? How can I check this?


You will have to use a Font Editor to verify the presence of the Unicode 
CMAP table, but this is not what the error is saying. The error is a 
classpath issue. I don't believe you require the metrics file, so no 
point in debugging this further. Instead you need to find an alternative 
font that does contain glyphs for the unicode characters in your XSL-FO 
File. If you send your XSL-FO File and Font File we can offer more 
specific advice.




I’m not  so familiar with Java so please give me a hint how to solve 
this problems.




Chris



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



embedding fonts fails for Cyrillic

2009-11-19 Thread Isabel Hofherr
Hi,

we want to generate PDFs with Docbook to get different language output (e.g. 
Cyrillic, Japanese and simplified Chinese).
First we tried to generate Cyrillic output by doing the following:

Prerequisites:

· FOP Version 0.94

· updated XSL styles to use the font as body font

Steps:

1.   Installing a True Type Font for Cyrillic (ER Arial KOI-8) in the fonts 
directory

2.   Added the font to the fop.xconf:

 

   

   

Note from your Help:

Beginning with version 0.94 you can skip the generation of font metric files 
and remove the "font-metrics" attribute(?) in the font configuration. The font 
metrics files are, for the moment, still required if you use a TrueType 
Collection (*.ttc) and in that case you need to regenerate the font metrics 
file.

-->We only use a .ttf - but it didn't worked without a font-metrics attribute. 
The body text always was displayed with pound signs(#).


3.   So I decide to generate an appropriate font metrics file for it by 
entering the command line options:

java -cp build\fop.jar; -jar 
lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar

org.apache.fop.fonts.apps.TTFReader

Q:\fop\fonts\ERARKOI8.TTF ERARKOI8.XML



But although I've added the correct version suffix to the jar files I got error 
messages:

Unable to access jarfile 
lib\avalon-framework-4.2.0.jar;lib\commons-logging-1.0.4.jar;lib\commons-io-1.3.1.jar

When entering only the following:

java -cp build\fop.jar; -jar lib\avalon-framework-4.2.0.jar

then this error message was displayed:

Failed to load Main-Class manifest attribute from lib\avalon-framework-4.2.0.jar




Is it possible that this True Type Font doesn't contain the so-called Unicode 
"cmap" table? How can I check this?
I'm not  so familiar with Java so please give me a hint how to solve this 
problems.

Thanks,
Isabel











Isabel Hofherr
Tech Comm Spc.
Kofax Development GmbH

Freiburger Strasse 6
79199 Kirchzarten
Germany

Tel: +49 (0) 766 197 97 12
Fax: +49 (0) 766 1979729
isabel.hofh...@kofax.com




This communication is only for the use of the intended recipient. It may 
contain confidential or proprietary information. If you are not the intended 
recipient or have received this communication in error, please notify the 
sender via phone and destroy this communication immediately.
Kofax Development GmbH
Sitz der Gesellschaft: Kirchzarten
Registergericht: Amtsgericht Freiburg i.Br.
Registernummer: HRB 7007
Geschäftsführer: Stefan Gaiser und Bradford Weller