Unicode lines like u"ЙЦУКЕН℗" are displayed correctly.
But characters like "
" (U+1F306) and "🛠" (U+1F6E0) are not displayed, 2 squares are viewed instead of each character. It seems like renpy does not support U+1Fxxx unicode characters.
" (U+1F306) and "🛠" (U+1F6E0) are not displayed, 2 squares are viewed instead of each character.
") is 2, which is probably why it fails to load proper glygh during loops like "for c in s: ...".
")==2 is a problem for code that breaks a line into list of glyphs.Code: Select all
if len(glyphs) == 2:
gl = renpy.text.textsupport.Glyph()
gl.character = 129299L
gl.x = 10
gl.y = 20
gl.ascent = 0
gl.line_spacing = 5
gl.width = 18.0
gl.advance = 18.0
gl.time = 0.0
gl.hyperlink = 0
glyphs = [gl]
fo.draw(di.surface, xo, yo, color, glyphs, self.underline, self.strikethrough, black_color)
Code: Select all
index = FT_Get_Char_Index(face, <Py_UNICODE> glyph.character)
cache = self.get_glyph(index)
Users browsing this forum: No registered users