LinuxQuestions.org
Visit Jeremy's Blog.
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 10-08-2012, 11:42 AM   #376
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,562

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394

Quote:
Originally Posted by Miranden View Post
I do like the Solarized theme, though. I was just in the process of installing it myself.
Then I should link you the blog entry that the screenshot is from:

http://duganchen.ca/solarized-color-theme-screenshot/
 
1 members found this post helpful.
Old 10-13-2012, 12:43 PM   #377
Miranden
Member
 
Registered: May 2012
Posts: 188

Rep: Reputation: 19
I was planning on posting to this thread to show everybody how great my fonts looked after optimizing them, but sadly, I think I might have messed them up again. I installed infinality with the slackbuilds on Kabamaru's website here:


http://someslack.wordpress.com/infinality-on-slackware/


and everything looked 1,000 times better. I can honestly say that with this adaptation, my fonts in Slackware were second to none. They were even better than Ubuntu, not to mention Windows. At least, for everything except the web. I thought in that area there was still a little room for improvement.

So I did the following. I created a directory /usr/local/share/fonts. I was going to put fonts in that folder (of course!). Then in /etc/fonts I created a file, local.conf. Then I installed the Slackbuild for the Microsoft core fonts for the web, maintained by Dugan.

My local.conf contains this:

Code:
<?xml version="1.0"?>
<fontconfig>

<dir>/usr/local/share/fonts</dir>
<!-- Globally use embedded bitmaps in fonts like Calibri? -->
<match target="font" >
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>

</fontconfig>
I thought that the first line after <fontconfig> would allow that directory to be searched for fonts by whatever it is that does the searching for them. The rest of it I put in because the Slackbuilds website says to do so. After I made these changes, I restarted the computer.

Now, I do not really see that any different fonts are being used for the web, but it seems like there is a sort of halo over everything. Can someone tell me if maybe I did something wrong? Did the web core fonts or the local.conf conflict with my already installed Infinality? Thank you.

Last edited by Miranden; 10-13-2012 at 01:32 PM.
 
Old 10-14-2012, 01:45 AM   #378
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 133Reputation: 133
Hi Miranden, is there a link named 51-local.conf in /etc/fonts/conf.d/ ? If you deleted this (as per my instructions), you have to restore it. This link enables /etc/fonts/local.conf. This file will override any file under /etc/fonts/conf.d (when there is a conflict).

On a side note, you must have in mind that the core fonts for the web are really, really old. If you have more recent versions of them, they are highly recommended.

About the halo thing, you'll have to tell me what configurations you've made so far. Did you edit any files? What are the contents of /etc/fonts/conf.d ?

Last edited by kabamaru; 10-14-2012 at 01:54 AM.
 
1 members found this post helpful.
Old 10-15-2012, 09:35 AM   #379
Miranden
Member
 
Registered: May 2012
Posts: 188

Rep: Reputation: 19
Quote:
Originally Posted by kabamaru View Post
Hi Miranden, is there a link named 51-local.conf in /etc/fonts/conf.d/ ? If you deleted this (as per my instructions), you have to restore it. This link enables /etc/fonts/local.conf. This file will override any file under /etc/fonts/conf.d (when there is a conflict).

On a side note, you must have in mind that the core fonts for the web are really, really old. If you have more recent versions of them, they are highly recommended.

About the halo thing, you'll have to tell me what configurations you've made so far. Did you edit any files? What are the contents of /etc/fonts/conf.d ?
Hi,

Thanks for your response. I would have gotten back to you sooner, but I had no internet yesterday.

In my /etc/fonts/conf.d, I have

Code:
20-fix-globaladvance.conf	       50-user.conf
20-unhint-small-dejavu-sans-mono.conf  51-local.conf
20-unhint-small-dejavu-sans.conf       52-infinality.conf
20-unhint-small-dejavu-serif.conf      57-dejavu-sans-mono.conf
20-unhint-small-vera.conf	       57-dejavu-sans.conf
30-metric-aliases.conf		       57-dejavu-serif.conf
30-urw-aliases.conf		       65-fonts-persian.conf
40-nonlatin.conf		       65-nonlatin.conf
42-luxi-mono.conf		       69-unifont.conf
44-wqy-zenhei.conf		       80-delicious.conf
45-latin.conf			       90-synthetic.conf
49-sansserif.conf		       README
44-wqy-zenhei.conf is commented out around the <alias> tags as per your instructions.

I did away with most of the changes I had made myself before (I had changed a couple of config files, but I restored the old ones from backup), so now everything is basically just as your tutorial advises. The only changes I made that remain are to enable full hinting and antialiasing in the XFCE menu, and to set my subpixel order to RGB (which is correct for my monitor). I did this also from the XFCE appearance menu.

