Previous page Next page

Fonts

Font size is a major concern in the browser. Without designer intervention, the browser displays text as if it were running on a PC in a normal width and height display. This means that the fonts shown would appear huge relative to the screen size. As a result, only seven lines of text will be viewed in the browser when no font sizing is applied. Additionally, only about 25 characters would be viewed per line. This would generally be unusable from a practical point of view.

To make the browser usable, some form of font sizing should be performed to allow a reasonable amount of text to be viewed on one screen. Ideally, font sizing should be done in a single external style sheet, and all pages should reference this style sheet. Setting font sizes in document-level style sheets, or even worse, in in-line style sheets or <font> tags, makes it very difficult for the designer to update font changes, and runs the risk of failing to make the change everywhere. By using a single external style sheet, consistency in the pages is managed.

Defining fonts may be done in a static external style sheet or by dynamically generating a style sheet using some form of server-side application, such as a CGI script or a Java servlet. Using dynamic generation of a style sheet allows the server to decide, per user, what font size to use. This in turn allows the user to notify the server to change the font size. All HTML pages would have an external style sheet reference, which is another server-side executable. This executable would dynamically generate font information based on the cookie, form component or configuration value, relative to the IP address of the phone. Using a static external style sheet makes page development and testing much easier, since how it appears to the designer would be how it appears to the reader. Allowing the user to choose a font size forces more work on the designer to verify that all fixed size items appear acceptably


Previous page Next page