Skip to main content



      Home
Home » Archived » BIRT » How to add Fonts?
How to add Fonts? [message #105061] Thu, 05 January 2006 15:05 Go to next message
Eclipse UserFriend
Originally posted by: lilianapb82.yahoo.es

Hello everybody,

I need all my reports to have a special font (Berlin Sans FB Demi), but I
haven't found the way to do it.

I'm working on Linux, so I registered the font in the system, and I added
a styly that uses the new font:

<style name="MyPersonalStyle">
<property name="fontFamily">Berlin Sans FB Demi</property>
<property name="color">#A52A2A</property>
</style>

So, when I'm in the report designer the font appears ok, but If I try to
preview it I get a different font, I guess the default font.

Is there any way to register the font in BIRT for it to appear in the font
selection? For example if I go to the Property Editor for a Cell, in the
Font section I get a list with only some general fonts, the most standard
I guess.

What should I do?

Thanks a lot.
Re: How to add Fonts? [message #109436 is a reply to message #105061] Sun, 15 January 2006 21:13 Go to previous message
Eclipse UserFriend
BIRT 2.0 supports user-defined TrueType fonts for PDF report. The following
steps present how to install TrueType fonts for BIRT2.0 PDF.
Install TrueType fonts on UNIX (Linux, FreeBSD etc):

1. Copy TrueType fonts to a designated directory (such as
/share/fonts).

2. Generate fonts.dir and fonts.scale in the directory.

3. Make these fonts available to JRE. Open font.properties file under
jre/lib directory, set appendedfontpath=/share/fonts

4. Launch BIRT by adding a JVM system property: BIRT_FONT_PATH.

Server mode: add -DBIRT_FONT_PATH="/share/fonts" to command line.

Web application mode: add

<context-param>
<param-name>BIRT_FONT_PATH</param-name>
<param-value>/share/fonts</param-value>
</context-param> to web.xml.

If you'd like to install TrueType fonts on Windows, just
simply copy the TrueType fonts to system font directory (such as
C:\WINDOWS\Fonts).

Thanks,

Gang

"Liliana Parra" <lilianapb82@yahoo.es> wrote in message
news:17ecb7d344dd311d040ef4caffd8ecb6$1@www.eclipse.org...
> Hello everybody,
>
> I need all my reports to have a special font (Berlin Sans FB Demi), but I
> haven't found the way to do it.
>
> I'm working on Linux, so I registered the font in the system, and I added
> a styly that uses the new font:
>
> <style name="MyPersonalStyle">
> <property name="fontFamily">Berlin Sans FB Demi</property>
> <property name="color">#A52A2A</property>
> </style>
>
> So, when I'm in the report designer the font appears ok, but If I try to
> preview it I get a different font, I guess the default font.
> Is there any way to register the font in BIRT for it to appear in the font
> selection? For example if I go to the Property Editor for a Cell, in the
> Font section I get a list with only some general fonts, the most standard
> I guess.
> What should I do?
>
> Thanks a lot.
>
Previous Topic:Runtime Engine Depployment
Next Topic:Birt 2.0 RC problems with PDF
Goto Forum:
  


Current Time: Fri Jul 18 00:43:15 EDT 2025

Powered by FUDForum. Page generated in 0.03199 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top