As for the core fonts for the web, I think I can get newer ones, but where should I put them? I see that the Slackbuild created the directory /usr/share/fonts/TTF and put them in there, but what I am not sure of is what is configuring that directory to be used (and like I said, it doesn't really look like different fonts are being used for webpages). Is there something else I need to do to enable it? When I find the newer versions of those fonts, should I delete everything from the /usr/share/fonts/TTF directory and put in the new versions, or should I leave it alone and put those new fonts in the /usr/share/local/fonts directory I created earlier, which is pointed to by local.conf?

The halo thing isn't really severe, but I notice it. It seems worse on dark backgrounds.

Thank you!

Last edited by Miranden; 10-15-2012 at 09:45 AM.
 
Old 10-15-2012, 10:53 AM   #380
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 133Reputation: 133
To install your truetype fonts:

Become root.
Copy the *.ttf files in /usr/share/fonts/TTF (or /usr/local/share/fonts/TTF if you prefer)

Then:

Code:
cd /usr/share/fonts/TTF
mkfontdir .
mkfontscale .
fc-cache -fv
To check if your fonts are used:

Code:
fc-match sans; fc-match serif; fc-match monospace
I use the "infinality" style, and the above command returns:

Code:
arial.ttf: "Arial" "Normal"
times.ttf: "Times New Roman" "Normal"
cour.ttf: "Courier New" "Normal"
 
Old 10-17-2012, 12:35 PM   #381
Miranden
Member
 
Registered: May 2012
Posts: 188

Rep: Reputation: 19
Thanks! Installing the newer web fonts seems to have fixed the halo problem. I guess the old ones were in fact being used, and these new ones are just better. Now everything looks great in Slackware again.

I really appreciate your help!
 
Old 11-11-2012, 02:48 PM   #382
Munra
LQ Newbie
 
Registered: Mar 2008
Location: Colombia
Distribution: slackware64 14
Posts: 27

Rep: Reputation: 1
Thanks for the link to "Infinality on Slackware" that project is excellent.
I just want to say that in the script infinality.conf that is placed in "/etc/fonts/infinality"; I change the part of the DPI to 96 because the default, DPI 72, makes openbox menus looks very very tiny. So the script is now:



Code:
<fontconfig>

    <!-- Choose an OS Rendering Style.  This will determine B/W, grayscale,
         or subpixel antialising and slight, full or no hinting and replacements (if set in next option) -->
    <!-- Style should also be set in the infinality-settings.sh file, ususally in /etc/profile.d/ -->

    <!-- Choose one of these options:
        Infinality      - subpixel AA, minimal replacements/tweaks, sans=Arial
        Windows 7       - subpixel AA, sans=Arial
        Windows XP      - subpixel AA, sans=Arial
        Windows 98      - B/W full hinting on TT fonts, grayscale AA for others, sans=Arial
        OSX             - Slight hinting, subpixel AA, sans=Helvetica Neue
        OSX2            - No hinting, subpixel AA, sans=Helvetica Neue
        Linux           - subpixel AA, sans=DejaVu Sans

    === Recommended Setup ===
    Run ./infctl.sh script located in the current directory to set the style.
    
    # ./infctl.sh setstyle
    
    === Manual Setup ===
    See the infinality/styles.conf.avail/ directory for all options.  To enable 
    a different style, remove the symlink "conf.d" and link to another style:
    
    # rm conf.d
    # ln -s styles.conf.avail/win7 conf.d
    -->

    <!-- Uncomment this to reject all bitmap fonts -->
    <!-- Make sure to run this as root if having problems:  fc-cache -f -->
    <!--
    <selectfont>
        <rejectfont>
            <pattern>
                <patelt name="scalable" >
                    <bool>false</bool>
                </patelt>
            </pattern>
        </rejectfont>
    </selectfont>
    -->


    <!-- Ban Type-1 fonts because they render poorly -->
    <!-- Comment this out to allow all Type 1 fonts -->
    <selectfont>
        <rejectfont>
            <pattern>
                <patelt name="fontformat" >
                    <string>Type 1</string>
                </patelt>
            </pattern>
        </rejectfont>
    </selectfont>

    <!-- Globally use embedded bitmaps in fonts like Calibri? -->
    <match target="font" >
        <edit name="embeddedbitmap" mode="assign">
            <bool>false</bool>
        </edit>
    </match>

    <!-- Substitute truetype fonts in place of bitmap ones? -->
    <match target="pattern" >
        <edit name="prefer_outline" mode="assign">
            <bool>true</bool>
        </edit>
    </match>

    <!-- Make (some) monospace/coding TTF fonts render as bitmaps? -->
    <!-- courier new, andale mono, monaco, etc. -->
    <match target="pattern" >
        <edit name="bitmap_monospace" mode="assign">
            <bool>false</bool>
        </edit>
    </match>

    <!-- Force autohint always -->
    <!-- Useful for debugging and for free software purists -->
    <match target="font">
        <edit name="force_autohint" mode="assign">
            <bool>false</bool>
        </edit>
    </match>
    <!-- Set DPI.  dpi should be set in ~/.Xresources to 96 -->
    <!-- Setting to 72 here makes the px to pt conversions work better (Chrome) -->
    <!-- Some may need to set this to 96 though -->
    <match target="pattern">
        <edit name="dpi" mode="assign">
            <!-- <double>72</double> -->
            <double>96</double>
        </edit>
    </match>

    <!-- Use Qt subpixel positioning on autohinted fonts? -->
    <!-- This only applies to Qt and autohinted fonts. Qt determines subpixel positioning based on hintslight vs. hintfull, -->
    <!--   however infinality patches force slight hinting inside freetype, so this essentially just fakes out Qt. -->
    <!-- Should only be set to true if you are not doing any stem alignment or fitting in environment variables -->
    <match target="pattern" >
        <edit name="qt_use_subpixel_positioning" mode="assign">
            <bool>false</bool>
        </edit>
    </match>

    <!-- Run infctl.sh or change the symlink in current directory instead of modifying this -->
    <include>infinality/conf.d</include>

</fontconfig>

Last edited by Munra; 11-11-2012 at 02:49 PM. Reason: poor english
 
Old 11-11-2012, 04:22 PM   #383
kabamaru
Member
 
Registered: Dec 2011
Location: Greece
Distribution: Slackware
Posts: 276

Rep: Reputation: 133Reputation: 133
@Munra:

I do this too; having this set to 72 makes Libreoffice's fonts look bigger (!) than the rest of the desktop on my system.
 
Old 11-19-2012, 12:54 PM   #384
joncr
Member
 
Registered: Jun 2012
Posts: 73

Rep: Reputation: Disabled
Thanks! And Is ft-settings.sh Still Valid?

First, Big Thanks to dugan and Daedra and all the rest for making Slackware fonts look great. I've returned to Slack after meandering off the path for some time. It's nice to see it looking spiffy.

Second, for dugan: Your github page mentions using ft-settings.sh to tweak things. Where is that file? It wasn't in the archive I used, but I see it in a commit you did in July. Should I use that? Thanks.
 
Old 11-19-2012, 02:30 PM   #385
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,562

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394
I don't use ft-settings.sh myself, but it's definitely installed by the SlackBuild.
 
Old 11-19-2012, 02:56 PM   #386
joncr
Member
 
Registered: Jun 2012
Posts: 73

Rep: Reputation: Disabled
Hmm. I found it in the free type/files directory in the build.
 
Old 01-17-2013, 09:08 PM   #387
dimm0k
Member
 
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.0
Posts: 386

Rep: Reputation: 23
any update on when we can see patches for freetype-2.4.11?
 
Old 01-18-2013, 04:26 AM   #388
GazL
Senior Member
 
Registered: May 2008
Posts: 3,319

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
deleted: misunderstood question.
.
 
Old 01-19-2013, 03:41 AM   #389
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 14.1/Current, CentOS 6.5/7.0
Posts: 713

Rep: Reputation: Disabled
May be unrelated to the thread topic, but since I updated KDE to 4.9.2 yesterday on my Slackware 14 box, the fonts on Chromium, Firefox and Opera started looking way smoother and seem blended with the Oxygen theme. I don't know what changes were there but it's pleasing.

Regards.
 
Old 01-19-2013, 08:25 PM   #390
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,562

Rep: Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394Reputation: 1394
Quote:
Originally Posted by dimm0k View Post
any update on when we can see patches for freetype-2.4.11?
It hasn't been updated in the upstream source I'm using for my SlackBuilds.
 
  


Reply


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
If I were to recompile & arch-optimize Slackware, where to begin? GrapefruiTgirl Slackware 124 06-22-2007 09:46 PM
How to Optimize Slackware 10.2? zeroz52 Slackware 23 10-04-2005 06:42 PM
How to fully optimize Slackware? Introx Slackware 4 05-30-2004 04:23 AM


All times are GMT -5. The time now is 09:06 PM.

Main Menu
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