Note-taking Editor - Font Size

You can post here general questions about Advene in english.

Note-taking Editor - Font Size

Post by Dave Thompson » Thu Mar 05, 2009 5:14 pm

Hi,

I want to enlarge the font size of the text displayed in the Note-taking editor. Is there a way to do that?

Thanks,

Dave
Dave Thompson
Posts: 8
Joined: Thu Feb 26, 2009 4:36 am

Re: Note-taking Editor - Font Size

Post by oaubert » Fri Mar 06, 2009 1:42 pm

Hi

There is currently no simple preference to achieve this. I can implement that for the next release. In the meantime, there are 2 hackish ways of setting the font size.

1. Permanently, with side-effects :

Create or edit the configuration file for gtk (.gtkrc-2.0 in your home directory, see http://amitp.blogspot.com/2005/09/font- ... ndows.html for details) and insert the following content :

Code: Select all
style "big-font" {
font_name = "arial 24"
}
class "GtkTextView" style "big-font"


and start Advene. The setting is permanent, with the side-effect that it applies to any TextView widget in the application.

2. Temporarily, without side-effects :

  • Open the transcribe view
  • Open the python evaluator window (control-e shortcut)
  • Type the following commands in the evaluator, validating each line with Control-Return (adapt the 1.5 factor to your wish):
    Code: Select all
    f=transcribe.textview.get_pango_context().get_font_description()
    f.set_size(int(f.get_size() * 1.5))
    transcribe.textview.modify_font(f)


A simple view preference will be available in future Advene releases.

Olivier
oaubert
Site Admin
Posts: 88
Joined: Mon Jan 07, 2008 4:02 pm

Re: Note-taking Editor - Font Size

Post by Dave Thompson » Fri Mar 06, 2009 7:57 pm

Olivier,

8-) I chose the first option and it works fine. I set the font size to 12 and that is great for me...that is so much easier on my eyes. I'm using Windows XP; so I had to do a "save as" in Notepad to create the ".gtkrc-2.0" file name as the note below the workaround suggested.

This is such a neat program...thanks you guys for creating it.

And thanks so much for your help.

Dave
Dave Thompson
Posts: 8
Joined: Thu Feb 26, 2009 4:36 am


Return to English questions