发明名称 METHOD AND DEVICE FOR SCALING FONT SIZE OF PAGE IN MOBILE TERMINAL
摘要 The present invention provides a method for scaling font size of a page in a mobile terminal, including: parsing the page of a web page acquired from a content server, and acquiring the block width of each underlying block node and the size of a style font contained in a render tree of the parsed web page; based on the acquired block width of each underlying block node and the width of a screen of the mobile terminal, determining a font scaling coefficient of each underlying block node; and based on the determined font scaling coefficient of each underlying block node and the size of the style font, scaling the style font of each underlying block node. Using this method, after a double-click scaling, an enlarged window can completely display a content block and a font can be displayed clearly, without a need to slide the screen to the left or right side. In addition, there is no need to perform dynamic rearrangement on the scaled content block, thereby saving time on dynamic rearrangement and ensuring that a page layout will not change during the scaling process.
申请公布号 US2015331962(A1) 申请公布日期 2015.11.19
申请号 US201314745235 申请日期 2013.10.31
申请人 UC MOBILE LIMITED 发明人 Liang Jie;Yu Yongfu;He Xiaopeng;Zhu Shunyan;Zhou Chao
分类号 G06F17/30;G06F17/27;G06F17/22 主分类号 G06F17/30
代理机构 代理人
主权项 1. A method for scaling a font size of a page in a mobile terminal, comprising: parsing a type setting processed page of a web page acquired from a content server, and acquiring a block width and a size of style font of each underlying block node contained in a render tree of the parsed page of the web page, wherein each underlying block node is a block node that does not contain a sub-block node in the render tree of the page of the web page; determining a font scaling coefficient of each underlying block node based on the acquired block width of each underlying block node and a width of a screen of the mobile terminal; and scaling the style font of each underlying block node based on the determined font scaling coefficient of each underlying block node and the size of style font of each underlying block node.
地址 Beijing CN