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 and JavaScript (not Java!) 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 Windows 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 other pages must "know" what your selection was. This is done by storing two cookies on your computer. These contain two pieces of information:

  • I've been to wrotniak.net in the past
  • I've selected a given font size and face there

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 (check here). 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 is done by clicking on [Sans] or [serif]; you mau also use the [Custom] button and specify any font name, as long as that font is installed on your system. If it is not (check the spelling!), your computer will try 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. Most of those fonts come only with Windows Vista or newer. They are clean, attractive and very readable, surpassing any previous Windows fonts.

Mac or Android users usually don't have the fonts listed above, so they have to use the [Custom] button to specify the exact font they want. After all, this is done only once, as the choice is persistent between sessions.

Compatibility

The JavaScript and HTML code has been tested under Windows XP, Vista, 7, and 10 on current versions of Firefox, Opera, Vivaldi, Google Chrome, Safari, and Internet Explorer. It also works with older (2007 or later) versions of these browsers. It will not work on many phone/PDA browsers, which ignore font attributes specified in Web documents.


Home: wrotniak.net | Search this site | Change font size

Photo Tidbits | The Gallery


Posted 2008/03/12; last updated 2017/03/08 Copyright © 2008-2017 by J. Andrzej Wrotniak