Re: Problem with arial font access

2011-09-06 Thread mehdi houshmand
Hi,

That's one way to do it, but if you want to see which fonts are
available to your JVM then you can use the following command:

import java.awt.GraphicsEnvironment;
...
// For font family names
GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames()
// For font details, from here you can get more information about the fonts
GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts()

Hope that helps

Mehdi

On 5 September 2011 22:04, J.Pietschmann j3322...@yahoo.de wrote:
 Am 05.09.2011 13:09, schrieb Theresa Jayne Forster:
 How do you determine the font-family name for a font loaded by autodetect?
 ...
 File names are not always the same

 Most Font file viewers (or file managers) can display the real
 font name. On Windows (Vista or later), go to the directory
 containing the fonts (usually C:\Windows\Fonts or such), and you'll
 see the real font names. Right click and select properties from
 the context menu, and you'll get the file name and other info. Double
 click, and the windows font viewer opens, again displaying the font
 name. There's similar functionality on Unix/Linux and Mac. If all
 else fails, grab a font editor for your plattform, open the font,
 and view the font properties, or meta data.

 J.Pietschmann

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



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



Re: Problems with JPSForPrinting.java (PCL)

2011-09-06 Thread Everson Rogério


Hi Group,

After some testing with PCL generated by FOP 0.20.5, I saw that this file does 
not have command of the PCL reset (Esc E) at the beginning of the file.

Why is the FOP 0.20.5 does not generate the PCL with this command?

Any ideas?


Note: With FOP 1.0 the command PCL (EscE) is include in the file.


Thanks
Everson




De: Everson Rogério everso...@yahoo.com.br
Para: fop-users@xmlgraphics.apache.org fop-users@xmlgraphics.apache.org
Enviadas: Sexta-feira, 2 de Setembro de 2011 16:01
Assunto: Problems with JPSForPrinting.java (PCL)


Hi group,


I'm using the class PCL file JPSForPrinting.java  to create PCL with  XML and 
XSL, but is not working.
With Driver.RENDER_PDF works, but with Driver.RENDER_PCL does not work ... : (
driver.setRenderer (Driver.RENDER_PCL);

The files are attached for reference.

Do you have any tips?

In which list of emails I could send this question?


I'm using Java 6 and Fop 0.20.5.


Thanks!
Everson



Re: Problems with JPSForPrinting.java (PCL)

2011-09-06 Thread Pascal Sancho
Hi Everson,

FOP 0.2x is an old design, and getting info about it is quite difficult
today, because it is no longer maintained, and FOP Web site doesn't
carry such info for a long time.
If you get no answer on this list, you can dive into the old source or
documentation at [1].

Note that the /src/documentation/content/xdocs folder should contain the
source for the Website of this version.

[1] https://svn.apache.org/repos/asf/xmlgraphics/fop/tags/fop-0_20_5/



Le 06/09/2011 15:54, Everson Rogério a écrit :
 
 Hi Group,
 
 After some testing with PCL generated by FOP 0.20.5, I saw that this
 file does not have command of the PCL reset (Esc E) at the beginning
 of the file.
 
 Why is the FOP 0.20.5 does not generate the PCL with this command?
 
 Any ideas?
 
 Note: With FOP 1.0 the command PCL (EscE) is include in the file.
 
 Thanks
 Everson
 
 
 *De:* Everson Rogério everso...@yahoo.com.br
 *Para:* fop-users@xmlgraphics.apache.org
 fop-users@xmlgraphics.apache.org
 *Enviadas:* Sexta-feira, 2 de Setembro de 2011 16:01
 *Assunto:* Problems with JPSForPrinting.java (PCL)
 
 Hi group,
 
 I'm using the class PCL file JPSForPrinting.java to create PCL with 
 XML and XSL, but is not working.
 With Driver.RENDER_PDF works, but with Driver.RENDER_PCL does not
 work ... : (
 driver.setRenderer (Driver.RENDER_PCL);
 
 The files are attached for reference.
 
 Do you have any tips?
 In which list of emails I could send this question?
 
 I'm using Java 6 and Fop 0.20.5.
 
 Thanks!
 Everson
 
 


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



Norwegian hyphenation rules

2011-09-06 Thread Lars Bjørndal
I'd like to add support for Norwegian hyphenation in fop. I'm running a
distro built fop package, version 0.95 on Fedora 14. On offo.sf.net, I
can't find any download link for files like nohyph.xml or fop-hyph.jar
that's mentioned in the web pages. Can someone please give me some hints
on how to get this working?

Thanks,
Lars

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



AFP FOP Font Problem

2011-09-06 Thread Gregoire Meier
FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();   
fopFactory.setUserConfig(new File(./conf/fop.xconf));
out = new FileOutputStream(afp);
out = new BufferedOutputStream(out);
Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);


--- 6 sept. 2011 17:43:39 org.apache.fop.render.afp.AFPRenderer setupFontInfo
ATTENTION: No AFP fonts configured - using default setup




Hi all,

I have some problems with FOP  AFP.
I would like to setup fonts for an AFP output.

The Java code is :

FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();   
fopFactory.setUserConfig(new File(./conf/fop.xconf));
out = new FileOutputStream(afp);
out = new BufferedOutputStream(out);
Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);

and it always responds :
org.apache.fop.render.afp.AFPRenderer setupFontInfo
ATTENTION: No AFP fonts configured - using default setup


but into fop.xconf I have 
...
renderer mime=application/x-afp
  afp-font type=raster codepage=T1EX encoding=Cp1146 path=./fonts/
ibm
  afp-raster-font size=5 characterset=C0ZA05K0/
   ...
 /afp-font
  font-triplet name=Arial style=normal weight=normal/
...


Any idea is welcome

Thanks
Greg


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