Computer Engineering and Applications ›› 2011, Vol. 47 ›› Issue (3): 64-66.DOI: 10.3778/j.issn.1002-8331.2011.03.019

• 研发、设计、测试 • Previous Articles     Next Articles

Input method design and implementation with high-speed Chinese font rendering

CHEN Fei,LIU Jingang   

  1. Joint Faculty of Computer Scientific Research,Capital Normal University,Beijing 100048,China
  • Received:2010-09-01 Revised:2010-10-17 Online:2011-01-21 Published:2011-01-21
  • Contact: CHEN Fei

高速绘制中文字的输入方法的设计与实现

陈 飞,刘金刚   

  1. 首都师范大学 计算机科学联合研究院,北京 100048
  • 通讯作者: 陈 飞

Abstract: In three-dimensional scene in full screen,to be able to enter Chinese words have the feature of putting into the three-dimensional scenes,through a specific simple Pinyin input method design and implementation,this paper analyzes the function and technology of the input method,including reading the Chinese font vector information in the Shx document,composing the vector information to small segments,using the OpenGL library to draw the Chinese with these small segments,fonts number and flip and choosing number etc.Through these technologies,it completes a simple Pinyin input method with real-time rendering fonts,and achieves good results.

Key words: vector information, three-dimensional, OpenGL, Shx file, input method

摘要: 为了能在全屏幕的三维场景中输入的中文具有融于三维场景的特性,以一个具体的简易拼音输入法的设计与实现为例,分析了该输入法中的功能实现及使用的技术,包括读取字形库Shx文件中的中文字体的矢量信息,组织字的矢量信息保存成有向线段,使用OpenGL绘制直线图元将这个文字绘制出来,给文字编号并翻页以及选中文字等。通过这些技术的应用,实现了一个能实时渲染出三维字体的简易拼音输入法,取得了较好的效果。

关键词: 矢量信息, 三维, 开放图形语言, Shx文件, 输入法

CLC Number: