W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > April to June 2017

Special fonts don't matter for font-family change.

From: Wayne Dick <wayneedick@gmail.com>
Date: Wed, 5 Apr 2017 09:56:32 -0700
Message-ID: <CAJeQ8SBxdXqrb+fXj3qkQMqFTR-3TUzC=QsO2sVQDyZ3mxvbfg@mail.gmail.com>
To: GLWAI Guidelines WG org <w3c-wai-gl@w3.org>, public-low-vision-a11y-tf <public-low-vision-a11y-tf@w3.org>
We are only verifying testability, not whether it will look good once an AT
grooms it.

So, suppose an author uses an icon font, or a math font, or a script font
for emphasis or scientific semantic reasons, it does not matter if that
font is changed when testing if CSS can change the font family. If the
special font is changed to tahoma or verdana or times new roman, it is
unimportant. Unassigned character codes  are replaced by a box containing
the character code as an integer.  That is ok, it changed to the target
font. The display image isn't pretty, but the fact that the character
changed is demonstrated as true.

All you need is  <style> * {font-family: "Whatever" !important;} </style>
inserted in the last position of the <head> element and the test will give
you a true or false.

What will it measure?
The answer is this. Did the author get in the way of CSS change to font.

If all text does not change to the "Whatever" font then the author has done
something to override CSS in an inaccessible

At present, semantic markers for font usage are not extensive enough, and
WCAG 2.0  did not recognize inappropriate use of font to convey meaning as
a violation of 1.3.1. So, AT will have to do what screen readers do when
faced with semantically unclear situations. It will have to make a good
guess as to why the author changed the font family mid line.

Wayne

 way.
Received on Wednesday, 5 April 2017 16:57:47 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 08:04:09 UTC