I had copied "simhei.ttf", which is a Chinese font named "黑体", in the working path of my code, and I called it by "pyglet.font.add_file('simhei.ttf')" and "pyglet.text.Label(‘XXX’, font_name=‘simhei’)".
However, above all are unnecessary, because I found the root of my issue... The "simhei.ttf" is copied from my Windows' font. Although it's official, it cannot work under MacOSX. Once I replace Simhei with other TTF fonts, the displaying effect seems perfect. And perhaps the default font of MacOSX cannot display Chinese well in Pyglet, because I used "font_name=‘xxx’" in pyglet.text.Label, but the strange displaying remained. BTW, https://bitbucket.org/pyglet/pyglet/get/tip.zip may not fit the pyglet on python3, since I got "No module named 'future'". Best regards, Jin-Biao Yang(杨金骉) ----------------------------------------------------------------------------- Cell Phone: +86 13162513165 Email: ray...@gmail.com Research Associate, NYU-ECNU Institute of Brain and Cognitive Science, NYU Shanghai, 3663 North Zhongshan Road, Shanghai,China 200062 2017-01-14 16:11 GMT+08:00 Benjamin Moran <benmora...@gmail.com>: > Hi Jin-Biao, > > Actually, development is happening in the default branch on Bitbucket. > Your "pip install" example should work. Or, you can just clone/download the > repo, and copy the pyglet folder into your project. > > By the way, which font are you using? > > > > On Saturday, January 14, 2017 at 4:33:29 PM UTC+9, 杨金骉 wrote: >> >> Hi Benjamin, >> The pyglet page on Bitbucket said "Currently no development release >> available", so how should I do? Run pip install --upgrade >> https://bitbucket.org/pyglet/pyglet/get/tip.zip ? >> >> >> Best regards, >> Jin-Biao Yang(杨金骉) >> >> ------------------------------------------------------------ >> ----------------- >> Cell Phone: +86 13162513165 >> Email: ray...@gmail.com >> >> Research Associate, >> NYU-ECNU Institute of Brain and Cognitive Science, >> NYU Shanghai, >> 3663 North Zhongshan Road, Shanghai,China 200062 >> >> 2017-01-14 10:15 GMT+08:00 Benjamin Moran <benmo...@gmail.com>: >> >>> Can you try the development version of pyglet, from Bitbucket, and see >>> how it looks? There were some changes in the text module, but I'm bit sure >>> if they will affect this. >>> >>> If it still does not work correctly, can you provide some example code? >>> >>> -- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "pyglet-users" group. >>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>> pic/pyglet-users/l1TY7laEs8Y/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> pyglet-users...@googlegroups.com. >>> To post to this group, send email to pyglet...@googlegroups.com. >>> Visit this group at https://groups.google.com/group/pyglet-users. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to a topic in the > Google Groups "pyglet-users" group. > To unsubscribe from this topic, visit https://groups.google.com/d/ > topic/pyglet-users/l1TY7laEs8Y/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > pyglet-users+unsubscr...@googlegroups.com. > To post to this group, send email to pyglet-users@googlegroups.com. > Visit this group at https://groups.google.com/group/pyglet-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.