当前位置:网站首页>Go language GUI framework Fyne Chinese garbled or not displayed
Go language GUI framework Fyne Chinese garbled or not displayed
2022-04-23 18:42:00 【Simple tutorial】
Have to say fyne It's really very good Go Language third party GUI frame .
Simple is not simple. In addition , At least I'm much taller than others .
But there are also several problems , The first thing to bear the brunt is Chinese garbled code . The solution , There are two kinds of , One is to use FYNE_FONT
Specify the font path
FYNE_FONT=./fonts/alibaba/Alibaba-PuHuiTi-Regular.ttf go run main.go
I put down Alibaba's Pratt & Whitney font , You can use any font that supports Chinese
Yes, of course , There is a drawback to this approach , Namely , You will lack several other Fonts , such as
Cause: open fonts/alibaba/Alibaba-PuHuiTi-Italic.ttf: no such file or directory Cause: open fonts/alibaba/Alibaba-PuHuiTi-BoldItalic.ttf: no such file or directory
Another kind , Custom theme , This can be referred to as https://github.com/fyne-io/fyne/issues/2660
版权声明
本文为[Simple tutorial]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231839244355.html
边栏推荐
- Introduction to quantexa CDI syneo platform
- Esp32 (UART event) - serial port event learning (1)
- Golang 语言实现TCP UDP通信
- On iptables
- ctfshow-web361(SSTI)
- 特征选择feature_selection--SelectKBest
- Daily CISSP certification common mistakes (April 19, 2022)
- Promote QT default control to custom control
- Teach you to quickly rename folder names in a few simple steps
- ESP32 LVGL8. 1 - roller rolling (roller 24)
猜你喜欢
MVVM model
Halo 开源项目学习(七):缓存机制
Use of regular expressions in QT
MVVM模型
使用晨曦记账本,分析某个时间段每个账户收支结余
解决:cnpm : 無法加載文件 ...\cnpm.ps1,因為在此系統上禁止運行脚本
logstash 7. There is a time problem in X. the difference between @ timestamp and local time is 8 hours
ctfshow-web361(SSTI)
Iptables - L executes slowly
Use Chenxi bookkeeping book to analyze the balance of revenue and expenditure of each account in a certain period of time
随机推荐
根据快递单号查询物流查询更新量
ESP32 LVGL8. 1 - BTN button (BTN 15)
Function recursion and solving interesting problems
玻璃体中的硫酸软骨素
ESP32 LVGL8. 1 - arc (arc 19)
22年字节跳动飞书人力套件三面面经
Halo open source project learning (VII): caching mechanism
回路-通路
Summary of actual business optimization scheme - main directory - continuous update
7、 DOM (Part 2) - chapter after class exercises and answers
CISSP certified daily knowledge points (April 18, 2022)
Use of regular expressions in QT
ESP32 LVGL8. 1 - img picture (IMG 20)
Practice of Druid SQL and security in meituan review
Nacos cluster construction and MySQL persistence configuration
Daily CISSP certification common mistakes (April 18, 2022)
RPM包管理
机器学习实战 -朴素贝叶斯
【科普】CRC校验(一)什么是CRC校验?
使用 bitnami/postgresql-repmgr 镜像快速设置 PostgreSQL HA