hi, i have this problem when i render to json with bodymovin in after effects, this how the text looks in after effect, the letter spacing are ok
and this is how looks in lottie player
it have spaces between letters, i use nextjs and import the font in global styles:
@import url(‘https://fonts.googleapis.com/css2?family=Lobster&display=swap ’);
.my-font {
font-family: ‘Lobster’, cursive;
/* letter-spacing: -1px; */
}
letter-spacing not fix the problem, could someone tell me what I am doing wrong or tell me if there is a way to solve this? thank you very much
bart
December 13, 2022, 4:36pm
2
Try converting the text to a shape layer
1 Like
hi, thanks for your response, i can´t convert to shapes, the texts is dynamic edited
SOLUTION: this is probably related to the font not being loaded when the animation starts. Lottie tries to detect that and wait for the font to be loaded.
I think that if you remove the “cursive” option from the css selector, it might fix it.
If that doesn’t work, another option is to load an html element with the css class applied to it so the font loads before the animation.
thanks to the great help of bodymovin creator, you can see the issue he helpme fix the problem i had.
opened 07:34PM - 16 Dec 22 UTC
closed 12:23AM - 17 Jan 23 UTC
**Tell us about your environment**
i use nextjs with @lottiefiles/react-lottie-… player
* **Browser and Browser Version:***
it happens in every browser
* **After Effects Version:***
After Effects 2022.6.0 with bodymovin 5.9(in options i use font class)
* **Nextjs***
i use google font link in global styles
i have problem with text tracking when i render the json in nextjs
this is how text look in AE, the text tracking is ok
![This is an image](https://i.ibb.co/s1jFX9X/text-tracking-1.png)
and this is how is look when i render the json with netxjs
![This is an image](https://i.ibb.co/FXbx8FB/text-tracking-2.png)
.my-font {
font-family: ‘Roboto’, sans-serif;
letter-spacing: -1px;
}
letter-spacing not fix the problem, I would appreciate it if anyone could tell me where the problem could be, bodymovin is awesome, thank you very much