...
|
...
|
@@ -122,7 +122,12 @@ class TextShape(Shape):
|
122
|
122
|
fo.set_antialias(cairo.ANTIALIAS_DEFAULT)
|
123
|
123
|
fo.set_hint_style(cairo.HINT_STYLE_NONE)
|
124
|
124
|
fo.set_hint_metrics(cairo.HINT_METRICS_OFF)
|
125
|
|
- pangocairo.context_set_font_options(context, fo)
|
|
125
|
+ try:
|
|
126
|
+ pangocairo.context_set_font_options(context, fo)
|
|
127
|
+ except TypeError:
|
|
128
|
+ # XXX: Some broken pangocairo bindings show the error
|
|
129
|
+ # 'TypeError: font_options must be a cairo.FontOptions or None'
|
|
130
|
+ pass
|
126
|
131
|
|
127
|
132
|
# set font
|
128
|
133
|
font = pango.FontDescription()
|