|
|
Change Font Size and Face |
|
The font size used on my site scales quite well to your browser's window, and so does the font face used (serif for larger, sans-serif for smaller screens). Still, you may prefer to set your own, custom size and face for viewing wrotniak.net. Why not? To change the font attributes, use the buttons in the yellow box. You will need to allow cookies from wrotniak.net for this to work! (See the disclosure below.) |
|
The [Custom] button allows you to name a particular font face, or or you can click on one of the font names listed in the box (see Details for more on that.) Note: if you now revisit a page which your browser keeps cached, you will have to refresh the view in order to see the changes. Disclosure In order for this to work, my pages must "know" what your selection was. This is done by storing two cookies on your computer. These contain two pieces of information:
This information is not shared with any other party or Web site, it also does not contain any data which may be used to identify you. Obviously, if your browser is set to not accept cookies, font settings become unavailable. All other functionality of the site remains unaffected. Perhaps 95% of Web pages send you cookies without asking for any permission. Most commercial cookies are used to trace your browsing from one site (or page) to another. I don't do that. If you wish to remove my cookies from your computer, just click on Remove Cookies above. If you do that, my pages will use the font depending on your browser's window size. The remainder of this page is for the people who like to tweak their system, so it may be safely skipped, unless you belong to that group. Details All browsers allow you to specify what font faces to use when a Web page requests to be drawn in serif or sans-serif. Many users do not bother to set these defaults, therefore I am providing a way to specify a particular font face in which you would like to view my site. This can be done by clicking on the [Custom] button and specifying any font name, as long as that font is installed on your system. If it is not (check the spelling!), your computer will use some substitution; it may even know which family to use. The display on top of the box will still show whatever you've requested; there is no reliable way for a script to know if a font is actually available. As an alternative, some font faces can be selected explicitly by clicking on names below the buttons. Windows users: Constantia Cambria, Calibri, and Candara come only with Vista. They are clean, attractive and very readable, surpassing any previous Windows fonts.
Ifg you are not running Vista, you can still download these fonts free as a part of the Microsoft PowerPoint Viewer Otherwise, on the XP you have Georgia and Verdana, both looking quite good in screen sizes. Just make sure to activate font smoothing (off by default on the XP), which makes most fonts look much better, especially on LCD screens. Mac users under OS X 10.4 or higher have Georgia and Verdana installed as essential fonts. Linux: I don't think most distributions have the fonts listed above, but you can always use the [Custom] button to specify the exact font you want. After all, you do it only once, as the choice is persistent between sessions. Compatibility The JavaScript and HTML code has been tested under Windows XP and/or Vista on Firefox 2/3, Opera 9/10α, Google Chrome, Safari, and Internet Explorer 7/8. It should work with older (if not too old) versions of these applications as well, as it uses only standard features. It will not work on phone/PDA browsers, which ignore any fonts attributes specified in Web documents. |
| Posted 2008/03/12; last updated 2009/05/31 | Copyright © 2008-2009 by J. Andrzej Wrotniak |