Commits

Takeshi Komiya committed e180448

Fix failed in antialias mode

  • Participants
  • Parent commits 839f8bd
  • Tags 1.1.0

Comments (0)

Files changed (1)

File src/blockdiag/DiagramMetrics.py

 from elements import DiagramNode
 import noderenderer
 from utils import Box, Size, XY
-from utils.fontmap import FontMap
+from utils.fontmap import FontInfo, FontMap
 from utils.collections import defaultdict, namedtuple
 
 cellsize = 8
         elif klass == EdgeLines:
             ret = EdgeLines()
             ret.polylines = cls.scale(value.polylines, ratio)
+        elif klass == FontInfo:
+            ret = FontInfo(value.familyname, value.path, value.size * ratio)
         elif klass == int:
             ret = value * ratio
         elif klass == str: