摘要
在Windows平台下从屏幕上显示汉字很简单,由系统提供了全套的底层支持,而在嵌入式系统中,在屏幕上显示汉字必须由程序员在显示屏硬件驱动的基础上自己编程实现。提供了一种实现的方法,使得开发人员能够在硬件提供驱动接口的情况下,借助标准的16*16的点阵汉字库,以相应的图形界面系统函数为工具,用自己的代码实现在嵌入式系统中显示汉字。介绍了用点阵字库来表示汉字的基本原理,讨论了使用点阵字库在屏幕上输出汉字的编程实现的大致思路和程序单元的数据接口、各功能模块的构成并给出了关键函数具体代码的分析、设计。方法经验证可以正确输出汉字,可为开发人员进行嵌入式系统显示模块的设计提供参考。
It is simple to display Chinese on a screen on windows platform,since the windows system provide all the basic supporting.Otherwise,all the function of displaying Chinese in embedded system must be implemented on the basis of the screen hardware driver by the programmers themselves.This paper offers a method with which the programmers can develop their own code,on the condition of there are plenty of interfaces of hardware driver and system GUI applications.A standard 16*16 dot-matrix font should be used here as a tool.Firstly,the theory of the method of displaying Chinese character with a dotmatrix font will be instructed in the paper.Then the train of the think of the program,all the varieties and all the function modules of the program will be discussed.Finally,some code in the key function will be given and analyzed in this paper.This method has been proved to be effective,so it can provide a reference to the designing of the displaying module in the embedded system.
出处
《电脑开发与应用》
2013年第5期65-68,共4页
Computer Development & Applications
关键词
嵌入式系统
点阵字库
图形界面
显示驱动
embedded system
dot-matrix font
GUI
displaying hardware driver