发明名称 Methods and apparatuses for displaying text block and processing text block
摘要 The invention discloses a method for displaying a text block, a method for processing a text block, a client and a server, where the method for displaying a text block includes the steps of: a client collecting font parameters and layout parameters of a text block; the client transmitting the font parameters and the layout parameters of the text block to a server; and the client receiving vector description information of the text block, generated according to the font parameters and the layout parameters of the text block, sent from the server and executing drawing commands to draw the text block and display the text block on a screen. With embodiments of the invention, the effect of a personalized presswork printed at the server can be kept consistent with the effect of displaying the text block on the screen.
申请公布号 US9036163(B2) 申请公布日期 2015.05.19
申请号 US201314095502 申请日期 2013.12.03
申请人 PEKING UNIVERSITY FOUNDER GROUP CO., LTD.;FOUNDER INFORMATION INDUSTRY HOLDINGS CO., LTD.;BEIJING FOUNDER ELECTRONICS CO., LTD. 发明人 Tian Yu;Lang Meng;Tan Lei
分类号 G06K15/02;G06F3/12;G06K15/00 主分类号 G06K15/02
代理机构 代理人 Nydegger Workman
主权项 1. A method for displaying a text block, comprising: collecting, by a client, font parameters and layout parameters of a text block; transmitting, by the client, the font parameters and the layout parameters of the text block to a server; and receiving, by the client, vector description information of the text block, generated according to the font parameters and the layout parameters of the text block, sent from the server, and executing drawing commands to draw the text block and display the text block on a screen: wherein the vector description information of the text block is encoded and compressed by the server and then the client receives encoded and compressed vector description information of the text block sent from the server; wherein the server encodes and compresses the vector description information of the text block specifically as follows: encoding a name of each drawing command to shorten length of the name of each drawing command; retaining one or two decimal places of floating point data in the vector description information of the text block to obtain simplified floating point data; and converting the simplified floating point data into decimal integer data by multiplying the simplified floating point data with a fixed coefficient, and then converting the decimal integer data into hexadecimal data; and the client decodes and decompresses the vector description information of the text block specifically as follows: decoding the received name of each drawing command to recover the name of each drawing command; and converting the received hexadecimal data into the decimal integer data, and dividing the decimal integer data by the fixed coefficient to obtain the simplified floating point data.
地址 Beijing CN
您可能感兴趣的专利