LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-17-2008, 12:33 AM   #1
llin
LQ Newbie
 
Registered: Jun 2008
Posts: 11

Rep: Reputation: 0
LQ Font Sizing (12.1/FF 2.0.0.14)


Hi All,

LQ is one of the few sites that renders in a larger than normal size. Reducing the font size two steps in FF brings it more in line with what I'm seeing in FF on W2K.

Followed the Beautiful Font Guide (no posts = no link, sorry) and Dugan Chen's post-install guide and have the MS core fonts installed.
 
Old 06-17-2008, 12:47 AM   #2
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
Can you post a screenshot? Also are you using a LCD or a CRT?
 
Old 06-17-2008, 12:54 AM   #3
llin
LQ Newbie
 
Registered: Jun 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Daedra View Post
Can you post a screenshot? Also are you using a LCD or a CRT?
Screenshot

LCD.
 
Old 06-17-2008, 01:01 AM   #4
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
I see what you mean. type this so I we can find out what your font DPI is

xdpyinfo | grep resolution

also what monitor resolution are you running?

Last edited by Daedra; 06-17-2008 at 01:06 AM.
 
Old 06-17-2008, 01:09 AM   #5
llin
LQ Newbie
 
Registered: Jun 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Arrow

Quote:
Originally Posted by Daedra View Post
also what resolution are you running?
121x120 dpi. This in on a T61 with a 14.1" 1400x900 display.
 
Old 06-17-2008, 01:17 AM   #6
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
theres your problem, your font dpi is way to high, that is why your fonts are appearing so large, you need to set your DPI to the correct settings, if you looked at my how to you know that there are different ways to do this and I posted a few links, but just for starters, close X and type this

startx -dpi 96

then reopen www.linuxquestions.org and your fonts should be a more acceptable size, give it a try.


More a more precise fix of the font DPI see this post http://www.linuxquestions.org/questi...034/page4.html

Last edited by Daedra; 06-17-2008 at 01:19 AM.
 
Old 06-17-2008, 01:22 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Once you determine the correct resolution with Daedra's example above, you can make it permanent.

In the monitor section of /etc/X11/xorg.conf use these examples:
Code:
Section "Monitor"

# HorizSync is in kHz unless units are specified.
# HorizSync may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
#    HorizSync  30-64         # multisync
#    HorizSync  31.5, 35.2    # multiple fixed sync frequencies
#    HorizSync  15-25, 30-50  # multiple ranges of sync frequencies
# VertRefresh is in Hz unless units are specified.
# VertRefresh may be a comma separated list of discrete values, or a
# comma separated list of ranges of values.
# NOTE: THE VALUES HERE ARE EXAMPLES ONLY.  REFER TO YOUR MONITOR'S
# USER MANUAL FOR THE CORRECT NUMBERS.
    Identifier     "AOC 203Vw+"
        DisplaySize     433    270
        HorizSync       31.0 - 82.0
        VertRefresh     56.0 - 75.0
        Option         "DPI" "100 x 100"
EndSection

Section "Device"

    #VideoRam    4096
    # Insert Clocks lines here if appropriate
    Identifier     "VESA Framebuffer"
    Driver         "nvidia"
EndSection

Section "Screen"

# If your card can handle it, a higher default color depth (like 24 or 32)
# is highly recommended.
#   DefaultDepth 8
#   DefaultDepth 16
#   DefaultDepth 32
# "1024x768" is also a conservative usable default resolution.  If you
# have a better monitor, feel free to try resolutions such as
# "1152x864", "1280x1024", "1600x1200", and "1800x1400" (or whatever your
# card/monitor can produce)
    Identifier     "Screen 1"
        Device     "VESA Framebuffer"
#       Device     "nVidia"
        Monitor    "AOC 203Vw+"
        DefaultDepth    24
        Option "DynamicTwinView" "false"
SubSection     "Display"
        Depth       24
        Modes      "1680x1050"
EndSubSection
EndSection
except place the correct values for your monitor. NB: If you use the monitor's name as I did for Identifier, you will also need to use it lower in the file for Monitor under Identifier.

Might also check your screen mode in that file. I'm using those settings for a 20 inch digital widescreen LCD.

Daedra, I like Clear Type in Windows, so am going to check out your font suggestions on my test box using a 19" digital Samsung.
 
Old 06-17-2008, 01:28 AM   #8
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
Let me know if you have any questions
http://www.linuxquestions.org/questi...n-12.1-640468/
 
