<---- template headericclude ----->
Fonts don't display properly
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    leigh123linux Guest

    Fonts don't display properly

    I noticed in fedora that the fonts look terrible with LCD screens when viewing web pages.

    The default font is 96x96

    However when I checked my screen size ( height & width ) and font resolution I found it
    was 86x84 which will really screw your fonts up.
    solution

    add or change this line in xorg.conf

    DisplaySize 270 203
    Section "Monitor"

    ### Comment all HorizSync and VertSync values to use DDC:
    Identifier "Monitor0"
    VendorName "Monitor Vendor"
    ModelName "Philips 105S(15inch/CM2300)"
    DisplaySize 270 203
    ### Comment all HorizSync and VertSync values to use DDC:
    HorizSync 30.0 - 60.0
    VertRefresh 50.0 - 120.0
    Option "dpms"
    EndSection
    Here the correct values to give 96x96 fonts for most resolutions

    DisplaySize 270 203 # 1024x768 96dpi
    DisplaySize 338 254 # 1280x960 96dpi
    DisplaySize 338 270 # 1280x1024 96dpi
    DisplaySize 370 277 # 1400x1050 96dpi
    DisplaySize 442 277 # 1680x1050 96dpi
    DisplaySize 423 370 # 1600x1400 96dpi

    To get other values, use the following formula:
    displaysize = <pixelsize>/96*25.4
    To change this type in terminal

    su
    gedit /etc/X11/xorg.conf
    Then edit .

    Don't worry if these sizes don't correspond to monitor size. These figures are correct and wont effect the real screen size.

    To check screen size.

    xdpyinfo | grep dimensions
    To check font resolution.

    xdpyinfo | grep resolution
    If the resolution is not 96x96 dots per inch slightly adjust the DisplaySize values until correct.

    Configure Gnome to run at 96 dpi in desktop > Preferences > Font > Details
    Last edited by leigh123linux; 3rd January 2007 at 03:21 PM.

  2. #2
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,995
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I find font settings pretty tricky in Fedora with LCDs, I'm using Gnome desktop, 1280x1024 L1710B monitor:

    System->Preferences->Fonts

    Best Shapes
    Details->
    Resolution 96 dots per inch
    Subpixel Smoothing
    Hinting->Slight

    I'm not sure I have the best settings

    What does everyone else have?

    I'll have to try the xorg changes you suggest sometime.


    edit: btw, I have the windows true-type fonts installed

  3. #3
    leigh123linux Guest
    I have windows true type as well and had 96x96 set in the fonts section, but when I issued this command ( xdpyinfo | grep resolution ) it returned 86x84 .
    After editing xorg.conf and restarting X the difference was amazing , Before I changed it I thought I needed new glasses.

  4. #4
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,995
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    geez, when I do 'xdpyinfo | grep resolution ' it says 95x96

    Now, I'm feeling my display is a tiny bit fuzzy, but I don't know if it's worth playing with the settings.

    I don't know much about xdpyinfo though, so thanks for the pointers

    (I'm gonna be real paranoid about that 95 x resolution)

  5. #5
    leigh123linux Guest
    In xorg.conf change or add this line to the monitor section

    DisplaySize 338 270
    restart X then do the same command again

    xdpyinfo | grep resolution
    This change cant stop X starting.

  6. #6
    leigh123linux Guest
    Just checking another install this is what I got when it reported in font setup 96x96



    [leigh@localhost ~]$ xdpyinfo | grep dimensions
    dimensions: 1024x768 pixels (302x232 millimeters)
    [leigh@localhost ~]$ xdpyinfo | grep resolution
    resolution: 86x84 dots per inch
    [leigh@localhost ~]$
    after changing settings to ( DisplaySize 270 203 )

    It now gives me this , and much clearer fonts

    [leigh@localhost ~]$ xdpyinfo | grep resolution
    resolution: 96x96 dots per inch
    [leigh@localhost ~]$ xdpyinfo | grep dimensions
    dimensions: 1024x768 pixels (271x203 millimeters)
    [leigh@localhost ~]$
    Last edited by leigh123linux; 31st December 2006 at 04:05 AM.

  7. #7
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,995
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, that's not bad!

    I adjusted the DisplaySize as suggested and now xdpyinfo reports 96x96.

    So I went back to (Gnome) System->Preferences->Fonts

    and selected the LCD options (Subpixel Smoothing, Full Hinting) but I found I needed to select VRGB rather than RGB for the subpixel order.

    Have to say, the display does look pretty sharp now.

    You've solved a longstanding problem here

  8. #8
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,995
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    actually, I had to go back to Best Shapes and Slight Hinting to get the best rendering, but still looks a tad sharper than before.

  9. #9
    Join Date
    Jul 2005
    Location
    Ft Huachuca, AZ
    Posts
    3,781
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Leigh,

    Thanks for this! On my laptop the resolution initially showed 75x75 on a 1680x1050, 16:10 aspect laptop. After fudging around with the DisplaySize settings it now shows 96x96 resolution. It definitively looks better. This is on a 15.4 widescreen 1680x1050 native resolution and the settings turned out to be (DisplaySize 442 277). Feel free to include them in your settings above. Thanks Again.....

    Forget to mention that I'm using the Deja Vu fonts also...
    Last edited by Iron_Mike; 31st December 2006 at 05:31 AM.

  10. #10
    leigh123linux Guest
    I am glad this has helped.

  11. #11
    john Guest
    Hi,
    sorry for my bad English!

    It works great for fedora 6,but will it works also for other distro's?
    I'm currently on the way with a dualboot 'FC6 and OpenSuSe10.2'...can i used the same method for suse to?
    ...what do you think?
    Last edited by john; 31st December 2006 at 10:42 AM.

  12. #12
    leigh123linux Guest
    Quote Originally Posted by john
    Hi,
    sorry for my bad English!

    It works great for fedora 6,but will it works also for other distro's?
    I'm currently on the way with a dualboot 'FC6 and OpenSuSe10.2'...can i used the same under suse...what you think?
    So far this has worked for Debian and Fedora , but I can not see any reason way it shouldn't work with any Distro.

  13. #13
    john Guest
    Thx...I'm gonna give it a try !

  14. #14
    leigh123linux Guest
    I have finished tweaking my fonts, I selected Tohoma for my default TrueType and I am happy with the results.

    screenshot of 15" monitor set at 1024x768@75hz
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot-1.png 
Views:	207 
Size:	124.5 KB 
ID:	10965  

  15. #15
    Join Date
    Oct 2004
    Location
    London, UK
    Posts
    4,995
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using the default fonts (what do you mean by default True-Type font?) heres a screen shot (resolution is 1280x1024)
    [IMG]Screenshot.png[/IMG]
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot.png 
Views:	170 
Size:	239.6 KB 
ID:	10967  

Page 1 of 2 12 LastLast

Similar Threads

  1. Display Microsoft fonts properly
    By strikeforce in forum Guides & Solutions (Not For Questions)
    Replies: 1
    Last Post: 18th July 2007, 02:26 AM
  2. caret does not display properly in FC6
    By calin_iaru in forum EOL (End Of Life) Versions
    Replies: 2
    Last Post: 28th December 2006, 11:48 PM
  3. Replies: 2
    Last Post: 18th May 2006, 05:00 PM
  4. mount xp shares all chinese folders and fonts won't display properly
    By floppy&noodle in forum Installation, Upgrades and Live Media
    Replies: 1
    Last Post: 6th April 2005, 01:14 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]