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



Problem with arial font access

2011-09-05 Thread Philippe Juhel
Hi, 

 

I run the 1.0 FOP version on a XP windows system.

If I don’t specify a configuration file (fop –fo test.xsl –pdf res.pdf), I
get the following warnings : 

 

5 sept. 2011 11:19:51 org.apache.fop.events.LoggingEventListener
processEvent

ATTENTION: Font arial,normal,400 not found. Substituting with
any,normal,400.

5 sept. 2011 11:19:51 org.apache.fop.events.LoggingEventListener
processEvent

ATTENTION: Font arial,normal,700 not found. Substituting with
any,normal,700.

 

Now, I use the template for the configuration file and I add the following
lines : 

 

font kerning=yes

  embed-url=file:///C:/windows/fonts/arial.ttf

 font-triplet name=arial style=normal weight=normal/

  /font

  font kerning=yes

  embed-url=file:///C:/windows/fonts/arialbd.ttf

 font-triplet name=arial style=normal weight=bold/

  /font

 

And with 

fop –c fop.xconf –fo test.xsl –pdf res.pdf

 

it works (no more warning about arial not found).

 

But it’s not really practical, easy to use a configuration file and add ALL
the fonts I want to use. Is it possible to just specify a folder with a lot
of fonts (like C:\windows\fonts) and have all the fonts automatically
available?

 

I try  :

auto-detect/

Or 

directoryC:\windows\fonts/directory

 

But it doesn’t work.

 

Any idea?

 

Regards,

 

Philippe Juhel

Assistant au pôle GEI (Génie Electronique et Informatique)

ICAM

75, av de Grande Bretagne

31300 Toulouse

Tél : 05-34-50-50-45

Mail : philippe.ju...@icam.fr

 



Re: Problem with arial font access

2011-09-05 Thread mehdi houshmand
Hi Philippe,

You can try and get that working, but there are several considerations
you must take if you're wanting to use the  auto-detect. feature,
the most significant of which is that the name you set in
font-family must match the system font name. IMO configuring the
fonts explicitly minimizes problems in the long run, obviously there's
an initial overhead.

Hope that helps

Mehdi

On 5 September 2011 10:42, Philippe Juhel philippe.ju...@icam.fr wrote:
 Hi,



 I run the 1.0 FOP version on a XP windows system.

 If I don’t specify a configuration file (fop –fo test.xsl –pdf res.pdf), I
 get the following warnings :



 5 sept. 2011 11:19:51 org.apache.fop.events.LoggingEventListener
 processEvent

 ATTENTION: Font arial,normal,400 not found. Substituting with
 any,normal,400.

 5 sept. 2011 11:19:51 org.apache.fop.events.LoggingEventListener
 processEvent

 ATTENTION: Font arial,normal,700 not found. Substituting with
 any,normal,700.



 Now, I use the template for the configuration file and I add the following
 lines :



 font kerning=yes

   embed-url=file:///C:/windows/fonts/arial.ttf

  font-triplet name=arial style=normal weight=normal/

   /font

   font kerning=yes

   embed-url=file:///C:/windows/fonts/arialbd.ttf

  font-triplet name=arial style=normal weight=bold/

   /font



 And with

 fop –c fop.xconf –fo test.xsl –pdf res.pdf



 it works (no more warning about arial not found).



 But it’s not really practical, easy to use a configuration file and add ALL
 the fonts I want to use. Is it possible to just specify a folder with a lot
 of fonts (like C:\windows\fonts) and have all the fonts automatically
 available?



 I try  :

 auto-detect/

 Or

 directoryC:\windows\fonts/directory



 But it doesn’t work.



 Any idea?



 Regards,



 Philippe Juhel

 Assistant au pôle GEI (Génie Electronique et Informatique)

 ICAM

 75, av de Grande Bretagne

 31300 Toulouse

 Tél : 05-34-50-50-45

 Mail : philippe.ju...@icam.fr



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



RE: Problem with arial font access

2011-09-05 Thread Theresa Jayne Forster
On that note,

How do you determine the font-family name for a font loaded by autodetect?

For instance I have the font HelveticaNeue
File names are not always the same
HELVNBI.TTF  - HelveticaNeue BoldItalic Italic  Title = HelveticaNeue
BoldItalic
LTe50920.ttf - HelveticaNeue LT 47 LightCn Regular Title = Helvetica LT 47
Light Condensed

What are the names on these?
How do we determine them?



Kindest regards


Theresa Forster
Senior Software Developer
-Original Message-
From: mehdi houshmand [mailto:med1...@gmail.com] 
Sent: 05 September 2011 11:21
To: fop-users@xmlgraphics.apache.org
Subject: Re: Problem with arial font access

Hi Philippe,

You can try and get that working, but there are several considerations
you must take if you're wanting to use the  auto-detect. feature,
the most significant of which is that the name you set in
font-family must match the system font name. IMO configuring the
fonts explicitly minimizes problems in the long run, obviously there's
an initial overhead.

Hope that helps

Mehdi




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



Re: Problem with arial font access

2011-09-05 Thread J.Pietschmann
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