Archive

Archive for the ‘uncategorized’ Category

Switching your default Sans/Sans Serif/Monospace Fonts 2.5

And another update on my quest to a great .fonts.conf configuration, update from my updated-original post.

All stuff still applies, but newer freetype/fontconfig builds now support the Byte Code Interpreter, which provides a truly great font experience in combination with good fonts (*cough* hint: ChromeOS Fonts *cough*). My updated .fonts.conf is as follows (enabled BCI, enabled Sub-Pixel Rendering, enabled LCDFilter):

<?xml version="1.0"?>
<!--?xml version="1.0"?>-->
<!--DOCTYPE fontconfig SYSTEM "fonts.dtd">-->
<!-- ~/.fonts.conf for per-user font configuration -->
<fontconfig>
  <!-- Alias commonly used default names -->
  <!-- serif, sans-serif, sans and monospace -->
  <!-- to the ChromeOS fonts -->
  <alias>
    <family>serif</family>
    <prefer>
      <family>Tinos</family>
    </prefer>
  </alias>
  <alias>
    <family>sans-serif</family>
    <prefer>
      <family>Arimo</family>
    </prefer>
  </alias>
  <alias>
    <family>sans</family>
    <prefer>
      <family>Arimo</family>
    </prefer>
  </alias>
  <alias>
    <family>monospace</family>
    <prefer>
      <family>Cousine</family>
    </prefer>
  </alias>
  <!-- Replace Arial, Times New Roman, Verdana and Courier New -->
  <!-- with their counterparts. Strong binding used to override -->
  <!-- distribution defaults -->
  <match target="pattern" name="family">
    <test name="family" qual="any">
      <string>Arial</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Arimo</string>
    </edit>
  </match>
  <match target="pattern" name="family">
    <test name="family" qual="any">
      <string>Times New Roman</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Tinos</string>
    </edit>
  </match>
  <match target="pattern" name="family">
    <test name="family" qual="any">
      <string>Verdana</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Arimo</string>
    </edit>
  </match>
  <match target="pattern" name="family">
    <test name="family" qual="any">
      <string>Courier New</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Cousine</string>
    </edit>
  </match>
  <match target="pattern" name="family">
    <test name="family" qual="any">
      <string>Courier</string>
    </test>
    <edit name="family" mode="assign" binding="strong">
      <string>Cousine</string>
    </edit>
  </match>
  <match target="font">
    <!--    BCI Hinting     -->
    <edit name="hinting" mode="assign">
      <bool>true</bool>
    </edit>
    <edit name="hintstyle" mode="assign">
      <const>hintfull</const>
    </edit>
    <edit name="rgba" mode="assign">
      <const>rgb</const>
    </edit>
    <edit mode="assign" name="lcdfilter">
      <const>lcddefault</const>
    </edit>
    <!--    Auto Hinting, BCI works better for me 
        Your mileage may vary 
-->
    <!--
        <edit name="autohint" mode="assign">
                <bool>true</bool>
            </edit> 
        <edit name="hintstyle" mode="assign">
                <const>hintmedium</const>
            </edit>
-->
    <!--    Turn off Autohinting for bold fonts -->
    <!--
    <match> 
        <test name="weight" compare="more">
                <const>medium</const>
                </test>
        <edit name="autohint" mode="assign">
                <bool>false</bool>
               </edit>
       </match>
-->
  </match>
</fontconfig>

I am now truly satisfied on my Arch Linux box – while Ubuntu might have the best font experience out of the box, an equal experience on any decent modern distribution is just a configuration file and some great fonts away.

Advertisements
Categories: archlinux, linux, uncategorized Tags: ,

Still the best console font…

April 6, 2011 3 comments

… is Terminus. Others may look better, fancier, whatever… but after 10 hours of console/programming work your eyes will thank you for Terminus. Even at small font sizes it is absolutely readable and won’t put much strain on your eyes.

Categories: uncategorized Tags:

“reset high speed USB device using ehci_hcd and address 3”, your syslog and what fixed it for me

August 26, 2010 15 comments

If you use external USB drives (be it SD-Cards, Hard Disk or Thumbs) and your drive(s) seem to hang from time to time while spitting out “[...] reset high speed USB device using ehci_hcd and address 3 [...]” in your syslogs, the following fixed it for me.

My one little 320GB 2.5″ external Western Digital USB hard drive had this issue, while the big ones didn’t – seems like it is somehow related to being powered by the bus itself or using a dedicated power supply. Anyway, the drive seemed to hang on large file transactions (like copying a big file) and then the kernel had to reset it, announcing it via the syslog. Very annoying, especially because SMB transfers always got interrupted and went totally  foobar. The fix was quite simple. max_sectors for the drive was set to its default 240 value, which the drive choked on for no apparent reason whatsoever. Issuing a quick
echo 128 > /sys/block/sdc/device/max_sectors
fixed it. YMMV. Of course replace sdc with the actual node of your drive.

Categories: linux, rants, uncategorized, unix Tags: , , , ,

Anonymous Pro – a fixed width Sans Font for Coders

October 16, 2009 Leave a comment

While looking for a new Font for my terminals on my Windows machine at work – because seriously, Courier New kinda sucks -, I came across the Anonymous Pro font. Really nice looking and distinct shapes for characters that could be mistaken for one another (O, 0, I, l, 1, etc.). Best of all, it’s under a free license.
Really enjoying it so far, check it out.

Categories: uncategorized Tags:

So I am back…

September 18, 2009 Leave a comment

… to write on wordpress.com – I realized that having my own server just to note down my thoughts is probably… to overpowered.

Categories: uncategorized

Thank you IBM!

… for making Notes 8.5 Beta 1 available in .deb packages. Works beautifully (well, it’s still ye’olde sluggish Notes, but hey…), looks good, good font rendering, no ‘beta-related’ crashes so far. I love you for that. Srsly. No more using that broken crap installer.

… I still hate you for creating/buying Notes tho.

Categories: uncategorized Tags: , , ,
%d bloggers like this: