首页> 外国专利> METHOD AND APPARATUS FOR IMPLEMENTING VECTOR FONT

METHOD AND APPARATUS FOR IMPLEMENTING VECTOR FONT

机译:实现矢量字体的方法和装置

摘要

A method and an apparatus for implementing a vector font are provided, which are used to solve the problem of excessively large computation expenses in drawing the vector font in prior art. The method comprises: a bitmap region with the equal size as a display region of a reference font is established (S10), and after filling the bitmap region with the complementary color of the reference font color, the reference font is drawed in the bitmap region (S11); an Alpha table with the equal size as the bitmap region is constructed, and the transparency of each pixel point in the bitmap region is recorded in the Alpha table (S12); the Alpha table is zoomed according to a ratio between the size of a destination vector font and the size of the reference font; the destination vector font is drawed in a destination bitmap region according to the transparency of each pixel point in the zoomed Alpha table (S15). The apparatus comprises: a reference font drawing module, an Alpha table constructing module, an Alpha table zooming module and a destination vector font drawing module. Applying the method and the apparatus, storage cost and time cost in drawing the vector font is decreased significantly.
机译:提供一种实现矢量字体的方法和装置,用于解决现有技术中绘制矢量字体时计算量过大的问题。该方法包括:建立具有与参考字体的显示区域相同大小的位图区域(S10),并且在用参考字体颜色的互补色填充位图区域之后,在位图区域中绘制参考字体。 (S11);构造与位图区域大小相等的Alpha表,并将该位图区域中每个像素点的透明度记录在Alpha表中(S12);根据目的矢量字体的大小与参考字体的大小之间的比例对Alpha表进行缩放。根据缩放的Alpha表中每个像素点的透明度在目标位图区域中绘制目标矢量字体(S15)。该装置包括:参考字体绘制模块,Alpha表构建模块,Alpha表缩放模块和目的地矢量字体绘制模块。应用该方法和装置,显着降低了绘制矢量字体时的存储成本和时间成本。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号