Announcement

Collapse
No announcement yet.

fonts

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    fonts

    Hi

    i use Kubuntu oneiric

    just moved over from ubuntu 11.04. And fonts look complete crap on my dual 1680x1050 setup. And this is the DEFAULT. I enabled Full sub-pixel rendering and still no deal. And yes im comparing with Gnome/ubuntu oneiric.

    Even if yank up the DPI things look crap and really thin.

    There's various threads out there mostly outdated from like 2009 and all talk about install freetype?

    Any recent 2011 guide on how to make fonts in KDE KUBUNTU oneiric look half decent in all KDE AND GNOME apps? i dont want to start using Linux Mint because of this.

    thanks,

    #2
    Re: fonts

    I have same issue with my Samsung Screen at 1920x1080. I use Invidia driver (both the free driver and propriety one)

    Comment


      #3
      Re: fonts

      One thing I have been doing since about 5 years ago with KDE is simply linking .gtkrc-2.0-kde4 to .gtkrc-2.0 for your user.

      Code:
      ln -s .gtkrc-2.0-kde4 .gtkrc-2.0
      This fixes GTK apps like Firefox and Thunderbird, etc...

      As for the system fonts, they have looked good to me for the last couple releases, so I haven't had to muck around with them at all. In fact, on my machine(s), they look the same as Ubuntu - seeing as they are using the same font :-D.

      Like you mentioned, change your hinting and RGB settings if you want too, but on my 30in LCD monitor, that usually makes my eyes strain more.

      Works ok on my Asus laptop, however.

      Hope this helps!

      Joe

      Comment


        #4
        Re: fonts

        I love font rendering on my Kubuntu (better, in someway, than windows 7). You can try out my .fonts.conf (make sure to back up yours first). Copy codes below to your .fonts.conf file, save it, logout, login to see changes.

        Code:
        <?xml version='1.0'?>
        <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
        <fontconfig>
         <!-- enable auto-hinting-->
         <match target="font">
         <edit mode="assign" name="autohint">
          <bool>true</bool>
         </edit>
         </match> 
         <!-- enable hint style (hintfull, hintmedium, hintslight and hintnone), hintslight is recommended for autohinter-->
         <match target="font">
         <edit mode="assign" name="hintstyle">
          <const>hintmedium</const>
         </edit>
         </match>
         <!-- enable subpixel rendering -->
          <match target="font">
          <edit name="rgba" mode="assign">
           <const>rgb</const>
          </edit>
         </match>
         <!-- enable the LCD filter, which is designed to reduce colour fringing when using subpixel rendering -->
         <match target="font">
         <edit mode="assign" name="lcdfilter">
          <const>lcddefault</const>
         </edit>
         </match> 
        <!-- To fix Calibri font -->
         <match target="font">
         <edit mode="assign" name="embeddedbitmap">
          <bool>false</bool>
         </edit>
         </match>
         <!-- enable normal hinting, using freetype's Byte-Code Interpreter -->
         <match target="font">
         <edit mode="assign" name="hinting">
          <bool>true</bool>
         </edit>
         </match>
         <!-- Disable autohint for bold fonts -->
         <match target="font">
         <test compare="more" name="weight">
          <const>medium</const>
         </test>
         <edit mode="assign" name="autohint">
          <bool>false</bool>
         </edit>
         </match>
         <!-- Set font DPI -->
         <match target="pattern">
         <edit mode="assign" name="dpi">
          <double>96</double>
         </edit>
         </match>
         <!-- Tweak Courier -->
         <match target="pattern" name="family">
         <test name="family" qual="any">
          <string>Courier</string>
         </test>
         <edit mode="assign" name="lcdfilter">
          <const>lcdlegacy</const>
         </edit>
         </match>
         <!-- Tweak Courier New -->
         <match target="pattern" name="family">
         <test name="family" qual="any">
          <string>Courier New</string>
         </test>
         <edit mode="assign" name="lcdfilter">
          <const>lcdlegacy</const>
         </edit>
         </match>
         <!-- Replace Luxi Sans with a better-looking font -->
         <match target="pattern" name="family">
         <test name="family" qual="any">
          <string>Luxi Sans</string>
         </test>
         <edit mode="assign" name="family">
          <string>Liberation Sans</string>
         </edit>
         </match>
         <match target="pattern" name="family">
         <test name="family" qual="any">
          <string>fixed</string>
         </test>
         <edit mode="assign" name="family">
          <string>monospace</string>
         </edit>
         </match>
         <!-- Create difference between small Candara and small Candara bold -->
         <match target="pattern" name="family">
         <test name="family" qual="any">
          <string>Candara</string>
         </test>
         <test compare="less_eq" name="size">
          <double>10</double>
         </test>
         <test compare="more" name="weight">
          <const>medium</const>
         </test>
         <edit mode="assign" name="embolden">
          <bool>true</bool>
         </edit>
         </match>
         <!-- make fonts look better with lcdlegacy -->
         <match target="font">
         <test compare="eq" name="family">
          <string>Andale Mono</string>
         </test>
         <test compare="less" name="weight">
          <const>medium</const>
         </test>
         <test compare="less_eq" name="pixelsize">
          <double>7</double>
         </test>
         <edit mode="assign" name="antialias">
          <bool>false</bool>
         </edit>
         </match>
         <match target="font">
         <test compare="eq" name="family">
          <string>Arial</string>
         </test>
         <test compare="less" name="weight">
          <const>medium</const>
         </test>
         <test compare="less_eq" name="pixelsize">
          <double>7</double>
         </test>
         <edit mode="assign" name="antialias">
          <bool>false</bool>
         </edit>
         </match>
         <match target="font">
         <test compare="eq" name="family">
          <string>Comic Sans MS</string>
         </test>
         <test compare="less" name="weight">
          <const>medium</const>
         </test>
         <test compare="less_eq" name="pixelsize">
          <double>7</double>
         </test>
         <edit mode="assign" name="antialias">
          <bool>false</bool>
         </edit>
         </match>
         <match target="font">
         <test compare="eq" name="family">
          <string>Georgia</string>
         </test>
         <test compare="less" name="weight">
          <const>medium</const>
         </test>
         <test compare="less_eq" name="pixelsize">
          <double>7</double>
         </test>
         <edit mode="assign" name="antialias">
          <bool>false</bool>
         </edit>
         </match>
         <match target="font">
         <test compare="eq" name="family">
          <string>Times New Roman</string>
         </test>
         <edit mode="assign" name="lcdfilter">
          <const>lcdlegacy</const>
         </edit>
         </match>
         <match target="font">
         <test compare="eq" name="family">
          <string>Trebuchet MS</string>
         </test>
         <test compare="less" name="weight">
          <const>medium</const>
         </test>
         <test compare="less_eq" name="pixelsize">
          <double>7</double>
         </test>
         <edit mode="assign" name="antialias">
          <bool>false</bool>
         </edit>
         </match>
         <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
         <selectfont>
         <rejectfont>
          <pattern>
          <patelt name="scalable">
           <bool>false</bool>
          </patelt>
          </pattern>
         </rejectfont>
         </selectfont>
         <match target="font">
         <edit mode="assign" name="rgba">
          <const>rgb</const>
         </edit>
         </match>
         <match target="font">
         <edit mode="assign" name="antialias">
          <bool>true</bool>
         </edit>
         </match>
         <!-- Replace Verdana with Tahoma -->
         <match target="pattern" name="family">
         <test name="family" qual="any">
          <string>Verdana</string>
         </test>
         <edit mode="assign" name="family">
          <string>Tahoma</string>
         </edit>
         </match>
         <dir>~/.fonts</dir>
        </fontconfig>

        Comment


          #5
          Re: fonts

          I also installed something called QTCurve to help gtk and kde apps look similar. I also got relief by installed Droid Sans fonts and increasing all the font sizes by 2. ie. most of the sizes are "11" and things look bettER. But thanks I will give both of your suggestions a go.

          Comment


            #6
            Re: fonts

            If you had not done so, you may want to install ms core fonts to help with web browser font rendering. I think the package is called ttf-mscorefonts-installer. My system dual boot kubuntu and windows 7, so I simply directed kde font installer to windows font folder.

            Comment


              #7
              Re: fonts

              PainGiver, one could also either have fonts.conf point to the Windows fonts folder (requires sudo and a text editor), or create a link in the /usr/share/fonts/ folder to said folder to have the fonts recognized without copying the fonts over.
              The unjust distribution of goods persists, creating a situation of social sin that cries out to Heaven and limits the possibilities of a fuller life for so many of our brothers. -- Archbishop Jorge Mario Bergoglio of Buenos Aires (now Pope Francis)

              Comment


                #8
                Re: fonts

                Have you configured anti-aliasing under System Settings | Fonts?

                I don't recall now whether that's the default, but it makes an enormous improvement for me.

                Comment


                  #9
                  Re: fonts

                  Originally posted by PainGiver
                  If you had not done so, you may want to install ms core fonts to help with web browser font rendering. I think the package is called ttf-mscorefonts-installer. My system dual boot kubuntu and windows 7, so I simply directed kde font installer to windows font folder.
                  Hi PainGiver,

                  I used your fonts config file and WOW, that does look great!

                  Thanks for that.
                  Joe

                  Comment


                    #10
                    Re: fonts

                    Originally posted by LinuxRocks
                    I used your fonts config file and WOW, that does look great!
                    Would you mind posting screenshots of before and after? I'm curious to see what improvements you got.

                    Comment


                      #11
                      Re: fonts

                      Originally posted by SteveRiley
                      Originally posted by LinuxRocks
                      I used your fonts config file and WOW, that does look great!
                      Would you mind posting screenshots of before and after? I'm curious to see what improvements you got.
                      Sure... I will post before and after links for you to look at.

                      I think the before (Fonts changed via system settings) pic shows fonts that are too skinny and hard to read. I changed the subpixel to RGB and hinting to full.

                      The after shot (after applying the .fonts.conf file from this thread) makes the fonts look full and much easier to read.

                      What do you think?

                      Before
                      http://www.joeman1.com/images/FontsScreenShotBefore.png

                      After
                      http://www.joeman1.com/images/FontsScreenShotAfter.png

                      Joe

                      Comment


                        #12
                        Re: fonts

                        Wait...so the "before" pic is with anti-aliasing and sub-pixel enabled? And it still looked like crap? Hm. I'm going to have to investigate that config file PainGiver posted. Although my fonts look fine as is...

                        Comment


                          #13
                          Re: fonts

                          Originally posted by SteveRiley
                          Wait...so the "before" pic is with anti-aliasing and sub-pixel enabled? And it still looked like crap? Hm. I'm going to have to investigate that config file PainGiver posted. Although my fonts look fine as is...
                          Yeah, thats correct. I thought the fonts were fine before too. Then I tested the config file and now they seem to be better.

                          Although, I have to tweak the Bold font as that looks a little blocky to me. But otherwise, I like the config.

                          Joe

                          Comment


                            #14
                            Re: fonts

                            Originally posted by bsniadajewski
                            PainGiver, one could also either have fonts.conf point to the Windows fonts folder (requires sudo and a text editor), or create a link in the /usr/share/fonts/ folder to said folder to have the fonts recognized without copying the fonts over.
                            Thanks, that's good to know.

                            Comment


                              #15
                              Re: fonts

                              Originally posted by LinuxRocks
                              Originally posted by SteveRiley
                              Wait...so the "before" pic is with anti-aliasing and sub-pixel enabled? And it still looked like crap? Hm. I'm going to have to investigate that config file PainGiver posted. Although my fonts look fine as is...
                              Yeah, thats correct. I thought the fonts were fine before too. Then I tested the config file and now they seem to be better.

                              Although, I have to tweak the Bold font as that looks a little blocky to me. But otherwise, I like the config.

                              Joe
                              If you don't like the way bold fonts look, just delete the following lines:
                              Code:
                               <!-- Disable autohint for bold fonts -->
                               <match target="font">
                               <test compare="more" name="weight">
                                <const>medium</const>
                               </test>
                               <edit mode="assign" name="autohint">
                                <bool>false</bool>
                               </edit>
                               </match>
                              and you probably don't need these either (although I find Tahoma more pleasing to the eye than Verdana):
                              Code:
                               <!-- Replace Verdana with Tahoma -->
                               <match target="pattern" name="family">
                               <test name="family" qual="any">
                                <string>Verdana</string>
                               </test>
                               <edit mode="assign" name="family">
                                <string>Tahoma</string>
                               </edit>
                               </match>
                              Careful NOT to delete the last two lines in .fonts.conf:
                              Code:
                               <dir>~/.fonts</dir>
                              </fontconfig>

                              Comment

                              Working...
                              X