首页> 外国专利> METHOD, DEVICE, AND STORAGE MEDIUM FOR DRAWING WEBPAGE TEXT ELEMENT BASED ON HTML5

METHOD, DEVICE, AND STORAGE MEDIUM FOR DRAWING WEBPAGE TEXT ELEMENT BASED ON HTML5

机译:基于HTML5的网页文字元素的绘制方法,装置和存储介质

摘要

A method, device, and storage medium for drawing a webpage text element based on HTML5. The method comprises: parsing an HTML label and a CSS style of a character string in at least one text group to be displayed in a webpage; buffering the character string and the HTML label and the CSS style of the character string; and according to the buffered character string and the buffered HTML label and CSS style of the character string, circularly invoking a canvas to draw the text group in the webpage. By using a text style created based on an HTML label and a CSS style, a CSS style in the HTML label is obtained through parsing, and a canvas is used to draw a text group in a webpage, so that the efficiency of drawing a segment of text "having multiple styles" can be improved, and the difficulty of subsequent maintenance can be reduced.
机译:一种用于基于HTML5绘制网页文本元素的方法,设备和存储介质。该方法包括:解析将在网页中显示的至少一个文本组中的字符串的HTML标签和CSS样式;缓冲字符串,字符串的HTML标签和CSS样式;根据缓冲的字符串,缓冲的HTML标签和字符串的CSS样式,循环调用画布在网页中绘制文本组。通过使用基于HTML标签和CSS样式创建的文本样式,通过解析获得HTML标签中的CSS样式,并使用画布在网页中绘制文本组,以提高绘制段的效率。可以改善“具有多种样式”文本的质量,并可以减少后续维护的难度。

著录项

  • 公开/公告号WO2014206169A1

    专利类型

  • 公开/公告日2014-12-31

    原文格式PDF

  • 申请/专利权人 UC MOBILE CO. LTD.;

    申请/专利号WO2014CN78545

  • 发明设计人 XU KUNPENG;

    申请日2014-05-27

  • 分类号G06F9/44;

  • 国家 WO

  • 入库时间 2022-08-21 15:09:20

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号