(self, name, img, alt=None)
| 69 | __mapper_args__ = {"polymorphic_on": type} |
| 70 | |
| 71 | def __init__(self, name, img, alt=None): |
| 72 | self.name = name |
| 73 | self.data, self.width, self.height = self._encode_glyph(img) |
| 74 | if alt is not None: |
| 75 | self.alt_data, alt_w, alt_h = self._encode_glyph(alt) |
| 76 | |
| 77 | def _encode_glyph(self, img): |
| 78 | """Receive a textual description of the glyph and |
nothing calls this directly
no test coverage detected