Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In Google Chrome on Ubuntu, I find it hard to read code. How can I change the font settings to make it easier to read?

share|improve this question
3  
This question is really unclear. Read code in what exactly? Also in instances like this some form of image to demonstrate exactly what you mean would add a great deal of clarity to the question. Also, are we talking about Google Chrome, or a font which is named Chrome? –  foxed Mar 13 '11 at 8:27

2 Answers 2

up vote 4 down vote accepted

For some reason, web browser like to make the monospace font smaller than other text, which can make code harder to read. There are two ways to handle this in Chrome.

Option 1: Customize Font Settings

Click the wrench icon.

Select "Preferences"

Select "Under the Hood"

Under "Web Content" you can "Customize Fonts..." -- you'll want to change the "Fixed-width font."

Option 2: Font Zoom

While viewing a web page, hold the control key and hit - or + to decrease or increase the font size. Your "zoom" setting will be used for all pages on that web site.

You can check on and change the Zoom setting for the page you are viewing by clicking the wrench icon.

share|improve this answer

Under Ubuntu 11.04, using the Chrome browser I found some of the monospaced fonts very hard to read, especially code from github.com. What made a "night and day" difference for me was the following:

Install the The Bitstream Vera family of free TrueType fonts.

  • Open the Software Center.
  • Select Fonts, on the right (under Departments).
  • Find or search for "vera"
  • Install.
  • Restart Chrome.
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.