Old 06-17-2008, 01:29 AM   #9
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Thanks. I have the link and the files ... just haven't the time yet.
 
Old 06-17-2008, 09:57 AM   #10
llin
LQ Newbie
 
Registered: Jun 2008
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Daedra View Post
More a more precise fix of the font DPI see this post http://www.linuxquestions.org/questi...034/page4.html
The DPI line in xorg.conf seems to be ignored, had to add it to startx.

xdpyinfo shows:

Code:
resolution:    96x96 dots per inch
dimensions:    1440x900 pixels (380x238 millimeters)
The dimensions line is off, without forcing the DPI xdpyinfo displays the correct dimensions of 303x190. A benign side effect? The dot pitch of the screen is 0.211 so 120 dpi (25.4/.211 = 128.38) is the native resolution.

1440 x .211 = 303.84mm width
0900 x .211 = 189.9mm height

My understanding from reading the various guides is that 96 dpi is just a reasonable starting point for LCDs. As the above guide states:

Quote:
Changing his memory map from 85dpi to 100dpi may indeed not be visable to him. It could actually look worse. He has gone from being 5.7 points away from his monitor's resolution to 9.3 points away from his monitor's resolution.

Last edited by llin; 06-17-2008 at 12:54 PM.
 
Old 06-18-2008, 08:41 PM   #11
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-14.1
Posts: 1,226

Rep: Reputation: 187Reputation: 187
We'll your math looks correct but I still think 120 DPI is awfully large for 1440x900 resolution. Did lowering the font DPI change your font sizes?
 
Old 06-18-2008, 11:02 PM   #12
Stroker
Member
 
Registered: Dec 2006
Location: The Nature Coast
Distribution: Slackware 01001101
Posts: 83

Rep: Reputation: 18
Quote:
Originally Posted by llin View Post
LQ is one of the few sites that renders in a larger than normal size.
If other sites look fine, then this doesn't sound like a system config problem to me.

What are your setting in FireFox:

Edit > Preferences > Content > Fonts & Colors > Advanced?

Have you changed any font setting in about:config?

Using a custom theme?


As a side note, I would not count on a general Wikipedia article for the dot pitch of your monitor. Check your owner manual or the manufactures website for the dot pitch specification. Just because a monitor can handle a given screen size does not mean it's physical display actually has that small of a dot pitch.

Last edited by Stroker; 06-24-2008 at 05:13 PM.
 
Old 06-19-2008, 11:57 AM   #13
llin
LQ Newbie
 
Registered: Jun 2008
Posts: 11

Original Poster
Rep: Reputation: 0
xfce has a font DPI setting under settings - user interface - font DPI

Changing the setting updates ~/.config/xfce4/mcs_settings/gtk.xml:

Code:
<option name="Xfce/XftDPI" type="int" value="96"/>
"System Default" sets the value to 0.

Screenshot of System Default
Screenshot of xfce font DPI 96
Screenshot of startx -dpi 96


The xfce setting leaves the resolution alone:

Code:
xdpyinfo | grep resolution
  resolution:    121x120 dots per inch
Quote:
Originally Posted by Stroker View Post
Check your owner manual or the manufactures website for the dot pitch specification.
Couldn't find a spec sheet, but I found a ruler and the physical screen size matches the math.
 
Old 06-19-2008, 12:27 PM   #14
Stroker
Member
 
Registered: Dec 2006
Location: The Nature Coast
Distribution: Slackware 01001101
Posts: 83

Rep: Reputation: 18
Quote:
Originally Posted by llin View Post
xfce has a font DPI setting under settings - user interface - font DPI

Code:
<option name="Xfce/XftDPI" type="int" value="96"/>
Xft dpi is also an entry in the Xresource Data Base.

Last edited by Stroker; 06-22-2008 at 02:31 PM.
 
Old 06-20-2008, 10:03 PM   #15
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
I'm middle-aged and my eyesight gradually reflects that with each passing year. Therefore I prefer readable text, meaning slightly larger, not the nonsense tiny stuff that naive web designers use.

I have used the 120 dpi resolution going back many years to the mid 90s with Windows NT4. Long before my eyesight started reflecting my age. The "Large Fonts" setting was roughly the equivalent of 120 dpi.

With Slackware I use 120 dpi on a 17 inch LCD monitor running a native resolution of 1280 x 1024. Based upon my experience with 17 inch monitors, I suspect with a 1440 horizontal pixels, that the 120 dpi setting is much better than 100 or 96 dpi.

