minigui支持中文显示

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/HandsomeHong/article/details/77671839

1.编译libminigui3.0库时:

./configure --enable-gb18030support


2.编译安装libminigui


3.修改/local/usr/etc/下的Migui配置文件

# The first system font must be a logical font using RBF device font.
[systemfont]
font_number=10
font0=rbf-FixedSys-rrncnn-8-16-ISO8859-1
font1=*-FixedSys-rrncnn-*-16-ISO8859-1
font2=*-Courier-rrncnn-*-16-ISO8859-1
font3=*-SansSerif-rrncnn-*-16-ISO8859-1
font4=*-System-rrncnn-*-16-ISO8859-1
font5=*-fixed-rrncnn-*-16-GB2312
font6=*-Courier-rrncnn-*-16-GB2312
font7=*-SansSerif-rrncnn-*-16-GB2312
font8=*-Times-rrncnn-*-16-GB2312
font9=*-Helvetica-rrncnn-*-16-GB2312


default=0
wchar_def=4
fixed=1
caption=4
menu=2
control=3


[rawbitmapfonts]
font_number=3
name0=rbf-fixed-rrncnn-12-12-GB2312-0
fontfile0=/usr/local/share/minigui/res/font/song-12-gb2312.bin
name1=rbf-fixed-rrncnn-16-16-GB2312-0
fontfile1=/usr/local/share/minigui/res/font/song-16-gb2312.bin  
name2=rbf-fixed-rrncnn-6-12-ISO8859-1
fontfile2=/usr/local/share/minigui/res/font/6x12-iso8859-1.bin


[varbitmapfonts]
font_number=3
name0=vbf-Courier-rrncnn-10-15-ISO8859-1
fontfile0=/usr/local/share/minigui/res/font/Courier-rr-10-15.vbf
name1=vbf-Helvetica-rrncnn-15-16-ISO8859-1
fontfile1=/usr/local/share/minigui/res/font/Helvetica-rr-15-16.vbf
name2=vbf-Times-rrncnn-13-15-ISO8859-1
fontfile2=/usr/local/share/minigui/res/font/Times-rr-13-15.vbf


展开阅读全文

没有更多推荐了,返回首页