On 7/24/2014 3:11 PM, Glenn Linderman wrote:

Not knowing any of these GUI platforms (although I've read some about
Tk), I have some questions.

* Which of them use UTF-8 as their native Unicode interface?

tk uses UCS-2 internally for the BMP subset. It does not display astral chars. tkinter iterfaces via with Python strings.

* Which makes it easiest to discover and adjust font metrics such as
kerning?

I believe tk can use whatever fonts are on the system. Idle gives me a choice of more than I want to look at.

Tk does kerning with proportional fonts, but I believe info and control is not user acccessible. The main available metrics are max ascender and descender sizes, for interline spacing.

* Which makes it easiest to obtain bounding rectangles of a piece of text?

The Text.bbox(index) returns the bounding rectangle for a character. Those can be combined as desired.

* Which makes it easiest to use a set of fonts such as Times (for Latin)
and others for Cyrillic, Chinese, and Korean? Or which supplies a font
configuration that can "just be used" for any language?

'any language' requires a nearly complete unicode font. One can tag character sequences, and configure properties, including color and font, that override the widget defaults. This is how Idle colorizes Python code by syntax category. One could just as easily tag by language or by alphabet.

--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to