wxPdfDocument Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
jandas
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Apr 05, 2010 9:03 pm
Contact:

wxPdfDocument

Post by jandas » Mon Apr 05, 2010 9:19 pm

Hello, I have trouble with Font.
When i use AddFont()

Code: Select all

pdf.AddFont(wxT("DejaVu Sans"), wxT(""), wxT("......"));
it's ok (font in pdf is ok), but I receive error

Code: Select all

wxPdfFFontManager::GetFont: Font 'DejaVu Sans' with style 'Regular' not Found
how can i fix this error?
Help, I need somebody,
Help, not just anybody,
Help, you know I need someone, help.

utelle
Moderator
Moderator
Posts: 842
Joined: Tue Jul 05, 2005 10:00 pm
Location: Cologne, Germany
Contact:

Re: wxPdfDocument

Post by utelle » Mon Apr 05, 2010 10:34 pm

jandas wrote:Hello, I have trouble with Font.
When i use AddFont()

Code: Select all

pdf.AddFont(wxT("DejaVu Sans"), wxT(""), wxT("......"));
it's ok (font in pdf is ok), but I receive error

Code: Select all

wxPdfFFontManager::GetFont: Font 'DejaVu Sans' with style 'Regular' not Found
how can i fix this error?
Although the message says there is an error, it's not really an error. Method AddFont first verifies that the font was not already added. If the font is added for the first time this results in the message you got.

I already changed the code to emit this message only in debug mode. You may download the latest version from the wxCode SVN.

Regards,

Ulrich

jandas
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Apr 05, 2010 9:03 pm
Contact:

Post by jandas » Tue Apr 06, 2010 10:04 am

Thanks :)

Post Reply