My platform is Solaris 10, GTK+2.4, wxPython 2.6.4.3, python 2.4.4.
I'm getting the following output, though I'm not sure yet when in my app:
(python: 3352): Pango-WARNING **: Cannot open font file for Serif 12
I do specify font Arial 12 for some text, both bolded and not bolded.
Can anyone point me to or give insight where the font file is supposed
to be located, why I might not have it (I guess that's a tall order),
or how I might otherwise debug or fix this?
It doesn't seem to bother the way the app behaves, and I haven't
noticed any text that looks wrong.
My platform is Solaris 10, GTK+2.4, wxPython 2.6.4.3, python 2.4.4.
I'm getting the following output, though I'm not sure yet when in my app:
(python: 3352): Pango-WARNING **: Cannot open font file for Serif 12
I do specify font Arial 12 for some text, both bolded and not bolded.
Can anyone point me to or give insight where the font file is supposed
to be located, why I might not have it (I guess that's a tall order),
or how I might otherwise debug or fix this?
It doesn't seem to bother the way the app behaves, and I haven't
noticed any text that looks wrong.
Do all wx apps do this, or just your app that sets some specific fonts? It might be that some wx code somewhere that assumes that there is a "Serif" font name on systems is failing, such as when the wx.NORMAL_FONT or similar are initialized.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
I haven't had a chance to do real thorough test (knee deep in some
other issues that I may be asking about later), but I did run the
demo, and get a different set of errors when I "Select Font" in the
FontDialog demo:
(python:4758): Glib-GObject-WARNING **: invalid cast from
'GtkScrolledWindow' to GtkWindow'
...and I get the following warnings when when I select Serif or
Screen, in any style or size I've tried:
** (python:4758): WARNING **: Cannot open font file for font [Serif Bold 10]
or other combinations.
I can't tell whether the fonts are correct or not. Both families look
the same and change sizes, but the styles don't seem to have an
effect.
-Chris
···
On Dec 3, 2007 3:14 PM, Robin Dunn <robin@alldunn.com> wrote:
chris botos wrote:
> My platform is Solaris 10, GTK+2.4, wxPython 2.6.4.3, python 2.4.4.
>
> I'm getting the following output, though I'm not sure yet when in my app:
> (python: 3352): Pango-WARNING **: Cannot open font file for Serif 12
Do all wx apps do this, or just your app that sets some specific fonts?
It might be that some wx code somewhere that assumes that there is a
"Serif" font name on systems is failing, such as when the wx.NORMAL_FONT
or similar are initialized.
My platform is Solaris 10, GTK+2.4, wxPython 2.6.4.3, python 2.4.4.
I'm getting the following output, though I'm not sure yet when in my app:
(python: 3352): Pango-WARNING **: Cannot open font file for Serif 12
Do all wx apps do this, or just your app that sets some specific fonts?
It might be that some wx code somewhere that assumes that there is a
"Serif" font name on systems is failing, such as when the wx.NORMAL_FONT
or similar are initialized.
I haven't had a chance to do real thorough test (knee deep in some
other issues that I may be asking about later), but I did run the
demo, and get a different set of errors when I "Select Font" in the
FontDialog demo:
(python:4758): Glib-GObject-WARNING **: invalid cast from
'GtkScrolledWindow' to GtkWindow'
IIRC this is coming from the standard GTK font dialog. Not much we can do about that.
...and I get the following warnings when when I select Serif or
Screen, in any style or size I've tried:
** (python:4758): WARNING **: Cannot open font file for font [Serif Bold 10]
or other combinations.
These font names are typically GTK aliases for some other font installed on the system, "Sans Serif" and Monospace are also aliases. Maybe your GTK is misconfigured? Try choosing a more specific font face name and see what happens.
···
On Dec 3, 2007 3:14 PM, Robin Dunn <robin@alldunn.com> wrote:
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!