font used by tk_dialog not settable?

From: William J Poser (wjposer_at_unagi.cis.upenn.edu)
Date: 03/25/05


Date: Fri, 25 Mar 2005 20:55:28 +0000 (UTC)

I need to write arbitrary Unicode text in the "text" field of a tk_dialog
popup. When I do this, the non-ASCII characters are not rendered but show
up as \uxxxx. I am using a UTF-8 locale and get the same characters to render
up properly elsewhere in the same program so I think that the problem
is that tk_dialog is using a font that lacks these characters. This is supported
by the fact that in other widgets I have obtained the same behavior until I have
set the font appropriately.

However, it appears to be impossible to set the font for a tk_dialog
widget. The documentation doesn't mention a -font argument, and when I attempt
to supply one it doesn't work. Am I correct in thinking that it is not
possible to control the font of a tk_dialog widget?

-- 
Bill Poser, Linguistics, University of Pennsylvania
http://www.ling.upenn.edu/~wjposer/ billposer@alum.mit.edu


Relevant Pages

  • Re: Outline font rendering
    ... characters are anti-aliased, and this leads to artefacts inside ... also consider to render the text with a font rendering library - ... Freetype2 comes to mind - and upload the result as a texture. ... Especially if you want to render Unicode text this is the only ...
    (comp.graphics.api.opengl)
  • Looking for tk internals information
    ... I've a developer who wants to be able to locate what font is being used ... He has a widget into which he inserts a stream of text from a file. ... there will be various unicode characters. ... User A runs the app, and sees the document just fine. ...
    (comp.lang.tcl)
  • antialiased bitmap fonts for X11
    ... under the X11 system, one can find various bitmap fonts, and also ... with the help of the X11 server RENDER extension and the Xft library. ... I have not found a ultimately good font (according to my own ... include at least all latin-1 characters, ...
    (comp.fonts)
  • Re: Tkinter - non-ASCII characters in text widgets problem
    ... (where characters are correct) ... So it is a font problem: if the square box is displayed, ... Try using a different font in the label widget. ... Recent releases of OSX include a copy of Tcl/Tk, ...
    (comp.lang.python)
  • Re: Charset?
    ... that page says that the font i'm using should support the ... characters i'm trying to render. ...
    (comp.lang.java.gui)