Discovering where to find Chrome for Android's font options

Currently, I am facing an issue with the fonts on my website. The fonts that I am using work perfectly with Chrome for Windows, but unfortunately do not display properly on Chrome for Android.

I have a preference for using the Haettenschweiler and Impact fonts, however, Chrome Browser for Android does not support these font styles. Instead, it defaults to displaying the plain Arial font.

To address this problem, it seems essential to determine which fonts are compatible with Chrome for Android. Unfortunately, I have been unable to find any specific information regarding the supported fonts for this browser. Can anyone provide insight into what fonts Chrome for Android actually supports?

Answer №1

It is possible that the fonts you see on your Windows system are available because they are already installed on your computer. However, in order to ensure consistency across all devices and users, it is important to load custom fonts on your website.
The fonts you mentioned seem to be licensed, meaning you may need to pay for them in order to use them legally. For the purpose of this example, I will use Roboto.

Once you have loaded a font, remember to apply it in your CSS:

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

Utilizing External Fonts

External fonts are sourced from external websites and imported into your own site. One popular source for free external fonts is Google Fonts.
There are two methods for importing external fonts.

You can either include the import code within your HTML's head section:

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

Or, you can import them using import within your CSS:

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

Utilizing Internal Fonts

Internal fonts are those hosted on your own server. To utilize internal fonts, you must host the font files on your website and use the font-face rule to load them, as shown below:

@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 */
}

Answer №2

If you're wondering why Haettenschweiler is visible in Chrome, it's likely because it's already stored on your device. Browsers can display fonts from your system or utilize custom web font-kits.

To use Haettenschweiler specifically, you'll need to purchase the webfont kit. You can obtain it here.

Alternatively, you can explore various web font-kits on platforms such as Google Fonts and Font Squirrel.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Expandable Menu that slides up and down

Here is a link to an Accordion Menu I have created: https://jsfiddle.net/wfr57s57/ This piece of JQuery Code controls the functionality: $(".menu-item").click(function(e) { var allContents = $(".menu-content"); e.preventDefault(); if(allC ...

Adjusting the grid for various mobile screen sizes

I am currently working on designing a user interface (UI) for mobile screens that includes a header, grid, and buttons. I want the UI to look consistent across all mobile devices. Here are screenshots from various mobile screens: Samsung S5 Pixel 2 XL I ...

What are the steps to creating a popup form on a website?

I am implementing LDAP bind authentication to password protect my page. The process and script are working fine. I have a form that submits to the script for user authentication. If the user lacks authentication, they are redirected. I want to turn the ex ...

Expanding on the specific properties of a parent component to its child, using SASS's extend feature

Can selected or specific properties be shared/extended from the parent to the child without the need to create a variable? .main-container { padding: 20px; margin: 20px; ul { padding:$parentPadding(); margin: 0; } ...

What are some methods for utilizing jQuery or Javascript to dynamically modify CSS styles depending on the current URL?

I'm working on integrating a separate navigation area file with my content using PHP includes. I have this idea where I want the links in the navigation area to change color depending on the active page (current URL). Essentially, I need jQuery or Jav ...

CSS dilemma: A snag with pointer-events and the a:focus attribute

Does anyone have experience troubleshooting issues with navbars? I could really use some help. I am facing an issue with my navigation bar where I have different links that reveal an unordered list of sublinks upon clicking. The CSS for my <ul> is ...

"Position centrally on the inside, using flexbox to fill the entire

Seeking assistance with aligning the text in the center of the flexboxes so that the h4 and p elements in the large box are centered within their respective boxes, as well as ensuring the text in the two smaller boxes is also centered. Any help would be gr ...

Switch the scroll direction in the middle of the page and then switch it back

Yesterday, while browsing online, I stumbled upon this website and was amazed by the unique scroll direction change from vertical to horizontal mid-page. I'm curious about how they managed to achieve that effect. Does anyone have insight into the pro ...

Android: Retrieving Information from a Text File

I need help with parsing a *.txt file that I have. You can access the file Here. Does anyone know how to extract the Times into an Array along with their associated values in another Array, similar to: ArrayTime[..., 16:52, 17:07,....] ArrayG[..., 533, 4 ...

Combining various functions into a single button

I am currently working on creating a full-screen menu that functions like a modal. Everything seems to be working fine, except for the fadeOut animation. Can someone please help me understand what is causing issues with my scripts/codes? I want the content ...

Tips for Improving the Naming Conventions of CSS Modules

I currently have the following setup in my webpack.config.js: { test: /\.css$/, use: [ {loader: "style-loader"}, { loader: "css-loader", options: { modules: true, importLoaders: 1, s ...

Guide to resolving the login button exception with Facebook SDK 4.0

Implementing Facebook SDK 4.0 in an android app for login is crucial, here's the code snippet loginButton = (LoginButton)findViewById(R.id.login_button); loginButton.setReadPermissions("user_friends"); // Other custom app configurations ...

What is the best way to extract a value from two different HTML identifiers?

Something tells me that this task is quite simple. I just need some guidance on what I might be missing here. All I really want is a basic program that can extract the content from <span id "text"> and paste it into <div id="text2">. funct ...

Issue encountered in Android: File not found Exception, despite the presence of the file

Seeking the address of a file on an android device and attempting to read its contents. Obtained file locations: uri2.toString() returns the string "file:///storage/emulated/0/download/user.txt" uri2.getEndodedPath() returns the string "/storage/emulate ...

Are there any built-in JSON converters in Retrofit 1.9.0 by default?

Can anyone help me with parsing JSON response in Retrofit 1.9 where the JSON structure is like: {"Result":"1","UserID":"0"} I need suggestions on how to extract this JSON into string format. Below is the code snippet of my Main activity: package first. ...

Using Angular Universal with Prerender.io fails to display HTML content inside component tags

I have recently developed an Angular Universal application with nested components. My main issue now is that when using Prerender.io, it only returns the top-level component tags and not the HTML content within them. This seems to be a common problem for ...

Creating a button for every individual row within a table using a combination of PHP and HTML

I need assistance with my current PHP and HTML code that generates buttons on each table row: <!DOCTYPE HTML> <h2 class="text-center">Consulta</h2> <br> <table class="table table-striped"> <tr class="in ...

What steps can be taken to preserve the state of a fragment when transitioning to another fragment?

When navigating from fragment A to B within the Navigation Drawer, I need to save and maintain the list in fragment A. Although onDestroyView is called during this transition, passing arguments within that method seems to be challenging. ...

Steps to position a dropdown within a panel while keeping the dropdown content visible using an anchor tag

I'm struggling to display a dropdown menu within a panel without it being hidden. I was advised to use position:absolute in the dropdown's css, but that solution isn't working for me. I need the dropdown to appear on hover over the anchor t ...

Trouble Ensues as CSS Tables Misalign with Bootstrap Framework

After meticulously slicing up multiple images in Photoshop and exporting them with the necessary CSS table mark-up, everything appeared to be perfectly aligned. However, once the Bootstrap CSS file was included on the page, some of the images started going ...