# The text is shown differently by OS

**URL:** <https://forum.lottiefiles.com/t/the-text-is-shown-differently-by-os/2145>\
**Category:** Lottie in Mobile\
**Created:** [January 27, 2022, 1:42am UTC](https://forum.lottiefiles.com/t/the-text-is-shown-differently-by-os/2145 "2022-01-27T01:42:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![seowondaddy1](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/seowondaddy1/32/3369_2.png) [@seowondaddy1](https://forum.lottiefiles.com/u/seowondaddy1)\
**Post date:** [January 27, 2022, 1:42am UTC](https://forum.lottiefiles.com/t/the-text-is-shown-differently-by-os/2145/1 "2022-01-27T01:42:49Z")

</div>

Hi, does anyone know how to fix this? The number in the circle looks different even though it’s same Json. The problem is that it shows a different font in the iOS Lottie player compared to the original and the second Android image. How can the number shown in the iOS Lottie player is looked the same as others? Additional info. I used the slider control but the number wasn’t possibly increased when it’s shown in the Json player. So I removed the slider control effect then I just type a text for each frame. (수정됨)  
 ![Different](https://canada1.discourse-cdn.com/flex030/uploads/lottiefiles/original/2X/8/8a6a77909741f1deb29591cfc200e3840005d12e.png)

---

<div class="post-metadata">

**Author:** ![irbypace](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/irbypace/32/3165_2.png) [@irbypace](https://forum.lottiefiles.com/u/irbypace)\
**Post date:** [January 28, 2022, 6:04pm UTC](https://forum.lottiefiles.com/t/the-text-is-shown-differently-by-os/2145/2 "2022-01-28T18:04:27Z")

</div>

Make sure you have it export all assets, because type can change.

---

<div class="post-metadata">

**Author:** ![koden.u8800](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/koden.u8800/32/1214_2.png) [@koden.u8800](https://forum.lottiefiles.com/u/koden.u8800)\
**Post date:** [January 29, 2022, 9:18pm UTC](https://forum.lottiefiles.com/t/the-text-is-shown-differently-by-os/2145/3 "2022-01-29T21:18:05Z")

</div>

It seems that iOS currently does not support custom glyphs, but only iOS system fonts.  
You can use `var fontProvider: AnimationFontProvider` property of `AnimationView` instead.

---

<div class="post-metadata">

**Author:** ![sourabhkokitkar48](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/sourabhkokitkar48/32/1522_2.png) [@sourabhkokitkar48](https://forum.lottiefiles.com/u/sourabhkokitkar48)\
**Post date:** [January 31, 2022, 9:42am UTC](https://forum.lottiefiles.com/t/the-text-is-shown-differently-by-os/2145/4 "2022-01-31T09:42:40Z")

</div>

This is most common issue when texts is used in json,  
you can simply right click on text layer → Create → Create shapes from text.  
and then you are done.

---

<div class="post-metadata">

**Author:** ![roi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/roi/32/1874_2.png) [@roi](https://forum.lottiefiles.com/u/roi)\
**Post date:** [April 16, 2022, 8:06pm UTC](https://forum.lottiefiles.com/t/the-text-is-shown-differently-by-os/2145/5 "2022-04-16T20:06:36Z")

</div>

Hey @koden.u8800 , can you add a sample code? I’m trying for days to change this animation font (or get the actual font). I opened a GitHub issue: [Animation font doesn't match Lottie preview · Issue #1546 · airbnb/lottie-ios · GitHub](https://github.com/airbnb/lottie-ios/issues/1546).

Any help will be highly appreciated.

---

<div class="post-metadata">

**Author:** ![koden.u8800](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/koden.u8800/32/1214_2.png) [@koden.u8800](https://forum.lottiefiles.com/u/koden.u8800)\
**Post date:** [April 17, 2022, 2:42pm UTC](https://forum.lottiefiles.com/t/the-text-is-shown-differently-by-os/2145/6 "2022-04-17T14:42:42Z")

</div>

Just add custom font to project: [Adding a Custom Font to Your App](https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app). Your animation uses “Druk-WideSuper” font.  
If you want to replace font with other (for example “Zapfino”) use this code:

```auto
struct FontProvider: AnimationFontProvider {
    func fontFor(family: String, size: CGFloat) -> CTFont? {
        CTFontCreateWithName("Zapfino" as CFString, size, nil)
    }
}
animationView.fontProvider = FontProvider()

```
