You are not logged in.

#1 2007-01-08 13:29:00

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Great looking fonts through a simple file

I came across this site offering some help on how to setup decent fonts. I have no idea how it works, I just know it works as my fonts currently look truely awesome. I've never seen them this nice.

Just create the file ~/.fonts.conf with the text below in it. I pasted it here once more, because the author of the site forgot that the XML-tags are parsed by browsers aswell.

~/.fonts.conf

<xml>
<DOCTYPE>
<fontconfig>


<match>
  <edit>
   <const>none</const>
  </edit>
 </match>
 <match>
  <edit>
   <bool>true</bool>
  </edit>
 </match>

 <match>
  <edit>
   <const>hintfull</const>
  </edit>
 </match>

 <match>
  <edit>
   <bool>true</bool>
  </edit>
 </match>

 <match>
  <edit>
   <bool>true</bool>
  </edit>
 </match>

 <match>
  <test>
   <string>Helvetica</string>
  </test>
  <edit>
   <string>sans-serif</string>
  </edit>
 </match>

 <dir>~/.fonts</dir>
</fontconfig>

Let me know what you think of it.

I have no idea if this has ever been posted already, either on the forum, the mailing list or the Wiki. So sue me! tongue


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#2 2007-01-08 16:32:32

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: Great looking fonts through a simple file

can u post a screenshot? awesome when it comes to fonts is highly subjective


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#3 2007-01-08 19:32:02

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Great looking fonts through a simple file

Er, that "code" is nothing like a useful fonts.conf. Go to the link and "view page source" in your browser, then cut & paste the right bit of the page directly into your text editor. It will need tidying (remove html etc) sad

Offline

#4 2007-01-08 19:39:15

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Great looking fonts through a simple file

vacant wrote:

Er, that "code" is nothing like a useful fonts.conf. Go to the link and "view page source" in your browser, then cut & paste the right bit of the page directly into your text editor. sad

Dammit, you're right. I pasted it here explicitly because the same thing happened on that website: the author pasted the XML code in his HTML code and most of it got parsed. I'll try and look for a way.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#5 2007-01-08 19:43:06

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Great looking fonts through a simple file

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>


<match target="font" >
  <edit mode="assign" name="rgba" >
   <const>none</const>
  </edit>
</match>
<match target="font" >
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
</match>

<match target="font" >
  <edit mode="assign" name="hintstyle" >
   <const>hintfull</const>
  </edit>
</match>

<match target="font" >
  <edit mode="assign" name="antialias" >
   <bool>true</bool>
  </edit>
</match>

<match target="pattern" >
  <edit mode="assign" name="autohint" >
   <bool>true</bool>
  </edit>
</match>

<match target="pattern" name="family" >
  <test name="family" qual="any" >
   <string>Helvetica</string>
  </test>
  <edit mode="assign" name="family" >
   <string>sans-serif</string>
  </edit>
</match>

<dir>~/.fonts</dir>

</fontconfig>


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#6 2007-01-08 19:51:33

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: Great looking fonts through a simple file

Seems to work now, although I can't restart my x-server right now to see if it really worked ;-)


Haven't been here in a while. Still rocking Arch. smile

Offline

#7 2007-01-08 19:57:49

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Great looking fonts through a simple file

dolby wrote:

can u post a screenshot? awesome when it comes to fonts is highly subjective

Here's one from the homepage. If you have any requests, let me know.

omgfontsya7.png

Link fixed!


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#8 2007-01-08 20:00:29

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: Great looking fonts through a simple file

FUBAR, the img isn't linking properly to imageshack. The thumbnail won't cut it otherwise wink

Offline

#9 2007-01-08 20:07:30

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Great looking fonts through a simple file

