Inkscape wants to use Bitstream Vera Sans as the default font, but I don't have that installed on my system so every character becomes ugly rectangles. I cannot figure out how to change the font to something else. I noticed that there is a Resources folder when embedding Inkscape inside a bundle, but it doesn't seem to work for the native version. Does anyone have any suggestions for putting inkscape native into an application bundle?
-- Matthew Peterson Programmer Christa McAuliffe Space Education Center
On Fri, Jun 20, 2008 at 3:39 PM, Matt Peterson <revcompgeek@...400...> wrote:
Looks like both were problems. I copied the definitions of IS_FINITE to 2geom/isnan.h and switched to gcc-4.0 and it compiled fine in about 4 hours. It seems to run fine, but I was having font problems. However, I recently screwed up my system fonts and I need to restart, which should fix the problems. If anyone wants it, I have terminal output of the assertion failures that happened while running.
-- Matthew Peterson Programmer Christa McAuliffe Space Education Center
On Mon, Jun 16, 2008 at 6:06 PM, Michael Wybrow < michael.wybrow@...38...> wrote:
On 17/06/2008, at 3:08 AM, Matt Peterson wrote:
I have been attempting to compile a native version of Inkscape for Mac OS 10.4 on a PowerBook G4, and using the latest SVN I am getting the following error:
In file included from 2geom/sbasis.h:43, from 2geom/concepts.h:34, from 2geom/d2.h:39, from libnr/nr-convert2geom.h:16, from sp-item.h:27, from sp-lpe-item.h:17, from sp-shape.h:18, from sp-ellipse.h:18, from arc-context.cpp:27: 2geom/linear.h: In member function `bool Geom::Linear::isFinite() const': 2geom/linear.h:91: error: `__isfinite' undeclared (first use this function) 2geom/linear.h:91: error: (Each undeclared identifier is reported only once for each function it appears in.) make[2]: *** [arc-context.o] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2
My guess would be that the isnan.h in 2geom does not have the fixes we have added to the inkscape isnan.h.
Try copying the definitions of IS_FINITE from src/isnan.h over the ones in src/2geom/isnan.h.
Also, Matt, maybe you are using gcc 3.3? We compile our 10.4 packages with gcc-4.0, so maybe we haven't noticed a problem with gcc-3.3 on Mac OS X.
Cheers, Michael
Matt Peterson wrote:
Inkscape wants to use Bitstream Vera Sans as the default font, but I don't have that installed on my system so every character becomes ugly rectangles. I cannot figure out how to change the font to something else.
You can probably fix this by editing gtkrc. There should be a global $GTK_INSTALL_DIR/etc/gtk-2.0/gtkrc, and also a user's ~/.gtkrc-2.0.
I found some info on the web for a project with similar issues here:
http://xanana.ucsc.edu/~wgscott/xtal/wiki/index.php/Installing_Coot_on_OS_X
They have an entry:
gtk-font-name = "LucidaGrande 15"
Hope this helps.
bob
Putting that line into Inkscape didn't seem to help, although inkscape is getting the change. I think it might be a problem with pango. The errors I am getting are:
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed
(inkscape:19764): Gtk-CRITICAL **: gtk_box_pack_start: assertion `GTK_IS_WIDGET (child)' failed
(inkscape:19764): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed
(inkscape:19764): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
** (inkscape:19764): CRITICAL **: gdouble sp_document_height(SPDocument*): assertion `document->root != NULL' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 12', text=' '
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 6.34765625', text='5'
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Bitstream Vera Sans Mono 12.5', text='?'
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 15', text='No objects selected. Click, Shift+click, or drag around objects to select.'
Seems to me that pango isn't reading the font files right.
-- Matthew Peterson Programmer Christa McAuliffe Space Education Center
On Sat, Jun 21, 2008 at 7:50 AM, Bob Jamison <rwjj@...127...> wrote:
Matt Peterson wrote:
Inkscape wants to use Bitstream Vera Sans as the default font, but I don't have that installed on my system so every character becomes ugly rectangles. I cannot figure out how to change the font to something else.
You can probably fix this by editing gtkrc. There should be a global $GTK_INSTALL_DIR/etc/gtk-2.0/gtkrc, and also a user's ~/.gtkrc-2.0.
I found some info on the web for a project with similar issues here:
http://xanana.ucsc.edu/~wgscott/xtal/wiki/index.php/Installing_Coot_on_OS_Xhttp://xanana.ucsc.edu/%7Ewgscott/xtal/wiki/index.php/Installing_Coot_on_OS_X
They have an entry:
gtk-font-name = "LucidaGrande 15"
Hope this helps.
bob
I asked around, and nobody knew. What I would suggest, is that you try visiting irc.gnome.org, in the "#gtk+" channel. Since the native OSX gtk port is still in development, this might be something that they would need to see. At any rate, that is where the experts in this area lurk.
bob
Matt Peterson wrote:
Putting that line into Inkscape didn't seem to help, although inkscape is getting the change. I think it might be a problem with pango. The errors I am getting are:
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed
(inkscape:19764): Gtk-CRITICAL **: gtk_box_pack_start: assertion `GTK_IS_WIDGET (child)' failed
(inkscape:19764): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed
(inkscape:19764): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
** (inkscape:19764): CRITICAL **: gdouble sp_document_height(SPDocument*): assertion `document->root != NULL' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 12', text=' '
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 6.34765625', text='5'
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Bitstream Vera Sans Mono 12.5', text='?'
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 15', text='No objects selected. Click, Shift+click, or drag around objects to select.'
Seems to me that pango isn't reading the font files right.
-- Matthew Peterson Programmer Christa McAuliffe Space Education Center
On Sat, Jun 21, 2008 at 7:50 AM, Bob Jamison <rwjj@...127... mailto:rwjj@...127...> wrote:
Matt Peterson wrote: Inkscape wants to use Bitstream Vera Sans as the default font, but I don't have that installed on my system so every character becomes ugly rectangles. I cannot figure out how to change the font to something else. You can probably fix this by editing gtkrc. There should be a global $GTK_INSTALL_DIR/etc/gtk-2.0/gtkrc, and also a user's ~/.gtkrc-2.0. I found some info on the web for a project with similar issues here: http://xanana.ucsc.edu/~wgscott/xtal/wiki/index.php/Installing_Coot_on_OS_X <http://xanana.ucsc.edu/%7Ewgscott/xtal/wiki/index.php/Installing_Coot_on_OS_X> They have an entry: gtk-font-name = "LucidaGrande 15" Hope this helps. bob
On Sun, Jun 22, 2008 at 12:02 AM, Bob Jamison <rwjj@...127...> wrote:
I asked around, and nobody knew. What I would suggest, is that you try visiting irc.gnome.org, in the "#gtk+" channel. Since the native OSX gtk port is still in development, this might be something that they would need to see. At any rate, that is where the experts in this area lurk. Matt Peterson wrote:
Putting that line into Inkscape didn't seem to help, although inkscape is getting the change. I think it might be a problem with pango. The errors I am getting are:
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed
(inkscape:19764): Gtk-CRITICAL **: gtk_box_pack_start: assertion `GTK_IS_WIDGET (child)' failed
(inkscape:19764): Gtk-CRITICAL **: gtk_widget_show_all: assertion `GTK_IS_WIDGET (widget)' failed
(inkscape:19764): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): GLib-GObject-CRITICAL **: g_object_ref: assertion `object->ref_count > 0' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
** (inkscape:19764): CRITICAL **: gdouble sp_document_height(SPDocument*): assertion `document->root != NULL' failed
(inkscape:19764): Pango-WARNING **: Error loading GDEF table 28333
(inkscape:19764): Pango-WARNING **: Error loading GSUB table 28333
(inkscape:19764): Pango-WARNING **: Error loading GPOS table 28333
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 12', text=' '
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 6.34765625', text='5'
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Bitstream Vera Sans Mono 12.5', text='?'
(inkscape:19764): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Lucida Grande 15', text='No objects selected. Click, Shift+click, or drag around objects to select.'
Seems to me that pango isn't reading the font files right.
These issues are indeed caused by Pango and the problem does not come from note having bitstream vera sans (BTW, switching to Deja Vu sans as the default would be a wise move since most new distros are using this new version of the Bitstream fonts).
If I remember well, the problem, for me, was that Pango was build by MacPorts with an X environement in mind while, obviously, the rest is X-free (no pun intended). So look for a no_x11 variant of Pango, or something similar. Basically it must remove dependencies on X and freetype and use Cairo to render the fonts. When Cairo is compiled natively, it ultimately removes any dependency on X11. The other possible issue is that font stuff changed recently in Cairo and Pango and that some environement variables names related to fonts may be different between the two. Which versions does MacPorts gives you on your G4 on 10.4?
I'll look a bit more into this when I am on my main machine.
participants (3)
-
Bob Jamison
-
jiho
-
Matt Peterson