当前位置:网站首页>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
边栏推荐
- ESP32 LVGL8. 1 - msgbox message box (msgbox 28)
- logstash 7. There is a time problem in X. the difference between @ timestamp and local time is 8 hours
- Iptables - L executes slowly
- 配置iptables
- 解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
- Setting up keil environment of GD single chip microcomputer
- Chondroitin sulfate in vitreous
- Use stm32cube MX / stm32cube ide to generate FatFs code and operate SPI flash
- Daily CISSP certification common mistakes (April 14, 2022)
- 【科普】CRC校验(一)什么是CRC校验?
猜你喜欢
Introduction to quantexa CDI syneo platform
Halo open source project learning (VII): caching mechanism
STM32: LCD display
ESP32 LVGL8. 1 - checkbox (checkbox 23)
ctfshow-web362(SSTI)
Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)
MVVM模型
Notepad + + replaces tabs with spaces
WiFi ap6212 driver transplantation and debugging analysis technical notes
Creation and use of QT dynamic link library
随机推荐
Deeply understand what new and make in golang are and what are the differences?
Actual combat of Nacos as service configuration center
关于unity文件读取的操作(一)
CISSP certified daily knowledge points (April 19, 2022)
视频边框背景如何虚化,简单操作几步实现
Loop path
22年字节跳动飞书人力套件三面面经
Esp32 (UART ecoh) - serial port echo worm learning (2)
Introduction to quantexa CDI syneo platform
机器学习理论之(7):核函数 Kernels —— 一种帮助 SVM 实现非线性化决策边界的方式
Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
回路-通路
Sentinel规则持久化进Nacos
Nacos作为服务注册中心
ESP32 LVGL8. 1 - label (style 14)
教你用简单几个步骤快速重命名文件夹名
ctfshow-web362(SSTI)
K210 serial communication
CANopen STM32 transplantation
Mysql database backup command -- mysqldump