FUBAR.. should it look like this?

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit mode="assign" name="rgba">
      <const>none</const>
    </edit>
  </match>
  <match target="font">
    <edit mode="assign" name="hinting">
      <bool>true</bool>
    </edit>
  </match>
  <match target="font">
    <edit mode="assign" name="hintstyle">
      <const>hintfull</const>
    </edit>
  </match>

  <match target="font">
    <edit mode="assign" name="antialias">
      <bool>true</bool>
    </edit>
  </match>

  <match target="pattern">
    <edit mode="assign" name="autohint">
      <bool>true</bool>
    </edit>
  </match>

  <match target="pattern" name="family">
    <test name="family" qual="any">
      <string>Helvetica</string>
    </test>
    <edit mode="assign" name="family">
      <string>sans-serif</string>
    </edit>
  </match>

  <dir>~/.fonts</dir>
</fontconfig>

just testing to see if I could get it to paste properly...


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#10 2007-01-08 20:10:50

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Great looking fonts through a simple file

I fixed the link. Wtf happened to ImageShack. Last time I checked I could figure it out!

Anyway, I reposted the correct code disabling the BB and HTML tags in the post. It displays properly here.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#11 2007-01-08 20:17:17

caust1c
Member
Registered: 2005-12-02
Posts: 56

Re: Great looking fonts through a simple file

hm, do i have to configure something?
i just put those code in ~/.fonts.conf but nothing changed hmm

something _did_ change.
with this config, my fonts get really ugly hmm

Offline

#12 2007-01-08 20:28:19

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Great looking fonts through a simple file

One of a number of previous discussions on the topic here, with some alternative ~/.fonts.conf files.

Offline

#13 2007-01-08 20:33:50

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Great looking fonts through a simple file

caust1c wrote:

hm, do i have to configure something?
i just put those code in ~/.fonts.conf but nothing changed hmm

something _did_ change.
with this config, my fonts get really ugly hmm

Ow, that's too bad. I don't understand a thing of all this font stuff, I came across that site and gave it a try. And the results show in that screenshot.

I guess you miles may (will) vary.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#14 2007-01-09 00:15:44

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Great looking fonts through a simple file

So, this fonts.conf file just disables subpixel rendering and cranks the autohinter to full. I could suggest an improvement (in my eyes) which is to check the font weight for bold fonts and not hint them so that they dont' apper so FAT.

Offline

#15 2007-01-09 19:02:53

MillTek
Member
Registered: 2005-01-30
Posts: 442

Re: Great looking fonts through a simple file

Just wanted to say thanks for this config.  My fonts were horrendous after installing Arch64 and this solved the problem.

Thanks!!!!!!!!!!!1

Jim

Offline

#16 2007-01-09 23:17:00

MillTek
Member
Registered: 2005-01-30
Posts: 442

Re: Great looking fonts through a simple file

I applied Ibertus' suggestion and things are even better!!


Thanks Again!


Jim

Offline

#17 2007-01-10 06:36:53

dmax
Member
Registered: 2006-10-21
Posts: 58

Re: Great looking fonts through a simple file

i didn't notice anything

Offline

#18 2007-01-10 08:24:49

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Great looking fonts through a simple file

MillTek wrote:

I applied Ibertus' suggestion and things are even better!!


Thanks Again!


Jim

How? My fat fonts could use a diet, to be honest.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#19 2007-01-10 08:37:34

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Great looking fonts through a simple file

AFAIK helvetica, courier and times are replaced by sans-serif, serif and monospace already in the default fontconfig configuration.

Offline

#20 2007-01-10 08:44:01

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: Great looking fonts through a simple file

err use pastebin syntax may show up correctly xml is a pig on forums lol


Mr Green

Offline

#21 2007-01-10 10:54:01

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Great looking fonts through a simple file

I had all sorts of problems with fonts, with some lookin poor under one setting and others lookin poor under another -- until i set my screen's DPI to 75, and now they're all sleek and sharp -- but not rough.

James

Offline

#22 2007-01-10 13:49:12

MillTek
Member
Registered: 2005-01-30
Posts: 442

Re: Great looking fonts through a simple file

[

How? My fat fonts could use a diet, to be honest.[/quote]

Hi FUBAR,

I aded the following snippet to the conf file;

<Disable>

    <match>
           <test>
            <const>medium</const>
        </test>
           <edit><bool>false</bool></edit>
    </match>


Regards,

Jim

Offline

Board footer

Powered by FluxBB