File: unicode_font_test_case.py

package info (click to toggle)
python-enable 3.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,392 kB
  • ctags: 17,135
  • sloc: cpp: 79,151; python: 29,601; makefile: 2,926; sh: 43
file content (17 lines) | stat: -rw-r--r-- 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import unittest
from enthought.kiva.agg import AggFontType, GraphicsContextArray
from enthought.kiva import Font

class UnicodeTest(unittest.TestCase):
    
    
    def test_show_text_at_point(self):
        gc = GraphicsContextArray((100,100))
        gc.set_font(Font())
        gc.show_text_at_point(unicode('asdf'), 5,5)
        
    def test_agg_font_type(self):
        f = AggFontType(u"Arial")

if __name__ == "__main__":
    unittest.main()