摘要 |
<p>Provided is a method for scaling the font size of a page in a mobile terminal, including: parsing a webpage 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 rendering tree of the parsed webpage page; based on the acquired block width of each underlying block node and the width of a screen of a 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, performing scaling on the style font of each underlying block node.Using this method, after double-click scaling, an enlarged window can completely display a content block and a font can be displayed clearly, without needing to slide the screen from left to right.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.</p> |