I'm currently using the font Gilroy-Bold for my project, but I'm facing inconsistencies between how it appears in Figma and my React application, even though they are both sourced from the same place.
Figma:
https://i.stack.imgur.com/3QvY4.png
My Laptop:
https://i.stack.imgur.com/xX1tw.png
This is how I have implemented it:
@font-face {
font-family:'Gilroy-Bold';
src:url('/src/Gilroy/Gilroy-Bold.ttf');
}
.PPNameHeader{
color: #444BAB;
margin:0px;
margin-left: 6%;
font-size: 1.173rem;
font-family:Gilroy-Bold;
}
The file path is correct as per my editor's recommendation. Things I have tried to troubleshoot the issue:
*{
font-family:'Gilroy-Bold';
src:url('/src/Gilroy/Gilroy-Bold.ttf');
}
- Cleared my cache - Tried incognito tab - Restarted the development server and editor