25 June 2010

Set minimum font size for Chromium browser

While using Ctrl+Shift++ or Ctrl+Shift+- can be used as a workaround for fonts that render either too big or too small it is somewhat problematic because it changes all of the fonts on the page. Additionally, any changes are lost once the browser is closed. A better and more permanent solution is to force a minimum font size.
  1. Close any open sessions of Chromium.
  2. From the desktop, launch a new terminal session by selecting: Applications > Accessories > Terminal. A new terminal window will display.
  3. At the prompt (the blinking cursor), type: gedit ~/.config/chromium/Default/Preferences then press Enter.
  4. Locate the section titled webkit.
  5. Within webkit, you will see webprefs. Under webprefs, add the following 2 lines "minimum_font_size": 11,
    "minimum_logical_font_size": 11,
    Be sure to include the trailing comma for both lines.
  6. Save your changes and close gedit.
  7. Launch Chromium and navigate to a site that would normally have rendered with ridiculously small fonts. You should now be able to actually view the content without glasses. To increase or decrease the minimum font size, simply repeat the first few steps to open Chromium's Preferences in gedit. Replace 11 with your desired font size.

No comments: