def _parse_font(snapshot, param_str): end, crop_rect, fname, frame, alt, params = skoolmacro.parse_font( param_str) message, addr, chars, attr, scale, tindex, alpha = params udgs = font_udgs(snapshot, addr, attr, message[:chars]) return Frame(udgs, scale, 0, *crop_rect, tindex=tindex, alpha=alpha)
def expand_font(self, text, index): if self.handle_unsupported_macros: return skoolmacro.parse_font(text, index)[0], '' raise UnsupportedMacroError()
def expand_font(self, text, index): if self.handle_unsupported_macros: return skoolmacro.parse_font(text, index)[0], '' raise skoolmacro.UnsupportedMacroError()
def _parse_font(snapshot, param_str): end, crop_rect, fname, frame, alt, params = skoolmacro.parse_font(param_str) message, addr, chars, attr, scale = params udgs = font_udgs(snapshot, addr, attr, message[:chars]) return Frame(udgs, scale, 0, *crop_rect)