Check out Makruk (Thai Chess), our featured variant for March, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

EarliestEarlier Reverse Order Later
Font Settings. Change your fonts for viewing this site.[All Comments] [Add Comment or Rating]
🕸📝Fergus Duniho wrote on Sat, Feb 15 12:28 PM EST in reply to H. G. Muller from 05:00 AM:

I still somewhat hate the font I get though, because most digits there have the same height as lower-case characters. This makes the zero indistinguishable from the lower-case O.

I found Constantia and Georgia to both have a 0 resembling the lower case o. So I removed both from the default serif font list. Assuming you're on Windows, you should now get Cambria instead of Constantia, or Literata if you have it installed. You might try installing Georgia Pro. Despite its name, I got it for free from the Microsoft store. It's like Georgia but has all the digits of uniform height as tall as capital letters. Or you could go to Google Fonts to install another font you would like to use.


🕸📝Fergus Duniho wrote on Sat, Feb 15 07:17 PM EST:

It's now possible to select any font in a fontlist. When you do so, it will just be the specific font, not other fonts in the same list. With this done, I have now reorganized the fonts so that no font appears twice. Except for the default fonts (STIX Two Text, Literata, Noto Sans, and Courier Prime), you cannot use a font in any fontlist unless you already have it installed. The fonts appearing by themselves outside of fontlists are all Google fonts.

When you load the page, and you have already selected a specific font from a fontlist, it will open that fontlist to show you which font you have selected. But if you have only selected the fontlist itself, it will not open it, though you may open it or any other fontlist after loading the page. Whenever you open a fontlist, it will close any others in the same group.


🕸📝Fergus Duniho wrote on Mon, Feb 17 04:46 PM EST:

I did some reorganization to better enable the ability to use a sans-serif font for the body text or a serif font for the headings and menus. I was originally using the CSS custom properties --serif, --sans-serif, and --mono, and I have now added --bodyfont and --headerfont. In doing so, I can avoid assigning --serif to sans-serif fonts or --sans-serif to serif fonts. Now, --serif will always refer to serif fonts, and --sans-serif will always refer to sans-serif fonts, but --bodyfont and --headerfont may equal either --serif or --sans-serif, depending upon your preferences. Because this involved adding these two new custom properties to global.css and globalindex.css, you may need to refresh your browser cache before this will work properly.

If you do view the site with sans-serif body text and serif headings and menus, then I recommend changing the fonts, as the default fonts do not work best for this when switched. I would recommend Lora for serif headings and menus and either Fira Sans or Radio Canada for sans-serif body text.


🕸📝Fergus Duniho wrote on Tue, Feb 18 04:57 PM EST:

To keep things simpler, I reverted the serif default back to Literata. I had made the default different for desktop and mobile before I created the Font Settings script. Now that this script is available, you can just change to a different font if you would prefer something other than Literata.In case you want to use only local fonts, the default serif fontlist looks like this:

Literata, Bookerly, Georgia Pro, Charis SIL, Cambria, Noto Serif, Georgia, Iowan Old Style, Caecilia, serif

On Kindles and Fire tablets, this will give you Bookerly or the option to choose Caecilia. Georgia Pro is much further ahead than Georgia, because it handles numerals better than the version of Georgia on Windows. But I have included Georgia, because on my mobile devices, it looks like Georgia Pro. Also, the fonts in between are not on my mobile devices. Cambria is normally found on Windows and should stop a Windows user from getting the inferior Georgia. The other two are in my Linux Mint installation. Iowan Old Style is on my iPad and should also be on Apple computers.

Since it's a loadable Google font, I moved STIX Two Text to its own input element in the form.


🕸📝Fergus Duniho wrote on Tue, Feb 18 09:47 PM EST in reply to Fergus Duniho from 04:57 PM:

I have included Georgia, because on my mobile devices, it looks like Georgia Pro.

Correction. It is just on my Android devices that it has numerals of uniform height like Georgia Pro does. On my iPad and my Fire tablet, it uses the same version of Georgia as Windows does. While the Fire tablet has Bookerly, which is a top choice, I moved Georgia down further for the iPad, and I added Charter and Cochin for that device.


William Wragg wrote on Wed, Feb 19 07:01 AM EST:

Just a heads up, for me on my iPad (iPadOS 18.3) the Diagram Designer page looks different, fontwise, to the other pages on the site.


William Wragg wrote on Wed, Feb 19 07:25 AM EST in reply to William Wragg from 07:01 AM:

Also the font used on this font settings page, seems to differ now from the other pages on the site, except when adding a comment.


🕸📝Fergus Duniho wrote on Wed, Feb 19 12:17 PM EST in reply to William Wragg from 07:01 AM:

Just a heads up, for me on my iPad (iPadOS 18.3) the Diagram Designer page looks different, fontwise, to the other pages on the site.

That page didn't include headcode.php, its main include file was in the /play/ directory, and it also included common.css, which needed to be updated regarding fonts. I have now corrected these issues, and I purged common.css from the cache. In tests on my iPad, fonts are now looking as they should in Edge, but Safari was displaying local fonts even though I had specified Google fonts. However, Safari doesn't let me selectively refresh its cache. So it may take time before it catches up.


🕸📝Fergus Duniho wrote on Wed, Feb 19 12:19 PM EST in reply to William Wragg from 07:25 AM:

