Skip to content

Commit

Permalink
Inform user if font-handling modules not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherwood committed May 29, 2010
1 parent dacc6e8 commit f1f98fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions site-packages/visual/primitives.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
from __future__ import division
import cvisual

# Check for the font-handling modules needed by the text object:
import Polygon
from ttfquery import describe, glyphquery, glyph

from time import sleep

from cvisual import vector
Expand Down Expand Up @@ -753,8 +757,6 @@ def destroyText(self):
pass

def getGlyphContour(self):
import Polygon
from ttfquery import describe, glyphquery, glyph
font = describe.openFont(findFont(self.__font))
try:
fonth = glyphquery.charHeight(font)
Expand Down

0 comments on commit f1f98fb

Please sign in to comment.