once again: font sizes

Ask a Question related to Debian, Design and Development.

  1. #1

    Default once again: font sizes


    Hi folks,

    I know this is a very-FAQ, but I still can't get it working.

    Environment: Debian/Sid with gnome2. 14" TFT-Display at 1024x768 and
    X set to 100dpi res.

    Problem: font sizes in gtk1.2+ applications (sylpheed, openoffice, gimp)
    are ridicously large (measured about 6mm)

    Already tried: Forcing other display-dpi values, reordering of fontlist,
    added to .Xdefaults:
    *fontList: \
    -adobe-helvetica-medium-*-*-*-8-*-*-*-*-46-iso8859-15
    Made fontsize values smaller in /etc/gtk/gtkrc. Even changed system
    locale to en_us, having no effect.

    As gtk1.2 programs are the only ones effected, I assume it is not a
    problem with the x-config. Non-gtk/kde programs work fine as well (xfig)

    Would appreciate any help in form of advises, links, etc...

    Erhard

    P.S: I'm sorry if You receive this message twice. I did a repost because
    it did not appear on the ML after several hours




    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Erhard Schultchen Guest

  2. Similar Questions and Discussions

    1. FONT SIZES IN EDIT MODE
      Just had my first look at contribute, and when i am in edit mode, some of the text appears so small on my screen its impossible to read, and...
    2. Problems with font colors, styles and sizes
      I run Contribute 3.11 (which is the newest version) - and I recently created a connection key for a customer (type: publishers) where I set the...
    3. Font Sizes & Master Pages
      Is there any way to change the font size or type or text boxes that have been overridden from their masters and modified? Does this question even...
    4. Pasting text from IE to Freehand misses font sizes
      I'm trying to export text from webpages to Freehand using straight copy-paste, but it seems to forget the font sizes. I'm using some scripts to...
    5. Incorrect Font sizes for Web Capture after upgrade from Acrobat v4.05 to v6.0.1
      Adobe Acrobat v6.0.1 Platform: PC Operating System: Windows 98 v4.10.2222 A Memory: 191 MB RAM We have been using Adobe Acrobat v4.05 for a...
  3. #2

    Default Re: once again: font sizes

    >Hi folks,
    >
    >I know this is a very-FAQ, but I still can't get it working.
    >
    >Environment: Debian/Sid with gnome2. 14" TFT-Display at 1024x768 and
    >X set to 100dpi res.
    >
    >Problem: font sizes in gtk1.2+ applications (sylpheed, openoffice, gimp)
    >are ridicously large (measured about 6mm)
    >
    >Already tried: Forcing other display-dpi values, reordering of fontlist,
    >added to .Xdefaults:
    >*fontList: \
    >-adobe-helvetica-medium-*-*-*-8-*-*-*-*-46-iso8859-15
    >Made fontsize values smaller in /etc/gtk/gtkrc. Even changed system
    >locale to en_us, having no effect.
    >
    >As gtk1.2 programs are the only ones effected, I assume it is not a
    >problem with the x-config. Non-gtk/kde programs work fine as well (xfig)
    >
    >Would appreciate any help in form of advises, links, etc...
    >
    >Erhard
    >
    >P.S: I'm sorry if You receive this message twice. I did a repost because
    >it did not appear on the ML after several hours
    >
    Hi,

    i found this on the web. Maybe this will help:
    ================================================
    How do I use GTK+ 2 resource settings for GTK+ 2 applications when not in a GNOME environment?

    GNOME 2 applications get their GTK+ 2 resources from themes and the corresponding theme engine. If you would rather run your GTK+ 2 applications in a non-GNOME environment then you will need to create a file named ~/.gtkrc-2.0.

    To use the widgets from a GTK+ 2 theme when in a non-GNOME environment, simply include the theme's gtk-2.0/gtkrc in your ~/.gtkrc-2.0. For example:

    include "/usr/X11R6/share/themes/Crux/gtk-2.0/gtkrc"
    If you prefer, you can use the same GTK+ 1.2 theme for both GTK+ 1.2 and GTK+ 2 applications, which will give your GTK+ programs a consistent look. For the most part, you can transfer your settings from your ~/.gtkrc file (used for GTK+ 1.2) with a couple of caveats.

    If you have any theme engine references, you will have to make sure there is a corresponding GTK+ 2 theme engine. Otherwise, remove the engine entries.
    The default font specification should be outside of any style blocks and should be specified with the gtk-font-name keyword. For example:
    gtk-font-name = "Verdana 11"
    ================================================

    Regards,
    Benedict


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Benedict Verheyen Guest

  4. #3

    Default Re: once again: font sizes

    "Benedict Verheyen" <linux4bene@pandora.be> schrieb:
    >The default font specification should be outside of
    > any style blocks and should be specified with the gtk-font-name
    > keyword. For example: gtk-font-name = "Verdana 11"
    thanks a lot, this one did it!

    Regards,
    Erhard


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Erhard Schultchen Guest

  5. #4

    Default Re: once again: font sizes

    On Mon, 07 Jul 2003 11:00:36 +0200
    Erhard Schultchen <eschultchen@gmx.de> wrote:
    >
    >
    > Hi folks,
    >
    > I know this is a very-FAQ, but I still can't get it working.
    >
    > Environment: Debian/Sid with gnome2. 14" TFT-Display at 1024x768 and
    > X set to 100dpi res.
    >
    > Problem: font sizes in gtk1.2+ applications (sylpheed, openoffice, gimp)
    > are ridicously large (measured about 6mm)
    OK, so, to make sure I understand the question that you're asking . . .
    you're using a GTK 2/Gnome 2 environment, but you still use some GTK 1/
    Gnome 1 apps, and you wanna know how to adjust the fonts for those.

    I love Linux, but there are still unpleasant things about it, and one
    of those things is fonts, straight across the board. Look in a
    thesaurus under "labyrinthine" and "linux font configuration" will
    be listed as a synonym.

    > Already tried: Forcing other display-dpi values, reordering of fontlist,
    > added to .Xdefaults:
    > *fontList: \
    > -adobe-helvetica-medium-*-*-*-8-*-*-*-*-46-iso8859-15
    ... . .which are X-specific actions, but not GTK-specific actions, as I
    understand it. It's GTK that you're trying to reconfigure.

    > Made fontsize values smaller in /etc/gtk/gtkrc.
    Just out of curiosity, can you elaborate on this? What did you do here,
    specifically?

    > Even changed system
    > locale to en_us, having no effect.
    The locale *can* have an effect here; or, at least it has for some people
    (see below).

    > As gtk1.2 programs are the only ones effected, I assume it is not a
    > problem with the x-config. Non-gtk/kde programs work fine as well (xfig)
    Right; the problem is probably with the configuration for GTK 1.2.

    Here's how I dealt with this.

    In your home directory, you'll see a lot of .gtkrc files. For instance,
    I see:

    -rw-r--r-- 1 cmetzler cmetzler 162 Jun 25 11:48 .gtkrc
    -rw-r--r-- 1 cmetzler cmetzler 137 Jun 25 21:21 .gtkrc-1.2-gnome2
    -rw-r--r-- 1 cmetzler cmetzler 27 Aug 26 2002 .gtkrc-2.0
    -rw-r--r-- 1 cmetzler cmetzler 1118 Apr 1 14:40 .gtkrc-kde
    -rw-r--r-- 1 cmetzler cmetzler 126 Jul 7 08:06 .gtkrc.mine

    As I understand it, .gtkrc is the traditional configuration file for
    old apps that use GTK 1; while .gtkrc-1.2-gnome2 is used by apps that
    are still using GTK 1 for their look and feel, but do know how to talk
    to the Gnome 2 session manager (sylpheed is an example of these). For
    more info on the latter, see:

    [url]http://mail.gnome.org/archives/desktop-devel-list/2002-July/msg00684.html[/url]

    The important thing is that in each of them, there should be a line at
    the end that looks like:

    include "/home/cmetzler/.gtkrc.mine"

    with whatever your home directory is substituted in, of course.
    Various configuration programs use .gtkrc and .gtkrc-1.2-gnome2 to set
    things, and have that line at the end so that you can put stuff you
    want to adjust manually into that additional file. So, .gtkrc.mine
    is the file you want; but you need to make sure that .gtkrc and
    ...gtkrc-1.2-gnome2 call it.

    In .gtkrc.mine, I have the following stuff:

    style "user-font"
    {
    fontset="-monotype-arial-medium-r-normal-*-14-*-*-*-p-*-iso8859-1"
    }
    widget_class "*" style "user-font"

    That sets the font for the user interface for GTK 1.2 apps; adjusting
    the 14 to 12 or whatever will allow you to change the fontsize as you
    desire. You can also change to another font if you wish.

    Note that this will *not* adjust the fonts used *within* GTK 1.2 apps;
    those are configured through each app individually, if I remember
    correctly. This will merely configure the font of menu bars, pull
    down menus, information boxes, etc.

    One other thing: at least one person has posted online saying that
    their ability to set GTK 1.2 font was affected by the locale they
    chose. If they chose the wrong locale, font settings had no effect.
    See:

    [url]http://lists.debian.org/debian-testing/2003/debian-testing-200305/msg00058.html[/url]

    Hope this helps. If it doesn't, let me know. I've been trying to
    pull together into one place everything I *think* I've learned about
    fonts, both so that I'm not constantly having to research the same
    things over and over and also in case it's a help to anyone else.
    If I've got something wrong, I definitely wanna know.

    -c

    --
    Chris Metzler [email]cmetzler@speakeasy.snip-me.net[/email]
    (remove "snip-me." to email)

    "As a child I understood how to give; I have forgotten this grace since I
    have become civilized." - Chief Luther Standing Bear


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Chris Metzler Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139