Also the font used on this font settings page, seems to differ now from the other pages on the site, except when adding a comment.

Since I recently made changes to the CSS files, your browser may need to refresh its cache before the fonts start looking the same on all pages.


William Wragg wrote on Fri, Feb 21 03:18 AM EST in reply to Fergus Duniho from Wed Feb 19 12:19 PM:

The Diagram Designer page now looks correct, but this Font Settings page still looks different. I'll wait a while more to see if the cache invalidates.


🕸📝Fergus Duniho wrote on Mon, Feb 24 11:22 AM EST in reply to William Wragg from Fri Feb 21 03:18 AM:

The main issue I'm having on the iPad is that if I set everything to the defaults, I should see Noto Sans being used for headings and menus, but instead of that, I see Trebuchet being used on pages other than this one. The main difference between this page and other pages is that this page loads all the Google fonts, and other pages load only the ones selected.

For one test, I changed the sans-serif font from default to Noto Sans, and then I got Noto Sans on other pages. I'm not sure why this is making a difference. Unfortunately, the app I'm using to see the page source is not taking into consideration how cookies are affecting the page source. So, with respect to the loading of fonts and the assignment of custom properties for fonts, it gives me the same HTML code.

As another test, I ran Vivaldi on my iPad, because I had not yet used it with Font Settings. On first looking at some pages, it used a serif for the heading on the homepage, but on the Comments page, it seemed to be using Noto Sans for headings, menus, and body text. After I went to the Font Settings page and explicitly set the defaults, it used Trebuchet for headings and menus and (presumably) Literata for body text.

This should not be happening, because the default values are supposed to be used whenever the cookies are not there. I suppose I'll have to add some code to show me the cookie values and font assignments it is making and see if anything is amiss on the iPad.


🕸📝Fergus Duniho wrote on Mon, Feb 24 11:42 AM EST in reply to Fergus Duniho from 11:22 AM:

And that problem should now be fixed. The main issue was that when it was not loading all the Google fonts, it was failing to load Noto Sans. I did not notice this on my PC or on Android, which both had Noto Sans installed, but I did on the iPad, which didn't have it installed. The problem was that I had changed part of the code to use defaultserif and defaultsans to specify a different default for serif and sans, but I was still using the keyword default in other parts of the code.


William Wragg wrote on Mon, Feb 24 11:49 AM EST in reply to Fergus Duniho from 11:22 AM:

If you can't use the "Web Inspector" option on the iPad, due to not having access to a Mac running Safari (which you can link to the iPad via the Develop menu) I've found the iPad Inspect App quite useful, and it should show and adhere to any browser cookies.


🕸📝Fergus Duniho wrote on Mon, Feb 24 12:18 PM EST in reply to William Wragg from 11:49 AM:

Can it be used within a browser?


William Wragg wrote on Mon, Feb 24 12:26 PM EST in reply to Fergus Duniho from 12:18 PM:

The Inspect App? No it basically is a browser, but as essentially all browsers on an iPad are Safari anyway, it's like having a web inspector mode on Safari directly on the iPad.


H. G. Muller wrote on Mon, Feb 24 01:33 PM EST in reply to William Wragg from 12:26 PM:

Fonts on my PC/FireFox did change since this morning, though, and boldface seems gone again. Before I refreshed the browser cache even the Comment texts were in boldface.


🕸📝Fergus Duniho wrote on Mon, Feb 24 01:49 PM EST in reply to H. G. Muller from 01:33 PM:

Are your problems with boldface only with Google fonts? If you select the option to use only local fonts, does that fix the problem?


H. G. Muller wrote on Mon, Feb 24 02:02 PM EST in reply to Fergus Duniho from 01:49 PM:

For some reason my font settings were reset to Google, instead of local/default, even though I was still logged on. Now that I selected local again boldface is back.


🕸📝Fergus Duniho wrote on Mon, Feb 24 02:36 PM EST in reply to H. G. Muller from 02:02 PM:

The cookie for that setting may have expired. Do you have old versions of any of the Google fonts installed on your computer?


H. G. Muller wrote on Mon, Feb 24 02:56 PM EST in reply to Fergus Duniho from 02:36 PM:

I never consciously installed any fonts on my computer. (Perhaps with the exception of Asian kanji fonts.)


🕸📝Fergus Duniho wrote on Mon, Feb 24 03:49 PM EST in reply to H. G. Muller from 02:56 PM:

Can you check your installed fonts and confirm that Literata, Noto Sans, Courier Prime, and Lora are all absent?


🕸📝Fergus Duniho wrote on Wed, Feb 26 01:41 PM EST in reply to William Wragg from Mon Feb 24 12:26 PM:

The Inspect App? No it basically is a browser, but as essentially all browsers on an iPad are Safari anyway, it's like having a web inspector mode on Safari directly on the iPad.

I found a different app that is free and gives me an actual web inspector mode in Safari on my iPad. It is called Web Inspector, and it installs a Safari extension.


William Wragg wrote on Wed, Feb 26 06:00 PM EST in reply to Fergus Duniho from 01:41 PM:

Not used that one, looks good though


23 comments displayed

EarliestEarlier Reverse Order Later

Permalink to the exact comments currently displayed.