Where to get Fonts available in Chrome for Android
Asked Answered
S

2

5

At the moment I use fonts on my website that works with Chrome for Windows but these fonts does not work with Chrome for Android.

The fonts I would like to use are Haettenschweiler and Impact but Chrome Browser for Android does not have these fonts. The plain Arial font is displayed instead.

To solve this issue it would probably be best to find out exactly what fonts are supported by Chrome for Android and take things from there. I have not been able to find any information on what fonts Chrome supports. What fonts do Chrome for Android support?

Stark answered 13/6, 2019 at 12:22 Comment(2)
there are fonts (like arial) which are available everywhere since they are preinstalled on the operationg system. Everything else needs to be loaded or it wont be available for your app.Animato
See also available fonts listed at https://mcmap.net/q/54994/-valid-values-for-android-fontfamily-and-what-they-map-toOujda
S
6

These fonts probably work on your Windows because you have them installed on your computer. To support custom fonts for everyone (and your other devices), you must load them in your website.
The fonts you provided are licensed fonts, and as far as I know these require you to pay money to use them legally. So for my example I'll use Roboto.

Remember that after loading a font, you still have to apply them in your css:

body {
  font-family: 'Roboto', sans-serif;
}

External Fonts

External fonts are fonts hosted on external websites, imported in your own. A great place to find free external fonts is Google Fonts.
There are two ways to import external fonts.

You can either import it inside your HTML's head like so:

<head>
    <link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
</head>

Or inside your CSS using import like so:

@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

Internal fonts

Internal fonts are hosted by yourself. You would have to host the font files on the website, and use the font-face rule to load them like so:

@font-face {
  font-family: 'Roboto';
  src: url('roboto.eot'); /* IE9 Compat Modes */
  src: url('roboto.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
  url('roboto.woff') format('woff'), /* Modern Browsers */
  url('roboto.ttf')  format('truetype'), /* Safari, Android, iOS */
  url('roboto.svg#svgFontName') format('svg'); /* Legacy iOS */
}
Sensualist answered 13/6, 2019 at 12:37 Comment(0)
N
0

Haettenschweiler isn't included in Chrome it is probably in your file system and this is why you can see it. The browsers can use the fonts used in your system or the customly supplied fonts; we call it web font-kits.

To use Haettenschweiler You need to buy the webfont kit to use it. You can find it here.

You can find multiple web font-kits in websites like Google fonts and Font squirrel.

Nival answered 13/6, 2019 at 12:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.