[pypy-issue] Issue #1866: Tkinter missing fonts... (pypy/pypy)
Jens Diemer
issues-reply at bitbucket.org
Sun Sep 14 12:38:08 CEST 2014
New issue 1866: Tkinter missing fonts...
https://bitbucket.org/pypy/pypy/issue/1866/tkinter-missing-fonts
Jens Diemer:
I notice that i have much less fonts available with PyPy than with CPython.
I have made a simple test script:
```
#!python
try:
# Python 3
import tkinter
except ImportError:
# Python 2
import Tkinter as tkinter
root = tkinter.Tk()
font_families = root.tk.call("font", "families")
print("There are %i font families:" % len(font_families))
for font_family in font_families:
print("\t%s" % font_family)
```
With CPython under linux mint 17 i get a list of 95 font families.
With PyPy (i used https://github.com/squeaky-pl/portable-pypy ) i get only this output:
```
There are 21 font families:
fangsong ti
fixed
clearlyu alternate glyphs
courier 10 pitch
open look glyph
bitstream charter
song ti
open look cursor
newspaper
clearlyu ligature
mincho
clearlyu devangari extra
clearlyu pua
clearlyu
clean
nil
clearlyu arabic
clearlyu devanagari
standard symbols l
gothic
clearlyu arabic extra
```
The result is, that a tkinter GUI looks very ugly running with PyPy than with CPython.
Screenshots:
![CPython](https://bitbucket.org/repo/R7AbB/images/4259467185-20140913_dragonpy_cpython.png)
![PyPy](https://bitbucket.org/repo/R7AbB/images/1507390520-20140913_dragonpy_pypy.png)
selber Programm code mir PyPy:
[img]http://snag.gy/MffcC.jpg[/img]
More information about the pypy-issue
mailing list