Is there a way we can use a custom global font even without internet on our application?
To use a custom font without internet access, download the font files (e.g., TTF or OTF) from a trusted source while online.dsimfly Once downloaded, install the font on your device. In design software or web projects, reference the font locally using the proper file path. This ensures the custom font is accessible without requiring an internet connection.
Hi
Yes, you can use a custom font without the internet. Here's how:
Download the font: Get the font file (like .ttf, .woff, or .woff2).
Add the font to your project: Place the font file in a folder inside your project, like assets/fonts.
Set up the font in CSS: Add this to your CSS:
@font-face {
font-family: "MyCustomFont";
src: url("/path-to-your-font-folder/MyCustomFont.woff2") format("woff2");
}
body {
font-family: "MyCustomFont", sans-serif;
}