You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Moriguchi Akihiro <bl...@gmail.com> on 2009/05/03 11:02:32 UTC

TTFReader error

Hello,

I have troubled with TTFReader to make font metric file.
I'm just start using fop reading "DocBook XSL The Complete Guide"
under mac OS X.

I tried following command at /opt/local/share/java/fop/0.94.

MyHost:0.94 #  java -cp
build/fop.jar;lib/avalon-framework;lib/commons-logging-1.0.4.jar;lib/commons-io-1.3.1.jar
org.apache.fop.fonts.apps.TTFReader
/opt/local/share/fonts/mixfont/fonts/ipag.ttf ./ipag.xml

and got following errors.

Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available
    -d64          use a 64-bit data model if available (implies
-server, only for x86_64)
    -client	  to select the "client" VM
    -server	  to select the "server" VM
    -jvm	  is a synonym for the "client" VM  [deprecated]
    -hotspot	  is a synonym for the "client" VM  [deprecated]
                  The default VM is client.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
lib/avalon-framework-4.2.0.jar: line 1: PK: command not found
lib/avalon-framework-4.2.0.jar: line 2: syntax error near unexpected token `)'
lib/avalon-framework-4.2.0.jar: line 2:
`h?0	META-INF/g?0META-INF/MANIFEST.MF???j?0E?????D??;???@J???A'???(???+;4?&??{?WZ#???I}Sܻ?<?')J????A?e??_A??H?Ȫ??W?ak<K?<8?&??{)6h:?R!n5N??#??????)??Z???8f?_??8'?q??̩???s???k??4??>f?؆x?݄6?0T??v?̍/?|.-?R?~K???R???'N?????_?PQ??VSI!?Pm??>ߴPK'
lib/commons-logging-1.0.4.jar: line 1: PK: command not found
lib/commons-logging-1.0.4.jar: line 2: syntax error near unexpected token `)'
lib/commons-logging-1.0.4.jar: line 2:
`??0	META-INF/??0META-INF/MANIFEST.MF?????0E{K??)??E?m?	?dE?f?I??g"?<??y?D??}???A?u?l)v^8?????2i??	n????#??f??ôAw(??&?#???_???{??????C_??%???
????c?? ??F??s?Uђ?w???-q)??U!U:c$Xȑ?G??>mچq?????ٱVZ]P??>?FPK'
lib/commons-io-1.3.1.jar: line 1: PK: command not found
lib/commons-io-1.3.1.jar: line 2: ??I6: command not found
lib/commons-io-1.3.1.jar: line 3: syntax error near unexpected token `)'
lib/commons-io-1.3.1.jar: line 3:
??I6?|ױMETA-INF/MANIFEST.MF??MK1?????SZ?b{[???T?ʐ????LȦ??ޤ?,??^?yg??yr?I?b??BM?D???*?}G?kޚ?uDH??????1ӷ?\???xT??CU????Z5d??J?g?[??Bq?8
       4??g?c)??	???#??e??u@?:g!>X4?O)??v^s?>
?Z??C??ť]??B?<I??|?GJ??y?Q?PK'T7??cRH?

Please give me some advise.

Akihiro Moriguchi

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


Re: TTFReader error

Posted by Moriguchi Akihiro <bl...@gmail.com>.
Sorry for my previous post.

Replacing the class separator semicolon(;) into colon(:) makes it works.

Thanks.

Akihiro Moriguchi

2009/5/3, Moriguchi Akihiro <bl...@gmail.com>:
> Hello,
>
> I have troubled with TTFReader to make font metric file.
> I'm just start using fop reading "DocBook XSL The Complete Guide"
> under mac OS X.
>
> I tried following command at /opt/local/share/java/fop/0.94.
>
> MyHost:0.94 #  java -cp
> build/fop.jar;lib/avalon-framework;lib/commons-logging-1.0.4.jar;lib/commons-io-1.3.1.jar
> org.apache.fop.fonts.apps.TTFReader
> /opt/local/share/fonts/mixfont/fonts/ipag.ttf ./ipag.xml
>
> and got following errors.
>
> Usage: java [-options] class [args...]
>            (to execute a class)
>    or  java [-options] -jar jarfile [args...]
>            (to execute a jar file)
>
> where options include:
>     -d32          use a 32-bit data model if available
>     -d64          use a 64-bit data model if available (implies
> -server, only for x86_64)
>     -client	  to select the "client" VM
>     -server	  to select the "server" VM
>     -jvm	  is a synonym for the "client" VM  [deprecated]
>     -hotspot	  is a synonym for the "client" VM  [deprecated]
>                   The default VM is client.
>
>     -cp <class search path of directories and zip/jar files>
>     -classpath <class search path of directories and zip/jar files>
>                   A : separated list of directories, JAR archives,
>                   and ZIP archives to search for class files.
>     -D<name>=<value>
>                   set a system property
>     -verbose[:class|gc|jni]
>                   enable verbose output
>     -version      print product version and exit
>     -version:<value>
>                   require the specified version to run
>     -showversion  print product version and continue
>     -jre-restrict-search | -jre-no-restrict-search
>                   include/exclude user private JREs in the version search
>     -? -help      print this help message
>     -X            print help on non-standard options
>     -ea[:<packagename>...|:<classname>]
>     -enableassertions[:<packagename>...|:<classname>]
>                   enable assertions
>     -da[:<packagename>...|:<classname>]
>     -disableassertions[:<packagename>...|:<classname>]
>                   disable assertions
>     -esa | -enablesystemassertions
>                   enable system assertions
>     -dsa | -disablesystemassertions
>                   disable system assertions
>     -agentlib:<libname>[=<options>]
>                   load native agent library <libname>, e.g. -agentlib:hprof
>                     see also, -agentlib:jdwp=help and -agentlib:hprof=help
>     -agentpath:<pathname>[=<options>]
>                   load native agent library by full pathname
>     -javaagent:<jarpath>[=<options>]
>                   load Java programming language agent, see
> java.lang.instrument
> lib/avalon-framework-4.2.0.jar: line 1: PK: command not found
> lib/avalon-framework-4.2.0.jar: line 2: syntax error near unexpected token
> `)'
> lib/avalon-framework-4.2.0.jar: line 2:
> `h?0	META-INF/g?0META-INF/MANIFEST.MF???j?0E?????D??;???@J???A'???(???+;4?&??{?WZ#???I}Sܻ?<?')J????A?e??_A??H?Ȫ??W?ak<K?<8?&??{)6h:?R!n5N??#??????)??Z???8f?_??8'?q??̩???s???k??4??>f?؆x?݄6?0T??v?̍/?|.-?R?~K???R???'N?????_?PQ??VSI!?Pm??>ߴPK'
> lib/commons-logging-1.0.4.jar: line 1: PK: command not found
> lib/commons-logging-1.0.4.jar: line 2: syntax error near unexpected token
> `)'
> lib/commons-logging-1.0.4.jar: line 2:
> `??0	META-INF/??0META-INF/MANIFEST.MF?????0E{K??)??E?m?	?dE?f?I??g"?<??y?D??}???A?u?l)v^8?????2i??	n????#??f??ôAw(??&?#???_???{??????C_??%???
> ????c?? ??F??s?Uђ?w???-q)??U!U:c$Xȑ?G??>mچq?????ٱVZ]P??>?FPK'
> lib/commons-io-1.3.1.jar: line 1: PK: command not found
> lib/commons-io-1.3.1.jar: line 2: ??I6: command not found
> lib/commons-io-1.3.1.jar: line 3: syntax error near unexpected token `)'
> lib/commons-io-1.3.1.jar: line 3:
> ??I6?|ױMETA-INF/MANIFEST.MF??MK1?????SZ?b{[???T?ʐ????LȦ??ޤ?,??^?yg??yr?I?b??BM?D???*?}G?kޚ?uDH??????1ӷ?\???xT??CU????Z5d??J?g?[??Bq?8
>        4??g?c)??	???#??e??u@?:g!>X4?O)??v^s?>
> ?Z??C??ť]??B?<I??|?GJ??y?Q?PK'T7??cRH?
>
> Please give me some advise.
>
> Akihiro Moriguchi
>

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