i'm trying to get pygame to display unicode glyphs. I noticed that my system font, Ubuntu Mono, is used in both command-line and text editor and it's able to display almost every character. Chineese included.
So i wanted to use this font but... no success.. unicode characters are missing!
here's my snippet (python 2.7)
# -*- coding: utf8 -*-
import pygame
import pygame.freetype
pygame.init()
font = pygame.freetype.SysFont('Ubuntu Mono', 13)
font.ucs4 = True #should be useless. defaults to true
surf = font.render(u'黒 ♧')[0]
pygame.image.save(surf, 'image.png')
no way.. it draws squares only
i used a characters map application and i saw that almost every font in my system can display this character: ♧
Suggestions? Thank you in advance
EDIT
The characters map application automatically replace missing glyphs with alternatives from other fonts..
So now i'm searching if it's possible to reproduce this behaviour in pygame. Otherwise i will have to do that manually