was not able to compile on fedora 14 with
$ rpm -q gtkmm24
gtkmm24-2.22.0-1.fc14.i686
(14:28:35) insaner: $ rpm -q gtk2
gtk2-2.22.0-1.fc14.1.i686
it was throwing a
CXX widgets/font-selector.o
widgets/font-selector.cpp: In function ‘void
sp_font_selector_set_sizes(SPFontSelector*)’:
widgets/font-selector.cpp:352:67: error: cannot convert ‘double’ to ‘const
gchar*’ for argument ‘2’ to ‘void gtk_combo_box_append_text(GtkComboBox*, const
gchar*)’
make[3]: *** [widgets/font-selector.o] Error 1
so i went to that line stared for a while.. tried a few things, and this
seems to have fixed it:
change line 352 in widgets/font-selector.cpp from
----------
#if GTK_CHECK_VERSION(2, 24,0)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(fsel->size),
Glib::ustring::format(size).c_str());
#else
gtk_combo_box_append_text (GTK_COMBO_BOX(fsel->size), size);
#endif
}
-----------
to
-----------
#if GTK_CHECK_VERSION(2, 24,0)
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT(fsel->size),
Glib::ustring::format(size).c_str());
#else
gtk_combo_box_append_text (GTK_COMBO_BOX(fsel->size),
Glib::ustring::format(size).c_str());
#endif
}
-----------
ie, replace "size" with "Glib::ustring::format(size).c_str()"
hope that helps
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to inkscape in Ubuntu.
https://bugs.launchpad.net/bugs/168164
Title:
font sizes specified in pixels instead of points
Status in Inkscape: A Vector Drawing Tool:
Fix Committed
Status in “inkscape” package in Ubuntu:
Triaged
Bug description:
I've been using Inkscape for work as my only vector editor for the past
year or so, and while it's extremely capable, there is one coding choice
which I find completely bewildering: Why is font size specified in pixels
instead of points? This seems to be used in both listboxes and the actual
raw SVG. For the longest time I could not figure out why my text always
looked so small. I don't think pixels are a useful measurement for text, as
points are the de facto standard.
Using inkscape 0.44.1 autopackage.org build on Ubuntu Linux 6.06.
To manage notifications about this bug go to:
https://bugs.launchpad.net/inkscape/+bug/168164/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp