RE: [Inkscape-user] Font size in menus and dialogs and other things
The font size of menus and dialogs is very small.
Is there a way of changing it, e.g. to the default size that other GTK apps use? If not (e.g. because it is hardcoded), can someone point me to a location in the code where I can change it?
The only place where the font size is hard-coded is the top panel (under the menu). The menu and the dialogs use standard font size. And on my system, for example, the font size of Sodipodi 0.34 is noticeably smaller than that of Inkscape. Gimp 2.0 has the same font size as Inkscape. So it's more likely that Sodipodi decreases its global font size artificially (although I don't know how, could anyone explain how this is possible?).
- It seems inkscape expects all strings (including file names) to be UTF-8 encoded (although I do not use a UTF-8 locale, but de_DE@...120... Thus file names that contain german umlauts etc. cause trouble.
Should not happen. This was fixed long ago. Now we use the system locale encoding for filenames. At least, KOI8-R filenames work for me.
Setting G_BROKEN_FILENAME helped here but problems with german umlauts in sodipodi graphics remain. (I removed them by editing the svg files manually before loading them into inkscape).
I think I know what you mean. Sodipodi (and early Inkscape) is broken in that it stores the filenames inside the SVG file in sodipodi:docname attribute, but does not recode them from the locale encoding to UTF-8. However everything inside SVG must be in UTF-8 as specified by the XML encoding declaration. Therefore these old files will cause trouble. Simply remove the docname and docbase attributes to make them parse.
- With sodipodi I have added text elements to a drawing which used a fixed width font and contained multiple blanks to form a simple table. But inkscape prints only one blank for any number of blanks in a row.
Check if the element has xml:space="preserve".
How can I enter text so that multiple blanks are displayed between two words?
They are, by default. New text objects are created with xml:space="preserve". If this does not work for you, file a bug with example files attached.
_________________________________________________________________ http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI...
bulia byak's Message from Wednesday 19 May 2004 20:32:
The font size of menus and dialogs is very small.
Is there a way of changing it, e.g. to the default size that other GTK apps use? If not (e.g. because it is hardcoded), can someone point me to a location in the code where I can change it?
The only place where the font size is hard-coded is the top panel (under the menu). The menu and the dialogs use standard font size. And on my system, for example, the font size of Sodipodi 0.34 is noticeably smaller than that of Inkscape. Gimp 2.0 has the same font size as Inkscape. So it's more likely that Sodipodi decreases its global font size artificially (although I don't know how, could anyone explain how this is possible?).
This is already solved by defining a default font and size in ~/.gtkrc-2.0. Also, per default this file is not parsed, I had to add it to the GTK2_RC_FILES env variable.
- It seems inkscape expects all strings (including file names) to be UTF-8 encoded (although I do not use a UTF-8 locale, but de_DE@...120... Thus file names that contain german umlauts etc. cause trouble.
Should not happen. This was fixed long ago. Now we use the system locale encoding for filenames. At least, KOI8-R filenames work for me.
For me, the problem is still there with the CVS snapshot I checked out today. Without any special setting I get messages on the console like
Gtk-Message: The filename "anyname\366something" couldn't be converted to UTF-8. (try setting the environment variable G_FILENAME_ENCODING): Invalid byte sequence in conversion input
when changing to a directory which contains such filenames in the file selection dialog. If I set G_FILENAME_ENCODING it gets even worse. On startup I get lots of messages like
** (inkscape:30455): CRITICAL **: Unable to load stock pixmap /opt/inkscape-cvs/share/inkscape/icons/zoom_out.xpm
and the GUI doesn't contain any icon then. I also realized that setting G_BROKEN_FILENAME doesn't help with the version I have now.
Setting G_BROKEN_FILENAME helped here but problems with german umlauts in sodipodi graphics remain. (I removed them by editing the svg files manually before loading them into inkscape).
I think I know what you mean. Sodipodi (and early Inkscape) is broken in that it stores the filenames inside the SVG file in sodipodi:docname attribute, but does not recode them from the locale encoding to UTF-8. However everything inside SVG must be in UTF-8 as specified by the XML encoding declaration. Therefore these old files will cause trouble. Simply remove the docname and docbase attributes to make them parse.
Yes that helped.
- With sodipodi I have added text elements to a drawing which used a fixed width font and contained multiple blanks to form a simple table. But inkscape prints only one blank for any number of blanks in a row.
Check if the element has xml:space="preserve".
How can I enter text so that multiple blanks are displayed between two words?
They are, by default. New text objects are created with xml:space="preserve". If this does not work for you, file a bug with example files attached.
This is OK now too.
Mario
participants (2)
-
bulia byak
-
Mario Streiber