XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> + Maximum recursion depth exceed... (3)
-> + How do I develop the server si... (2)
-> + XSD Reuse (2)
-> + what happened to my preview re... (3)
-> + How do I use the Custom XML Co... (4)
-> + WYSIWYG missing in release 2 o... (2)
-> + space between elements (3)
-> + Oracle XML Gateway output CONV... (6)
-> + Someone please help me install... (5)
-> + XML Schema (XSD) to COBOL Data... (2)
-> + Can't compile Java (9)
-> + Trouble using the UDDI Browser (5)
-> + JVM Problem when installing Ar... (2)
-> + Stylus Studio Enterprise 8r2 d... (2)
-> - xml report headers (1)
-> + ddtek:sql-delete and ddtek:sql... (4)
-> + Validation blocked (4)
-> + List from XMl to be displayed ... (2)
-> + reports - changing data source (5)
-> + Disable HTML tags in Sense:X (8)
-> + .NETCompiledTransform Paramete... (3)
-> + Why Is The Saxon Processor So ... (13)
-> + Still can not get "integrated ... (15)
-> + quick xml gen from xsd (2)
-> - new to sylus, issue with if va... (1)
-> + Question about using Data Dire... (5)
-> + Why is the DB to XML Data Sour... (2)
-> + Relational db => XML pipeline (2)
-> + connection to oracle 10g (8)
-> + xsl:function misdemeanor (3)
-> + Records Extraction from XML (2)
-> + line break variable destroyed (2)
-> + Restricting on an extended typ... (5)
-> + folding all xml elements at on... (2)
-> + help converting a text file to... (5)
-> + Java Functions (5)
-> + XML Schema - extend then restr... (6)
-> + Converting SGML to XML in pipe... (2)
-> + Unattended install? (3)
-> + what are the differences betwe... (2)
-> + cannot install (2)
-> + Missing Parameters within Web ... (3)
-> + XSLT processors not creating o... (8)
-> - How to format a seperate colum... (1)
-> + Finnish language characters (3)
-> + x12 schemas (10)
-> + Howto search multiple XML file... (3)
-> + Chameleon Schema? (2)
-> + Problems generating pdf (9)
-> + Cannot install Stylus Studio R... (19)
-> + source xml of a report (3)
-> + File I/O Error when encounter ... (3)
-> + substitution groups in xslt ma... (4)
-> + Delete rows in a MS SQL Server... (7)
-> - Attaching DB2 Database in File... (1)
-> + Can't debug xsl examples with ... (14)
-> + Best way to transform existing... (2)
-> + Exception in generated java co... (3)
-> + Java API for converting EDI X1... (2)
-> + XPath Query Editor slow perfor... (7)
-> + mapper schema problem (5)
-> + cursor issue in stylus studio ... (2)
-> + how to generate xslt code for ... (4)
-> + Web Service (12)
-> + Additional rule (2)
-> + Help needed: XMLSchema and unp... (9)
-> + Module settings for external X... (3)
-> + Finding Errors in the XML File (6)
-> + CSV 2 XML (2)
-> + Automatic Namespace when using... (2)
-> + Can't find 'Associate XML Sche... (3)
-> + Calling Stylus Studio API from... (2)
-> + EDI TO XML using the Stylus St... (4)
-> + MarkLogic Integration (4)
-> + (null)0:0 (3)
-> + Recent Windows Patch for MSXML... (3)
-> + Show XML from Schema (2)
-> + xml publisher - report to xslt... (4)
-> + EDI TO XML using the Stylus St... (3)
-> + Unable to Generate XML file fr... (6)
-> + DB to XML in Enterprise Suite (2)
-> + pdf to xml (2)
-> - Open External Schema - button ... (1)
-> - Unable to Generate XML from xC... (1)
-> + Unable to Generate XML from xC... (2)
-> + pre-proc processing in xml (2)
-> + FATAL ERROR: Expected comment ... (2)
-> + How to split window (3)
-> + XML Transformation Architectur... (2)
-> + only one record get run in an ... (2)
-> + xbrl schema file (2)
-> + Compare of 2 xml files (2)
-> + config control (4)
-> + create copy link in mapper (5)
-> + SGML DTD (3)
-> + command line access to your xs... (4)
-> + XML Schema: Attribute Choice (2)
-> + Upload file w/ topic (6)
-> - Can't View Properties (1)
-> + Can't View Properties (5)
-- Previous [1381-1400] [1401-1420] [1421-1440] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
(Deleted User) Subject: How to support other TTF if POST-Processor is FOP
Author: (Deleted User)
Date: 06 Dec 2001 03:03 AM
HI,

