Great! This should be enough data to find a solution. 

Thanks!

On Monday, January 16, 2017 at 9:08:47 PM UTC+9, 杨金骉 wrote:
>
> Here is one of the working fonts (on Mac and Win). It's name is "Li 
> Xuke", and it's not a common font, and I downloaded it just for testing. 
> Hope you can find the differences!
>
> btw, I found the Chinese Characters were unsupported in the "fontname" of 
> "pyglet.text.Label", I got:
>
>>   File "D:\Anaconda3\lib\site-packages\pyglet\compat.py", line 75, in 
>> asbytes
>>     return bytes(ord(c) for c in s)
>> ValueError: bytes must be in range(0, 256)
>
>
>
> Best regards,
> Jin-Biao Yang(杨金骉)
>
>
> -----------------------------------------------------------------------------
> Cell Phone: +86 13162513165
> Email: [email protected] <javascript:>
>
> Research Associate,
> NYU-ECNU Institute of Brain and Cognitive Science,
> NYU Shanghai,
> 3663 North Zhongshan Road, Shanghai,China 200062
>
> 2017-01-16 19:04 GMT+08:00 Benjamin Moran <[email protected] 
> <javascript:>>:
>
>> I tried it on my Linux machine, and it does not work either. The unicode 
>> characters are blank (the empty box symbol, like you see when there is no 
>> valid character). 
>>
>> I also noticed that many of my system fonts have the same issue with 
>> pyglet. I think we can confirm that pyglet needs some improvement in this 
>> area. I wonder what the difference between working, and non-working fonts 
>> is?
>>
>> Anyway, thanks for sharing your font. 
>> -Ben
>>
>>
>>
>>
>>
>> On Monday, January 16, 2017 at 2:55:44 PM UTC+9, 杨金骉 wrote:
>>>
>>> Hi, attached is that font. You can try the string "test 测试" on it.​
>>>  simhei.ttf 
>>> <https://drive.google.com/file/d/0B5MdqspkOUTFUDA5YTVoYU9YRnc/view?usp=drive_web>
>>> ​
>>>
>>>
>>> Best regards,
>>> Jin-Biao Yang(杨金骉)
>>>
>>>
>>> -----------------------------------------------------------------------------
>>> Cell Phone: +86 13162513165
>>> Email: [email protected]
>>>
>>> Research Associate,
>>> NYU-ECNU Institute of Brain and Cognitive Science,
>>> NYU Shanghai,
>>> 3663 North Zhongshan Road, Shanghai,China 200062
>>>
>>> 2017-01-16 13:07 GMT+08:00 Benjamin Moran <[email protected]>:
>>>
>>>> Thanks for the information. I'm glad that you found a solution.
>>>>
>>>> I don't know enough about fonts to say where the problem is. Maybe the 
>>>> fonts do not provide correct information to be rendered properly, or 
>>>> pyglet 
>>>> needs to be improved to handle non-ascii fonts better.
>>>>
>>>> Do you mind sharing your not-working font? I'd like to try it on my 
>>>> Linux machine.
>>>>
>>>> --
>>>> 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 
>>>> [email protected].
>>>> To post to this group, send email to [email protected].
>>>> 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 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to