Closed Shum88 closed 1 year ago
sDspFont::String = "wt009"
Some research suggests that the solution here is to use TTF_RenderUTF8_Blended
rather than TTF_RenderText_Blended
as we do currently in TextActor
#sf = SDL2.TTF_RenderText_Blended(font, text, SDL2.Color(color...))
sf = SDL2.TTF_RenderUTF8_Blended(font, text, SDL2.Color(color...))
After modified the actor.jl:TextSctor() function as above ... Chinese Characters can be shown correctly
Hi Aviks,
Following your suggestion ... Chinese Characters can be shown correctly
Thanks again !
Shum
寄件者: Avik Sengupta @.> 寄件日期: 2023年3月25日 3:10 收件者: aviks/GameZero.jl @.> 副本: Shum @.>; Author @.> 主旨: Re: [aviks/GameZero.jl] Unicode Chinese Characters (ttf) are not being shown (Issue #66)
Some research suggests that the solution here is to use TTF_RenderUTF8_Blended rather than TTF_RenderText_Blended as we do currently in TextActor
— Reply to this email directly, view it on GitHubhttps://github.com/aviks/GameZero.jl/issues/66#issuecomment-1483288157, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AA5SN7JLM4D6WLCW4MSJCADW5XWRLANCNFSM6AAAAAAWG5MVR4. You are receiving this because you authored the thread.Message ID: @.***>
Thank you for confirming. We do need to fix this in this project as well.
above Chinese Character are not being shown