how to access anti aliasing method of a font with CSS
Posted
by
Daniel Ramirez-Escudero
on Stack Overflow
See other posts from Stack Overflow
or by Daniel Ramirez-Escudero
Published on 2012-09-29T21:36:30Z
Indexed on
2012/09/29
21:37 UTC
Read the original article
Hit count: 279
I've had this problem in a lot of different webs. You have a font which has different anti-aliasing options, the designer uses the same font with different anti-aliasing options on different parts of the text on the web. So there is a difference between some elements.
In this case I have sharp, crisp, strong and smooth. I've used a font generator to get the code to access it via @font-face. Even so, I also have the original .otf if important to know. Is there a method to access this?
I upload a picture of what I mean and my actual code:
![@font-face {
font-family: 'light';
src: url('../_fnt/light/gothamrnd-light.eot');
src: url('../_fnt/light/gothamrnd-light.eot?#iefix') format('embedded-opentype'),
url('../_fnt/light/gothamrnd-light.woff') format('woff'),
url('../_fnt/light/gothamrnd-light.ttf') format('truetype'),
url('../_fnt/light/gothamrnd-light.svg#../_fnt/light/gothamrnd-light') format('svg');
font-weight: normal;
font-style: normal;
}]![enter image description here][1]
© Stack Overflow or respective owner