广州大彩串口屏论坛_大彩开发者交流论坛

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4634|回复: 4

UNICODE problem

[复制链接]

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
发表于 2022-7-29 06:31:55 | 显示全部楼层 |阅读模式
I add UNICODE font and when I set some text from Vtft then everything is fine. Problem is when I try to display string from LUA, no matter what letter (or special sign code) I use then I see only square- like string coding totally not match to font

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12537
发表于 2022-7-29 09:13:25 | 显示全部楼层
lua does not currently support Unicode encoding
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

19

主题

52

帖子

261

积分

中级会员

Rank: 3Rank: 3

积分
261
 楼主| 发表于 2022-9-29 06:58:03 | 显示全部楼层
Have u some idea how to display from lua "special letter/sign" like country demand letter or Celsius degree?
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12537
发表于 2022-9-29 09:03:38 | 显示全部楼层
terefere 发表于 2022-9-29 06:58
Have u some idea how to display from lua "special letter/sign" like country demand letter or Celsius ...

If you want to set the language of another country, you need a font file that can display these languages. In VTFT's tool - Font configuration, change the font library for all fonts or individual fonts. We provide this wqymicroheimono.ttf font library, can support display Chinese, English, Japanese, Korean, Russian, French, Italian, Portuguese, Spanish.
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

2

主题

1253

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
12537
发表于 2022-9-29 09:09:57 | 显示全部楼层
terefere 发表于 2022-9-29 06:58
Have u some idea how to display from lua "special letter/sign" like country demand letter or Celsius ...

If you have the symbol/text in your font file and the font encoding is the same as the Lua script encoding, you can use the Lua set_text API to display the text control directly. The corresponding font encoding can be seen in the VTFT tool - Font Library configuration, all fonts default to GBK encoding, Lua script is the same. The encoding of lua scripts can be modified using ides such as notepad++.
Easy doesn't enter into Grown-up life
成年人的生活里面没有“容易”二字
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|广州大彩串口屏论坛_大彩开发者交流论坛

GMT+8, 2024-4-20 06:39 , Processed in 0.067812 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表