WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: determining font size on native apps?

for

From: Patrick H. Lauke
Date: Feb 10, 2020 11:47AM


On 10/02/2020 18:40, glen walker wrote:
> Without having access to the native app code, is there a way to figure out
> the font size with respect to color contrast issues?
>
> When checking for contrast issues, I often take a screenshot and send it to
> my PC then use a contrast checker on my PC. That usually gets me pretty
> close to accurate RGB values.
>
> If the ratio is between 3 and 4.5, then determining if the font is "large"
> is needed. I know there are best practices for font sizes on mobile but is
> there a decent way to figure out if a font is 18pt (or 14pt bold) in a
> native app?

Measure it on the screenshot, at least to a rough level? Check what the
device-independent measure dimensions of your particular device are
(e.g. how many Apple "points", or Google "device-independent pixels", or
Windows' "effective pixels" your device has), and work it out from that?

Alternatively, as Apple points/Google dps/etc should, for web content,
generally map to a CSS px for web content (when viewport is set to
width=device-width, i.e. the ideal viewport), make a small example web
page with text at 18pt/24px and 14pt/19px bold, take a screenshot of
THAT as well, as use that as a reference.

And eyeball it. And don't sweat it, I'd say. (also noting that "bold" is
really a loose term, as it doesn't take into account how "bold"/"thick"
a particular typeface actually is, doesn't take into account overly thin
typefaces, etc...the whole pseudo-accuracy of this SC needs to be taken
with a pinch of salt)

P
--
Patrick H. Lauke

https://www.splintered.co.uk/ | https://github.com/patrickhlauke
https://flickr.com/photos/redux/ | https://www.deviantart.com/redux
twitter: @patrick_h_lauke | skype: patrick_h_lauke