CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - hge
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Windows Develop
Internet-Network
OS program
Communication-Mobile
Game Program
Multimedia program
Embeded-SCM Develop
Graph program
Mathimatics-Numerical algorithms
Applications
Database system
Other
Search - hge - List
[
SourceCode
]
HGE 中文显示新方案
DL : 0
HGE 中文显示新方案 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Author - 微妙的平衡(BOGY) Mail - bogy.cn@gmail.com Home - http://bogy.cn 文件与目录结构说明 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GfxFont.cpp 中文字体类实现定义文件 GfxFont.h 中文字体类实现声明文件 Readme.txt 本描述文档 简单介绍 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 本方法是为解决HGE项目中支持中文显示的新方案。 本解决方案不需要依赖任何图片字模,并支持丰富的显示方法。 使用方法很简单,只需如下几步即可: 一、包含 "CN\GfxFont.h" 头文件。 二、创建字体指针:GfxFont fontspr = new GfxFont(字体名,字体大小,是否粗体,是否斜体,是否平滑模式); 三、文本颜色:fontspr->SetColor(ARGB); 三、文本渲染:fontspr->Print(坐标x,坐标y,文本内容); 四、销毁字体:当程序结束时,使用 delete fontspr; 来销毁字体。 声明与感谢 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 若你在使用中存在疑问,请至邮:bogy.cn@gmail.com 我会尽快回复。 ____________________________________________________________ Copyright 2008 BOGY.CN. All Rights Reserved.
Date
: 2011-11-02
Size
: 269.5kb
User
:
43156150@qq.com
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.