Change Gedits printing font

Gedit shouldn't really be used for printing stuff out. That kind of thing is better handled by OpenOffice.org. But if you occasionally run off a quick block of text, or look at hard copy of some code, you'll have noticed that Gedit always prints in Monospace font, even if you've set

Figure 3.3: A chart produced by Bootchart (see Tip 9, on the preceding page)

Figure 3.3: A chart produced by Bootchart (see Tip 9, on the preceding page)

Shrink or enlarge images at the command line M 72

the screen font to something else in Edit ^ Preferences. To change the printing font, fire up gconf-editor and navigate to /apps/gedit-2/preferences/print/fonts. Change the print_font_body_pango entry to read whatever you want—use Gedit's own font selector dialog to get the font name you should enter (Edit ^ Preferences, click Fonts and Colors, and click the Editor Font dropdown list). For example, to print using a sans-serif font1 at 9 point, you could type Bitsream Vera Sans 9. For a serif font, you could type Times 9. To get a preview of how the new font will look, click File ^ Print Preview within Gedit.

For another rough-and-ready printing tip, see Tip 61, on page 123.

Was this article helpful?

0 0

Post a comment