Font error [message #61972] |
Wed, 27 July 2005 00:36  |
Eclipse User |
|
|
|
Could some one point me on how to solve this font error while running the
engine in a standalone java application ?
Jul 26, 2005 11:34:31 PM org.apache.avalon.framework.logger.Jdk14Logger
error
SEVERE: unknown font arial,normal,normal so defaulted font to any
.............
tons of the same errors
report guy
|
|
|
Re: Font error [message #67701 is a reply to message #61972] |
Fri, 12 August 2005 07:32   |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0034_01C59F42.3FA59000
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi
I have used FOP for a while in order to develop a small document =
designer. One way to tell FOP that there are more than only the standard =
fonts available is to point out a font dir in your code:
=
org.apache.fop.configuration.Configuration.put("fontBaseDir ", the path =
to your font base dir);
It is in that dir you put all your desired true type fonts.
Next you have to point out a configuration file that tells FOP what =
fonts are actually bundled, and where they are stored. These are the =
next lines of code:
File userConfigFile =3D new File(Path to the config file);
Options op =3D new Options(userConfigFile);
The config file is attached with this mail as an example.
You also have to generate the correct true type font files that are =
described int the config file. You can read the FOP documentation on =
www.apache.org on how to generate fonts.
Now, having seen BIRT and used it for a while I see no point in why I =
should do my own document designer. Of course BIRT is the way to go. I =
still haven't digged very deep into the source code and the APIs, so I =
also wonder how I can tell the BIRT FOP where all the fonts are in order =
to make it work when running the PDF preview.
/Stefan
"JTan" <jamestanms@hotmail.com> wrote in message =
news:dc7300$t79$1@news.eclipse.org...
> Could some one point me on how to solve this font error while running =
the
> engine in a standalone java application ?
>=20
> Jul 26, 2005 11:34:31 PM =
org.apache.avalon.framework.logger.Jdk14Logger
> error
> SEVERE: unknown font arial,normal,normal so defaulted font to any
> ............
> tons of the same errors
>=20
> report guy
>=20
>
------=_NextPart_000_0034_01C59F42.3FA59000
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have used FOP for a while in order to =
develop a=20
small document designer. One way to tell FOP that there are more than =
only the=20
standard fonts available is to point out a font dir in your =
code:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
=
org.apache.fop.configuration.Configuration.put("fontBaseDir ",=20
the path to your font base dir);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>It is in that dir you put all your =
desired true=20
type fonts.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Next you have to point out a =
configuration file=20
that tells FOP what fonts are actually bundled, and where they are =
stored.=20
These are the next lines of code:</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2> &nbs=
p; File=20
userConfigFile =3D new File(Path to the config=20
file);<BR> &nb=
sp;=20
Options op =3D new Options(userConfigFile);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The config file is attached with this =
mail as an=20
example.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>You also have to generate the correct =
true type=20
font files that are described int the config file. You can read the FOP=20
documentation on <A href=3D"http://www.apache.org">www.apache.org</A> on =
how to=20
generate fonts.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Now, having seen BIRT and used it for a =
while I see=20
no point in why I should do my own document designer. Of course BIRT is =
the way=20
to go. I still haven't digged very deep into the source code and the =
APIs, so I=20
also wonder how I can tell the BIRT FOP where all the fonts are in order =
to make=20
it work when running the PDF preview.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>/Stefan</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>"JTan" <</FONT><A=20
href=3D"mailto:jamestanms@hotmail.com"><FONT face=3DArial=20
size=3D2>jamestanms@hotmail.com</FONT></A><FONT face=3DArial =
size=3D2>> wrote in=20
message </FONT><A href=3D"news:dc7300$t79$1@news.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:dc7300$t79$1@news.eclipse.org</FONT></A><FONT face=3DArial =
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> Could some one =
point me on=20
how to solve this font error while running the<BR>> engine in a =
standalone=20
java application ?<BR>> <BR>> Jul 26, 2005 11:34:31 PM=20
org.apache.avalon.framework.logger.Jdk14Logger<BR>> error<BR>> =
SEVERE:=20
unknown font arial,normal,normal so defaulted font to any<BR>>=20
.............<BR>> tons of the same errors<BR>> <BR>> report =
guy<BR>>=20
<BR>></FONT></BODY></HTML>
------=_NextPart_000_0034_01C59F42.3FA59000--
|
|
|
Re: Font error [message #68120 is a reply to message #67701] |
Mon, 15 August 2005 11:15  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_002E_01C5A182.49F831B0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
You have to patch the foEmitter jar inside of the birt fo jar
"Stefan Junsved" <stefan.junsved@comactivity.net> wrote in message =
news:ddi1bu$ug9$1@news.eclipse.org...
Hi
I have used FOP for a while in order to develop a small document =
designer. One way to tell FOP that there are more than only the standard =
fonts available is to point out a font dir in your code:
=
org.apache.fop.configuration.Configuration.put("fontBaseDir ", the path =
to your font base dir);
It is in that dir you put all your desired true type fonts.
Next you have to point out a configuration file that tells FOP what =
fonts are actually bundled, and where they are stored. These are the =
next lines of code:
File userConfigFile =3D new File(Path to the config file);
Options op =3D new Options(userConfigFile);
The config file is attached with this mail as an example.
You also have to generate the correct true type font files that are =
described int the config file. You can read the FOP documentation on =
www.apache.org on how to generate fonts.
Now, having seen BIRT and used it for a while I see no point in why I =
should do my own document designer. Of course BIRT is the way to go. I =
still haven't digged very deep into the source code and the APIs, so I =
also wonder how I can tell the BIRT FOP where all the fonts are in order =
to make it work when running the PDF preview.
/Stefan
"JTan" <jamestanms@hotmail.com> wrote in message =
news:dc7300$t79$1@news.eclipse.org...
> Could some one point me on how to solve this font error while =
running the
> engine in a standalone java application ?
>=20
> Jul 26, 2005 11:34:31 PM =
org.apache.avalon.framework.logger.Jdk14Logger
> error
> SEVERE: unknown font arial,normal,normal so defaulted font to any
> ............
> tons of the same errors
>=20
> report guy
>=20
>
------=_NextPart_000_002E_01C5A182.49F831B0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2722" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>You have to patch the foEmitter jar =
inside of the=20
birt fo jar</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Stefan Junsved" <<A=20
=
href=3D"mailto:stefan.junsved@comactivity.net">stefan.junsved@comactivity=
..net</A>>=20
wrote in message <A=20
=
href=3D"news:ddi1bu$ug9$1@news.eclipse.org">news:ddi1bu$ug9$1@news.eclips=
e.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have used FOP for a while in order =
to develop a=20
small document designer. One way to tell FOP that there are more than =
only the=20
standard fonts available is to point out a font dir in your =
code:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =
=20
org.apache.fop.configuration.Configuration.put("fontBaseDir ", the path =
to your=20
font base dir);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>It is in that dir you put all your =
desired true=20
type fonts.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Next you have to point out a =
configuration file=20
that tells FOP what fonts are actually bundled, and where they =
are=20
stored. These are the next lines of code:</FONT></DIV>
<DIV><FONT face=3DArial=20
=
size=3D2> &nbs=
p; File=20
userConfigFile =3D new File(Path to the config=20
=
file);<BR> &nb=
sp;=20
Options op =3D new Options(userConfigFile);</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The config file is attached with this =
mail as an=20
example.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>You also have to generate the correct =
true type=20
font files that are described int the config file. You can read the =
FOP=20
documentation on <A href=3D"http://www.apache.org">www.apache.org</A> =
on how to=20
generate fonts.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Now, having seen BIRT and used it for =
a while I=20
see no point in why I should do my own document designer. Of course =
BIRT is=20
the way to go. I still haven't digged very deep into the source code =
and the=20
APIs, so I also wonder how I can tell the BIRT FOP where all the fonts =
are in=20
order to make it work when running the PDF preview.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>/Stefan</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>"JTan" <</FONT><A=20
href=3D"mailto:jamestanms@hotmail.com"><FONT face=3DArial=20
size=3D2>jamestanms@hotmail.com</FONT></A><FONT face=3DArial =
size=3D2>> wrote in=20
message </FONT><A href=3D"news:dc7300$t79$1@news.eclipse.org"><FONT =
face=3DArial=20
size=3D2>news:dc7300$t79$1@news.eclipse.org</FONT></A><FONT =
face=3DArial=20
size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>> Could some =
one point me on=20
how to solve this font error while running the<BR>> engine in a =
standalone=20
java application ?<BR>> <BR>> Jul 26, 2005 11:34:31 PM=20
org.apache.avalon.framework.logger.Jdk14Logger<BR>> error<BR>> =
SEVERE:=20
unknown font arial,normal,normal so defaulted font to any<BR>>=20
............<BR>> tons of the same errors<BR>> <BR>> report=20
guy<BR>> <BR>></FONT> </BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_002E_01C5A182.49F831B0--
|
|
|
Powered by
FUDForum. Page generated in 0.03753 seconds