I force the resolution in startx:

serverargs="-dpi 120 -ac -nolisten tcp"

After setting the resolution, I adjust my desktop font sizes to taste. I use KDE. Without changing the desktop font sizes from the typical default settings, all fonts will be much too tiny at 120 dpi. Therefore this is a two-step process although straightforward.

The big challenge is web browsing. All the folks out there who design web pages on 24 inch monitors don't "get it." That is, a significant portion of the people are not interested in tiny fonts or squeezing more information on a page than can be absorbed by any typical human. I ensure my fonts in Firefox are slightly large. In my Firefox user.js, I have the following:

user_pref("font.FreeType2.enable", true);
user_pref("font.default", "sans-serif");
user_pref("font.default.x-western", "sans-serif");
user_pref("font.freetype2.shared-library", "/usr/lib/libfreetype.so.6");
user_pref("font.minimum-size.x-unicode", 14);
user_pref("font.minimum-size.x-western", 14);
user_pref("font.name.cursive.x-western", "Comic Sans MS");
user_pref("font.name.fantasy.x-western", "Algerian");
user_pref("font.name.monospace.x-western", "Lucida Console");
user_pref("font.name.sans-serif.x-western", "Arial");
user_pref("font.name.serif.x-western", "Georgia");
user_pref("font.size.fixed.x-western", 17);
user_pref("font.size.variable.x-western", 17);


However, those adjustments are only a basic foundation. Those font settings will not override those naive web designers who don't "get it." Especially when most sites use cascading style sheets. For web site sites I visit often that use way too small text --- and LQ is one of those sites, I create a custom style sheet. I use Firefox but the idea should work for any browser supporting individual style sheets.

To get this concept to function, I chain (cascade) a series of userContent.css files. I insert the following in every user's firefox userContent.css file:

@import "file:///home//public//firefox_shared/Chrome/userContent.css";

I share several Firefox configuration files with all of my user accounts. Hence the public location for my primary userContent.css file. In that file I add specific Firefox tweaks but at the top of the file I insert:

@import url(userContent-tweaks.css);

In userContent-tweak.css I add the following:

@import url(userContent-site-linuxquestions.css);
@import url(userContent-site-zdnet.css);
@import url(userContent-site-eweek.css);
@import url(userContent-site-enterprisenetworkingplanet.css);
@import url(userContent-site-linuxplanet.css);
@import url(userContent-site-osweekly.css);
@import url(userContent-site-wired.css);
etc.
etc.


When I decide I want to regularly visit an eyesight-busting web site, I create a site specific style sheet and then add the style sheet to userContent-tweaks.css. By chaining (cascading) my style sheets in this manner I need not muck around with my primary userContent.css file.

In each user-content-site-xyz.css file, I insert the tweaks I need to render the specific web site the way I want. Because I am no expert on cascading style sheets, usually I have to experiment until I find the combination I want. My userContent-site-linuxquestions.css looks like this:

@-moz-document domain(linuxquestions.org) {

body, p, div, font, table, tr, td, span, input, select, button {
font-family: 'Arial', sans-serif !important;
font-size: 18px !important;
}
h1,h2,h3,h4,h5,h6 {
font-family: 'Arial', sans-serif !important;
font-size: 18px !important;
}
a:link {
text-decoration: underline !important;
font-family: 'Arial', sans-serif !important;
font-size: 18px !important;
}
a:visited {
text-decoration: underline !important;
font-family: 'Arial', sans-serif !important;
font-size: 18px !important;
}
a:hover {
text-decoration: underline !important;
font-family: 'Arial', sans-serif !important;
font-size: 18px !important;
}
.code {
font-size: 18px !important;
font-family: 'Luxida Console', 'Courier New', monospace !important;
}
}


I hope this helps.
 
  


Reply

Tags
fonts


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sizing Partitions Ace Blackwell Linux - Hardware 14 04-27-2008 12:41 AM
Font sizing apps toedoe Slackware 6 09-13-2007 04:49 AM
Re-sizing a partition.. ranjitcool Linux - Software 4 12-23-2006 07:11 PM
Inconsistent menu font sizing FlyingDonkey Linux - Software 1 03-30-2006 07:56 PM
Partition sizing dummy Linux - Newbie 4 11-04-2002 09:04 PM


All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration