Change Gedit printing font in Ubuntu
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 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.
Tags: gedit,open office,gconf
Related Articles