# Custom Font discrepancy iOS vs Android

**URL:** <https://forum.ionicframework.com/t/custom-font-discrepancy-ios-vs-android/232026>\
**Category:** Ionic Framework\
**Created:** [March 25, 2023, 2:57pm UTC](https://forum.ionicframework.com/t/custom-font-discrepancy-ios-vs-android/232026 "2023-03-25T14:57:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![geter](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@geter](https://forum.ionicframework.com/u/geter)\
**Post date:** [March 25, 2023, 2:57pm UTC](https://forum.ionicframework.com/t/custom-font-discrepancy-ios-vs-android/232026/1 "2023-03-25T14:57:16Z")

</div>

My app had issues with the custom font I’m using. On Android it looks superb. On iOS the font spacing is way too wide and the font seems thinner.

I already tried the few possible solutions I’ve found here and on stackoverflow but none seems to work.

I’m using Montserrat as a font([Montserrat - Google Fonts](https://fonts.google.com/specimen/Montserrat?query=montserrat)) and this is my variables css(the part that matters):

> @font-face {  
> font-family: “Montserrat”;  
> font-style: normal;  
> font-weight: normal;  
> src: url(“…/assets/fonts/montserrat/Montserrat-Regular.ttf”);  
> }
> 
> /\*\* Ionic CSS Variables \*\*/  
> :root {  
> –ion-font-family: “Montserrat”;

How to get iOS looking just as it should?

Take a look at this picture to see the difference:

 ![ionic font issue](https://global.discourse-cdn.com/ionicframework/original/3X/c/3/c3fb408538372a5b42960a7b3267de1904ec7cf7.jpeg)

---

<div class="post-metadata">

**Author:** ![geter](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@geter](https://forum.ionicframework.com/u/geter)\
**Post date:** [March 27, 2023, 5:27pm UTC](https://forum.ionicframework.com/t/custom-font-discrepancy-ios-vs-android/232026/2 "2023-03-27T17:27:24Z")

</div>

The only thing that displays correctly is the ion-list-header, while nothing else does.

---

<div class="post-metadata">

**Author:** ![rafaelnrabelo](https://avatars.discourse-cdn.com/v4/letter/r/65b543/32.png) [@rafaelnrabelo](https://forum.ionicframework.com/u/rafaelnrabelo)\
**Post date:** [September 5, 2023, 4:36pm UTC](https://forum.ionicframework.com/t/custom-font-discrepancy-ios-vs-android/232026/3 "2023-09-05T16:36:00Z")

</div>

managed to fix this problem?

---

<div class="post-metadata">

**Author:** ![geter](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@geter](https://forum.ionicframework.com/u/geter)\
**Post date:** [February 26, 2024, 1:29pm UTC](https://forum.ionicframework.com/t/custom-font-discrepancy-ios-vs-android/232026/4 "2024-02-26T13:29:42Z")

</div>

Rafael, yes I did. Sorry for the late reply.

The issue was that I was using .ttf (TrueType) font, when I switched to .otf (OpenType), for the same font, iOS/Safari started to recognize and display the font!  
I could never find a reason for this anywhere before or after I figured out.
