当前位置:网站首页>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
边栏推荐
- SQL database syntax learning notes
- Daily CISSP certification common mistakes (April 11, 2022)
- Loop path
- Nacos作为服务配置中心实战
- K210 serial communication
- Iptables - L executes slowly
- Database computer experiment 4 (data integrity and stored procedure)
- 解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本
- Imx6 debugging LVDS screen technical notes
- Chondroitin sulfate in vitreous
猜你喜欢

Kettle paoding jieniu Chapter 17 text file output

玻璃体中的硫酸软骨素

ESP32 LVGL8. 1 - bar progress bar (bar 21)

七、DOM(下) - 章节课后练习题及答案

With the use of qchart, the final UI interface can be realized. The control of qweight can be added and promoted to a user-defined class. Only the class needs to be promoted to realize the coordinate

Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system

视频边框背景如何虚化,简单操作几步实现

解决:cnpm : 无法加载文件 ...\cnpm.ps1,因为在此系统上禁止运行脚本

MVVM模型
![[mathematical modeling] - analytic hierarchy process (AHP)](/img/ff/2350c9604a03fff6a6a751aa3cfa3b.png)
[mathematical modeling] - analytic hierarchy process (AHP)
随机推荐
Setting up keil environment of GD single chip microcomputer
About the operation of unit file reading (I)
STM32: LCD显示
Daily network security certification test questions (April 18, 2022)
CISSP certified daily knowledge points (April 15, 2022)
Introduction to QT programming
Actual combat of Nacos as service configuration center
ctfshow-web362(SSTI)
Esp32 (UART ecoh) - serial port echo worm learning (2)
Promote QT default control to custom control
Advanced transfer learning
Test questions of daily safety network (February 2024)
QT notes on qmap container freeing memory
iptables -L执行缓慢
Nacos作为服务配置中心实战
ESP32 LVGL8. 1 - input devices (input devices 18)
Imx6 debugging LVDS screen technical notes
CISSP certified daily knowledge points (April 14, 2022)
CISSP certified daily knowledge points (April 13, 2022)
Use stm32cube MX / stm32cube ide to generate FatFs code and operate SPI flash