[pygtk] Problem with gtk.TextView in Windows, but not in Linux
James Simmons
nicestep at gmail.com
Mon Dec 13 22:55:37 WST 2010
Tim,
I tried using "monospace" and it looks like it works fine. If it
works as well in Linux that's what I'll use.
Thanks!
James Simmons
On Sun, Dec 12, 2010 at 7:06 PM, Tim Evans <t.evans at aranz.com> wrote:
> On 2010-12-13 13:31, James Simmons wrote:
>>
>> Dieter,
>>
>> Good catch! It seems to be an issue with the Courier font in Windows.
>> If I replace the line that specifies the font with one saying "Sans
>> 12" everything is fine and I'm guessing that the mysterious
>> disappearing cursor problem might be improved too.
>>
>> I had reasons for wanting to use a Courier font, but for Windows users
>> of my program this is a useful workaround.
>
> On Windows you should use "Courier New" rather than "Courier" anyway.
> Courier is an old bitmap font which is probably why it doesn't work
> properly, Courier New is the truetype version.
>
> You could also use the font name "monospace" which will default to a useful
> monospaced font. I'm not sure what the standard GTK+ install uses but it
> should be Consolas where available (Vista and 7 for sure) falling back to
> Courier New otherwise.
>
> --
> Tim Evans
> Senior Software Engineer
> ARANZ Geo Limited
> p: +64 3 374 6120 | e: t.evans at aranz.com
> Level 6, 227 Cambridge Terrace, PO Box 3894, Christchurch, New Zealand
> www.aranzgeo.com
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://faq.pygtk.org/
>
More information about the pygtk
mailing list