Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Problem with various font sizes


    Today I installed Slackware 10.2 and am having a few difficulties, the main one for me now is the weird differences in font sizes which occurs, here's a screenshot:

    As I hope you can notice, fonts on a website are of a size I like but the size of the font in the URL Address Bar and "File", "Edit", ..., "Tools" is very small, too small.

    My resolution is 1024x768 which is what I'm used to.

    Here's the relevant parts of /etc/X11/xorg.conf:
    Section "Monitor"
            #DisplaySize     340 270        # mm
            Identifier   "Monitor0"
            VendorName   "SAM"
            ModelName    "SyncMaster"
            HorizSync    30.0 - 71.0
            VertRefresh  50.0 - 160.0
            Option      "DPMS"
    Also, the font size in Konsole is too small.

    So, does anybody know how to solve this?

    Thanks in Advance

  2. #2
    Just Joined!
    Join Date
    Nov 2004
    WGS84 phi = 45 48 31.7 lambda = 15 57 49.0
    First u should find out what is ur current resolution:
    dodobas@server:~$ xdpyinfo |grep resolution
      resolution:    100x100 dots per inch
    U can modify ur DisplaySize var in 'xorg.conf' to set desired resoution.

    This formula is used for DisplaySize calculation

    (x_resolution* 25.4)/x_dpi = DisplaySize_X
    (y_resolution* 25.4)/y_dpi = DisplaySize_Y

    So in case u use 1280x1024 and want to have 100DPI, result is DisplaySize 325 260

    Also make sure u have 100dpi fonts installed.

  3. #3

    Things look better now, much better

  4. $spacer_open
  5. #4
    Just Joined!
    Join Date
    Nov 2004
    WGS84 phi = 45 48 31.7 lambda = 15 57 49.0
    np, glad i've helpd

  6. #5
    Linux User Krendoshazin's Avatar
    Join Date
    Feb 2005
    London, England
    To change the font size of firefox:
    In ~/.mozilla/firefox, find your profile and cd to that directory, in my case it's vuw85emf.default, and in that directory cd to the directory chrome, so it's ~/.mozilla/firefox/vuw85emf.default/chrome .

    In this directory you should find a file called userContent-example.css, copy this as userChrome.css in the same directory, or from the default profile to your profile if it doesn't exist, and then add this code into it:

    * {
    font-size: 5pt !important;
    font-family: Tahoma !important;
    Change these to the required size and font and you'll be set to go, I find when I do this that the fonts in certain things on certain sites is out of aspect, so to sort this out we'll now need to, in the directory chrome, copy userContent-example.css to userContent.css and add the following code:

    input, textarea, select, button,
    input[type="button"], input[type="reset"], input[type="submit"] {
    font-size: 6pt !important;
    font-family: Tahoma !important;
    Again change these to the required size and font, firefox should now sorted out (this will also work for thunderbird). Konsole font can be changed simply from the right-click menu of the program. I've done all this myself as I use 2048x1536, I tend to prefer small anti-aliased fonts, so you should have no problem with this.

Posting Permissions

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