Font on mobile device

Hi

I’m working with Cordova & F7 (PWA) I don’t see the same font on mobile device, on the computer browser looks fine, like this …

But any mobile device looks …

DS-POINT it’s the font name doesn’t work on mobile

:root {

    --f7-navbar-bg-color: orange ;

    --f7-panel-bg-color: RGB(33,33,33);

    --f7-font-family: 'DS-POINT', 'Roboto', system-ui, Noto, Helvetica, Arial, sans-serif;

    --f7-preloader-modal-bg-color: rgba(243, 162, 11, 0.8);

  }

.root.ios{

    --f7-navbar-bg-color: orange ;

    --f7-font-family: 'DS-POINT', 'Roboto', system-ui, Noto, Helvetica, Arial, sans-serif;

}

Obviously, on fonts carpet exist the file DS-POINT.ttf

Any suggestions?

I guess this font is in your desktop system. And of course it is not present in mobile devices. You need to use web fonts feature to include custom fonts https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face

Thank you Vladimir.

It’s the only way? What happens if the mobile device has not internet connection?

Include the fonts files (woff, …) In the fonts folder and add the fonts path related to fonts folder.

1 Like

Here the solution…

On index.css file put on top …

@font-face {

    font-family: "font-tablero";

    src: url("../fonts/DS-POINT.TTF");  // Give relative path to your css file.

}

Thanks.