def glyphs(self, s): """ Return the list of glyphs corresponding to unicode string s. """ fo = font.get_font(self.font, self.size, self.bold, self.italic, 0, self.antialias, self.vertical) rv = fo.glyphs(s) # Apply kerning to the glyphs. if self.kerning: textsupport.kerning(rv, self.kerning) if self.hyperlink: for g in rv: g.hyperlink = self.hyperlink if self.ruby_bottom: textsupport.mark_ruby_bottom(rv) elif self.ruby_top: textsupport.mark_ruby_top(rv) return rv