I used this script (https://www.samclarke.com/2013/06/javascript-is-font-available/) to check if Roboto
is available on my devices.
I found 2 interesting things:
As I have
Roboto
installed as font on my Windows desktop pc, the script says the font is available. Also, trying to use it asfont-family
, works without requesting it from google fonts.On my 5.1 Android phone, the script says that Roboto is not available by default, and if trying to set it as
font-family: Roboto, Times;
without using google fonts, Times shows up.
This surprises me as Roboto is the default font for New Android OS versions so I wonder if I am making any mistake or, as this is nonsense, why did they decide not to include this for native browser use.
Check it here:
.roboto {
font-family: "Roboto", Times;
}
<p class="roboto">Is this Roboto?</p>