Showing posts with label Firefox. Show all posts
Showing posts with label Firefox. Show all posts

Thursday, July 01, 2010

Tidbit: Fonts - The Subtle Eyecandy

Us Linux users, for the most part, enjoy tweaking and fine tuning our computers so that they are just right for us. That is just the kind of users we are. Apart from being functional, we also love eyecandy, and it shows in all the different desktop effects, add-ons and themes available. But one thing I often see ignored are fonts. Considering that while you're not spinning the cube or wobbling the window, all you see are widgets, images and text, it makes sense to say that fonts are a very important part of the user experience. So, I just want to share a few tweaks I use to make my user experience better. Of course, beauty is in the eye of the beholder. Use what works for you!


Set your system-wide font configurations


There are many tweaks and settings available for fonts. For a full description read this. I prefer to use a ready-made font configuration and a good one is PaulBredbury's configuration. Follow the link in the forum post to his latest configuration file and save it as ~/.fonts.conf in your home folder. Log out and log back in.


Find a font you like


This is a matter of personal taste, so there is no 'best font'. However, I find that fonts that require a minimal amount of antialiasing (blurring around the edges) without looking pixelated or blocky work the best. This means they will look crisp and they will 'pop', making them easier and a joy to read. Generally, for screens, sans serif fonts are recommended.


Personally, I have taken a liking to the taller sans serif fonts like Droid Sans, Aurulent Sans, DejaVu Sans Condensed and Aller. You can find them all and more on Font Squirrel. Install your preferred font using the GUI tool in your distro or unpack them to your ~/.fonts directory.


Set the font as your system default


Depending on your desktop environment the steps will be slightly different.

  • Gnome: Preferences > Appearance > Fonts Tab

  • KDE: System Settings > Application Appearance > Fonts

  • LXDE or Mint Fluxbox: Preferences > Appearance > Fonts combo box


One more thing


So far it's all nice, easy and nothing new. There is one more thing that I like to do and that is bring my preferred font to the web. I force the browsers to render pages using the font I want and IMO it makes for a much more pleasant experience. Here's how I do it for the browsers I use.

  • Firefox: Edit > Preferences > Content tab. In there set your default font, then click 'Advanced' and set your font there as well. Unselect the option 'Allow pages to choose their own fonts, instead of my selections above'. Save your settings.

  • Google Chrome and Chromium: Install the Chrome Stylist extension. In the extension's 'Options' page, go to the Styles tab and click 'Add new style'. In the dialog that appears, name your new style, select 'All sites', paste the following CSS code into the text box, then enable and save the settings.

  • Opera (10.60): Create a file ~/.opera/styles/user/user.css and paste the CSS code below into the file. In the address bar of Opera, navigate to opera:config. In the filter field type in 'local css'. Set the value of 'Local CSS File' to the file you just created and 'Local CSS Files Directory' to the directory containing the file. Save your changes.


CSS for Chrome and Opera


* { font-family: "Droid Sans" !important; }


Replace 'Droid Sans' with the font of your choice.


Log out and back in, just to make sure all is freshly loaded and enjoy your uniformly crisp and beautiful fonts both on the desktop and online!

Sunday, January 17, 2010

Tidbit: Firefox Extension - Invert Colors

I spend a lot of time in front of the computer screen and this can be a real strain on the eyes. The easiest way for me to cope with this is to use dark themes and reduce the brightness of the screen. But these have their limitations. Using dark themes only affects window decorations and system wigdets, while decreasing brightness can make things near unreadable especially during the day time. Then there is the fact that most a lot of my time on the computer is spent in the web browser where themes have no effect and most pages are bright.



Enter Invert Colors. This is a great little experimental addon for Firefox. Basically it does does what it says on the box. It inverts the colors of web pages and removes background images. It works relatively well. So far only one site (www.hattrick.org) crashes Firefox with this Addon enabled. Gmail is not affected by this addon but this can be rectified easily with Gmail themes.



In general, sites continue to work well although some buttons and links do not appear on some sites e.g. the thumbs up and down icons for youtube comments. Pages look more "90s" without all the images and backgrounds. But the important thing is that it does what I expect it to do and that is dim down the pages and reduce eye strain. If you would rather Invert Colors does not modify a site, you can configure it to do just that. Simply disable it for the site and reload to see the page as it was meant to be.



I would recommend Invert Colors to someone who likes dark themes because they are easy one the eyes and can handle the less flashy and occasionally buggy web experience. I certainly think it is worth it. If you use some other method to achieve this effect, please do let me know!



Here are some example screenshots




Invert Colors


Click here for a Google Wave invite. First come, first serve!