中国虚拟军事网(VME)- 专注于武装突袭系列虚拟军事游戏

 找回密码
 加入VME

QQ登录

只需一步,快速开始

搜索
查看: 1342|回复: 0

[求助] Fonttotga使用问题

[复制链接]
发表于 2014-9-3 12:51:55 | 显示全部楼层 |阅读模式
本帖最后由 chaoduichen 于 2014-9-3 13:26 编辑

希望坛子里大神帮一下忙,fonttotga这个工具无法生成中文字符图片。说明里说要改fonttotga.cfg文件。(在翻遍维基,百度无果及在坛子里求助无果后,我又一次厚脸皮地提问,望管理员手下留情)


//fonttotga.cfg
class Latin1


{
        // base ASCII and Latin-1
        start = 0x20;
        end = 0x100;
};
class Latin2
{
        // Latin-2 (Latin Extended-A)
        start = 0x100;
        end = 0x180;
};
class Cyrillic
{
        // Cyrillic(假西里尔字符,貌似是毛子用的)
        start = 0x400;
        end = 0x460;
};
class SpecialCharacters
{
        start = 0x2010;
        end = 0x2020;
};



这是原来 的文件内容。都是对字符集的描述。我试着改了一下,百度百科Unicode只有一个字符集,中、日、韩的三种文字占用了Unicode中0x3000到0x9FFF的部分



// list of ranges of letters we want to include into font
class Unicode
{        start=0x3000;
        end=0x9FFF;
};
class Latin1
{
        // base ASCII and Latin-1
        start = 0x20;
        end = 0x100;
};
class Latin2
{
        // Latin-2 (Latin Extended-A)
        start = 0x100;
        end = 0x180;
};
class Cyrillic
{
        // Cyrillic
        start = 0x400;
        end = 0x460;
};
class SpecialCharacters
{
        start = 0x2010;
        end = 0x2020;
};


但只能生成6像素大小的字体,而且里面没有中文。
如果要加入GBK或者UTF之类的支持中文的字符集,那么这个工具的.cfg这个配置文件如何写?(不是.cpp文件)
希望大神帮个忙,发个fonttotga.cfg文件。或者任何提示都可以。
如果解决,对想把自己喜欢的字体导入Arma3的各位童靴来说也是极好的(我想把小篆搞进去)。


您需要登录后才可以回帖 登录 | 加入VME

本版积分规则

小黑屋|中国虚拟军事网

GMT+8, 2024-4-29 17:26

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表