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 Why not?

To change the font attributes, use the buttons in the box. You will need to allow cookies and JavaScript (not Java!) from for this to work! (See the disclosure below.)

The [Custom] button allows you to name a particular font face, 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.


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 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.


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 may 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. There are three kinds of these fonts:

  1. Windows fonts, distributed with Windows. If you a running a reasonably recent version of Windows (say, 7 and up), you have them and they will work here.
  2. Google fonts — almost a 1000 of those made available on the Internet for free. The browser will get these it needs in the background, and they are kept for a time. Don't worry, the process is very easy on your bandwidth; for example, my site requests a total of 7 fonts, or 400 kilobytes of transfer; and this happens once every few weeks, I presume.
  3. Other fonts: like the Windows ones, except that you have to find and install them yourself. Both versions of DejaVu are deservedly very popular: pretty and readable.


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: | Search this site | Change font size

Photo Tidbits News | The Gallery

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