Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » PDF emitter using wrong font
PDF emitter using wrong font [message #501321] Tue, 01 December 2009 20:34 Go to next message
Steve Schafer is currently offline Steve SchaferFriend
Messages: 23
Registered: December 2009
Junior Member
On the advice of the friendly bugzilla new bug page, I'm checking here first to see if this is really a bug.

I have a simple report with 2 data controls. Both controls have the font Lucida Sans. One is regular and the other is bold. The report renders fine in the viewer, but in PDF, the bold font renders as Times New Roman.

I notice in my windows\fonts directory that Lucida Sans is a font family with 4 fonts in it, none with a font style of "bold". The closest is "demibold roman". My guess is that the viewer is smart enough to use demibold roman for bold but the PDF emitter isn't.

I've played around with the fontsConfig_pdf.xml file but the best I can do there is to to create an alias where I make some other existing font, such as Impact, become Lucida Sans Demibold Roman. Then I can use Impact and it will render the way I want in PDF, but it still renders as Impact in HTML which is not what I want. It doesn't seem like I can just make up a new font name for an alias. If I do, it doesn't appear in the font dropdown.

So...Does anyone know if there's a way I can make both PDF and HTML render Lucida Sans correctly as bold? Should I file a bug for this?
Re: PDF emitter using wrong font [message #501333 is a reply to message #501321] Tue, 01 December 2009 21:32 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Steve,

Log a bug for this.

Jason

Steve Schafer wrote:
> On the advice of the friendly bugzilla new bug page, I'm checking here
> first to see if this is really a bug.
>
> I have a simple report with 2 data controls. Both controls have the
> font Lucida Sans. One is regular and the other is bold. The report
> renders fine in the viewer, but in PDF, the bold font renders as Times
> New Roman.
>
> I notice in my windows\fonts directory that Lucida Sans is a font family
> with 4 fonts in it, none with a font style of "bold". The closest is
> "demibold roman". My guess is that the viewer is smart enough to use
> demibold roman for bold but the PDF emitter isn't.
>
> I've played around with the fontsConfig_pdf.xml file but the best I can
> do there is to to create an alias where I make some other existing font,
> such as Impact, become Lucida Sans Demibold Roman. Then I can use
> Impact and it will render the way I want in PDF, but it still renders as
> Impact in HTML which is not what I want. It doesn't seem like I can
> just make up a new font name for an alias. If I do, it doesn't appear
> in the font dropdown.
> So...Does anyone know if there's a way I can make both PDF and HTML
> render Lucida Sans correctly as bold? Should I file a bug for this?
>
Previous Topic:Getting Query Data into Master Page Footer
Next Topic:Previous Month
Goto Forum:
  


Current Time: Fri May 10 07:08:24 GMT 2024

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

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

Back to the top