zoukankan      html  css  js  c++  java
  • MiniGUI

    首先修改/usr/local/etc/MiniGUI.cfg
    # 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
     
    创建的字体必须是GB2312的
    "song" "GB2312" 12或者16
     
     
    源代码编码格式必须是GB2312,
    在visual studio中设置如下:
    文件->高级保存选项
    在vi/vim中设置如下:
    在配置文件.vimrc中加入两行
    let &termencoding=&encoding
    set fileencodings=utf-8,gbk,ucs-bom,cp936
     
    Linux环境变量最好设成
    export LANG=zh_CN.UTF-8
  • 相关阅读:
    获取请求IP
    Excel导入工具类兼容xls和xlsx
    Openshift 4.3环境的离线Operatorhub安装
    RHEL学习
    OpenShift Service Mesh 培训作业
    OpenId Connect认证配置
    Route Sharding in OpenShift 4.3
    OpenShift 4.3环境中创建基于Go的Operator
    Quay和Clair的集成
    Quay 基础版安装和部署
  • 原文地址:https://www.cnblogs.com/paullam/p/3615116.html
Copyright © 2011-2022 走看看