×

Dynamic text adjustment in a user interface element

  • US 8,484,562 B2
  • Filed: 06/25/2010
  • Issued: 07/09/2013
  • Est. Priority Date: 06/25/2010
  • Status: Active Grant
First Claim
Patent Images

1. A method for selecting a font size for text displayed in a display region, comprising:

  • detecting a height and a width of the display region;

    determining a height and a width of an initial text region defining a minimum region required for displaying the text using a default font size;

    defining a plurality of adjusted text regions of different sizes, each adjusted text region comprising a height and a width, wherein;

    the height of each of the plurality of adjusted text regions corresponds to a different number of lines of text within the adjusted text region; and

    the width of each of the plurality of adjusted text regions corresponds to the width of the initial text region reduced by a reduction amount corresponding to the number of lines within the adjusted text region;

    identifying, for each of the plurality of adjusted text regions, the smaller of the ratio of the height of the display region over the height of the adjusted text region and the ratio of the width of the display region over the width of the adjusted text region;

    identifying the one of the plurality of adjusted text regions having the largest of the identified smaller ratios; and

    displaying the text in the display region using a reduced font size corresponding to the default font size reduced by the reduction amount of the identified one of the adjusted text regions.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×