Proportional font scaling
First Claim
Patent Images
1. A method comprising:
- receiving content to be rendered, the content including first and second text containers, the first text container having a first font size and a first container width, the second text container having a second font size and a second container width, wherein the first container width is not equal to the second container width;
defining an original font ratio as a ratio of the first font size to the second font size;
generating scaled content by independently scaling the font size of each of the first and second text containers to generate scaled font sizes, such that a ratio of a first scaled font size associated with the first text container to a second scaled font size associated with the second text container is not equal to the original font ratio; and
rendering the scaled content for display such that;
when the first text container is rendered to fill a width of a display, the first text container has a first displayed font size;
when the second text container is rendered to fill the width of the display, the second text container has a second displayed font size; and
a ratio of the first displayed font size to the second displayed font size is equal to the original font ratio.
2 Assignments
0 Petitions
Accused Products
Abstract
The font size of text included in web page content is proportionally scaled based on proportional container widths and/or a minimum readable font size. The proportional font scaling improves web content readability on small-screen devices while maintaining relative proportions of font sizes between text containers when the text containers are rendered at full display width.
28 Citations
18 Claims
-
1. A method comprising:
-
receiving content to be rendered, the content including first and second text containers, the first text container having a first font size and a first container width, the second text container having a second font size and a second container width, wherein the first container width is not equal to the second container width; defining an original font ratio as a ratio of the first font size to the second font size; generating scaled content by independently scaling the font size of each of the first and second text containers to generate scaled font sizes, such that a ratio of a first scaled font size associated with the first text container to a second scaled font size associated with the second text container is not equal to the original font ratio; and rendering the scaled content for display such that; when the first text container is rendered to fill a width of a display, the first text container has a first displayed font size; when the second text container is rendered to fill the width of the display, the second text container has a second displayed font size; and a ratio of the first displayed font size to the second displayed font size is equal to the original font ratio. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method comprising:
-
identifying a web page to be rendered; parsing the web page to identify a plurality of web page elements including a plurality of containers that include text, such that an original font ratio is a ratio of a first font size of text in a first container of the plurality of containers that include text to a second font size of text in a second container of the plurality of containers that include text, wherein a width of the first container is not equal to a width of the second container; and generating a layout for the web page that defines a height and position of each of the plurality of web page elements, wherein generating the layout includes proportionally scaling font sizes associated with each of the plurality of containers that includes text, resulting in scaled font sizes such that a ratio of a first scaled font size of text in the first container to a second scaled font size of text in a second container is not equal to the original font ratio, wherein the font sizes are proportionally scaled based on at least one of; relative container widths;
ora ratio of a minimum readable font size to a normalization font size; rendering the web page according to the layout; displaying the first container to have a particular display width, wherein the first scaled font size is adjusted to a first display font size based on a comparison between the width of the first container and the particular display width; subsequently displaying the second container to have the particular display width, wherein the second scaled font size is adjusted to a second display font size based on a comparison between the width of the second container and the particular display width, wherein a ratio of the first display font size to the second display font size is equal to the original font ratio. - View Dependent Claims (12, 13, 14)
-
-
15. A system comprising:
-
a processor; a memory communicatively coupled to the processor; and a browser application at least partially stored in the memory and executable on the processor, the browser application including; a parser for parsing tagged content to identify content elements; a layout module for determining a height and a position for each of the content elements; a font scaling module for generating scaled fonts associated with the content elements by proportionally scaling original fonts associated with the content elements based on relative content element widths, such that; a proportion between original fonts of first and second content elements having different content element widths is not equal to a proportion between scaled fonts of the first and second content elements; and a proportion between the original fonts of the first and second content elements having different content element widths is equal to a proportion between displayed fonts of the first and second content elements when the first and second content elements having the scaled fonts are rendered to have a common display width; and a renderer for rendering the content elements according to the height and position for each of the content elements as defined by the layout module. - View Dependent Claims (16, 17, 18)
-
Specification