MCPcopy Create free account
hub / github.com/ActiveState/code / drawText

Method drawText

recipes/Python/577674_Bitmap_Maker/recipe-577674.py:596–601  ·  view source on GitHub ↗
(self, text, x, y)

Source from the content-addressed store, hash-verified

594 return (width, height)
595
596 def drawText(self, text, x, y):
597 offset_x = 0
598 offset_y = 0
599 for idx in range(0, len(text)):
600 (width, height) = self._drawFont(x + offset_x, y + offset_y, self.font[ord(text[idx])])
601 offset_x += (width + 1)
602
603 def setFont(self, font_data):
604 self.font = font_data

Callers

nothing calls this directly

Calls 2

_drawFontMethod · 0.95
rangeFunction · 0.85

Tested by

no test coverage detected