Reputation: 11
i use @font-family for my special font style and it works properly on my google chrome browser , but on Firefox it is not... actually it's Rendering Issue: Fonts no longer smoothed in Firefox ...
who i can to fix this problem?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
@font-face{
font-family: example;
src:url(./fonts/rasmi.otf);
}
.myFont{
font-family: example;
font-size: 40px;
}
</style>
</head>
<body>
<p class="myFont">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ex aspernatur debitis esse unde quia delectus natus, atque nesciunt optio consequuntur ducimus facere magnam, corporis eligendi totam molestias nostrum a earum.</p>
</body>
</html>
Upvotes: 1
Views: 94
Reputation: 3478
Add
-moz-osx-font-smoothing: grayscale;
To the body in your CSS to get clean antialiasing in Firefox.
Upvotes: 0