I'm now develop the letters the WFM project. For testing the command line command I'm using the FOP.

The problem is that it not support the Univers True Type Fond.

How can I organize that.

Kind regards,

Richard Francken
Atos Origin
eBusiness Solutions

Postnext
Minollo I.Subject: Re: How to support other TTF if POST-Processor is FOP
Author: Minollo I.
Date: 06 Dec 2001 09:33 AM
Richard,
are you saying that you need to use a post-processing different from
Apache Fop? What is it? Is that something that you can configure in the
scenario dialog and that you would also like to use from the command line?

Minollo

Postnext
(Deleted User) Subject: Re: How to support other TTF if POST-Processor is FOP
Author: (Deleted User)
Date: 10 Dec 2001 05:21 AM
What I'm saying is that I'm using the font Univers. But the FOP doesn't support this font. How can I tell the FOP to support this font?

Richard (F.) Francken

Postnext
Minollo I.Subject: Re: How to support other TTF if POST-Processor is FOP
Author: Minollo I.
Date: 10 Dec 2001 09:47 AM
I don't know how to help you here.
You probably want to contact the Apache XML/FOP group
(http://xml.apache.org/fop/index.html), who are the developers of FOP.

Minollo

Postnext
Mike SmirnovSubject: How to support other TTF if POST-Processor is FOP
Author: Mike Smirnov
Date: 14 Dec 2001 03:54 AM

On 12/6/01 3:03:54 AM, Richard Francken wrote:

>HI,
>
>I'm now develop the letters
>the WFM project. For testing
>the command line command I'm
>using the FOP.
>
>The problem is that it not
>support the Univers True Type
>Fond.

Hi, Richard!

It is easy enough to add custom true type fonts support to FOP, if you just use FOP from Apache. Following Apache instruction you should run this command for each font file:
java org.apache.fop.fonts.apps.TTFReader C:\Winnt\Fonts\univer.ttf C:\Winnt\Fonts\univer.xml
(This assumes you have Java VM installed and file fop.jar is in your CLASSPATH environment variable.)

Then you should edit your userconfig.xml file in FOP_Dir\conf. Add this lines between <fonts> and </fonts> tags (don't forget to uncomment this block):

<font metrics-file="file:///C:/WINNT/Fonts/univer.xml" kerning="yes" embed-file="C:\WINNT\Fonts\univer.ttf"> <font-triplet name="Univers" style="normal" weight="normal"/> </font> <font metrics-file="file:///C:/WINNT/Fonts/univerb.xml" kerning="yes" embed-file="C:\WINNT\Fonts\univerb.ttf">

That's all. Now when you invoke FOP do it as:

java org.apache.fop.apps.FOP -c FOP_Dir\conf\userconfig.xml some.fo some.pdf

But the problem do arise when you try to use this within Stylus Studio. I didn't managed to use FOP as custom post-processor with options needed. So I was forced to use FOP as Stylus Studio plugin. But I slightly changed the source file from FOP_Dir\src\org\apache\fop\apps\CommandLineOptions.java by including line:
userConfigFile = new File("Fop_Dir/conf/userconfig.xml"); then recompiled all sources (all you need to do just run the FOP_Dir\build.bat) and change file Stylus Studio\bin\Plugins\Fop\fop.jar into new fop.jar I built.

Sorry if it looks a bit messy. But maybe someone will propose more comfortable way to use custom fonts in FOP within Stylus Studio.

Mike Smirnov

Postnext
Minollo I.Subject: Re: How to support other TTF if POST-Processor is FOP
Author: Minollo I.
Date: 14 Dec 2001 11:22 AM
br> >java org.apache.fop.apps.FOP -c FOP_Dir\conf\userconfig.xml some.fo some.pdf
>
>But the problem do arise when you try to use this within Stylus Studio. I
>didn't managed to use FOP as custom post-processor with options needed.

I believe that if you create a custom post-processor with this options:
java org.apache.fop.apps.Fop -c FOP_Dir\conf\userconfig.xml -fo %1 %2

....things should work fine.

>But maybe someone will propose more comfortable way to use custom fonts in
>FOP within Stylus Studio.

We hear you; we'll make it easier to specify additional options to FOP
post-processing; I'm creating a new PCR for this.

Thanks for the suggested solution,
Minollo

Postnext
Mike SmirnovSubject: Re: How to support other TTF if POST-Processor is FOP
Author: Mike Smirnov
Date: 17 Dec 2001 05:40 AM
On 12/14/01 11:22:31 AM, Carlo Innocenti wrote:


>I believe that if you
>create a custom post-processor
>with this options:
> java org.apache.fop.apps.Fop -c >FOP_Dir\conf\userconfig.xml
>-fo %1 %2

>....things should
>work fine.
It actually works. Thank you.

Mike Smirnov



Postnext
(Deleted User) Subject: Re: How to support other TTF if POST-Processor is FOP
Author: (Deleted User)
Date: 23 Dec 2001 04:10 PM
I'm trying your solution, but get some problems. Do you had installed the FOP software or only the Stylus software?

Any way thanks for the help :-)

Richard Francken

Posttop
Mike SmirnovSubject: Re: How to support other TTF if POST-Processor is FOP
Author: Mike Smirnov
Date: 25 Dec 2001 07:11 AM
On 12/23/01 4:10:17 PM, Richard Francken wrote:

>I'm trying your solution, but get some >problems. Do you had installed the FOP >software or only the Stylus software? Any >way thanks for the help:-)



>Richard Francken

Yes, I have Apache Fop software installed. But there's no big difference between using FOP from its manufacturer Apache or one included in Stylus Studio. If by any reason you don't want to install Apache Fop, you should follow the next steps:
  1. Generate XML metrics for your font:
    java -cp D:\Progra~1\eXcelo~1\Stylus~1\bin\Plugins\Fop\fop.jar org.apache.fop.fonts.apps.TTFReader C:\WINNT\Fonts\univer.ttf univer.xml
  2. Create configuration file your_config.xml in any catalog. For example in ...\Stylus Studio\bin\Plugins\Fop with following text:
    
    <configuration>
    
    	<fonts>
    
     		<font metrics-file="file:///C:/WINNT/Fonts/univer.xml" kerning="yes" embed-file="C:\WINNT\Fonts\univer.ttf">
    
        	<font-triplet name="Univers" style="normal" weight="normal"/>
    
     		</font>
    
     		<font metrics-file="file:///C:/WINNT/Fonts/univerb.xml" kerning="yes" embed-file="C:\WINNT\Fonts\univerb.ttf">
    
        	<font-triplet name="Univers" style="normal" weight="bold"/>
    
     		</font>
    
     		<font metrics-file="file:///C:/WINNT/Fonts/univeri.xml" kerning="yes" embed-file="C:\WINNT\Fonts\univeri.ttf">
    
        	<font-triplet name="Univers" style="italic" weight="normal"/>
    
     		</font>
    
     		<font metrics-file="file:///C:/WINNT/Fonts/univerbi.xml" kerning="yes" embed-file="C:\WINNT\Fonts\univerbi.ttf">
    
        	<font-triplet name="Univers" style="italic" weight="bold"/>
    
     		</font>
    
    	</fonts>
    
    </configuration>
    
    				
    I have this file in Apache FOP distribution.
  3. Now in Scenario Properties for your XSL stylesheet go to Post-process tab. Check Custom Post-Process radiobutton and enter the following command line:
    java -cp D:\Progra~1\eXcelo~1\Stylus~1\bin\Plugins\Fop\fop.jar org.apache.fop.apps.Fop -c D:\Progra~1\eXcelo~1\Stylus~1\bin\Plugins\Fop\your_config.xml %1 %2
    And choose .pdf as generated file extension.
  4. That's all, I suppose.
Good luck,
Mike Smirnov

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.