0

I have a big problem in css with the font Open Sans

The issue is that I wanna see a phrase in white color with (light) open sans font, instead it appears bold only when using white color ! However when I write the same phrase in black or other color it appears light. Any ideas ?

here is the code in this link :

http://shrib.com/ILjxuPtM

Test it please, and tell me what's wrong.

2 Answers2

0

Here is an article about font rendering.

CSS color is another factor. Varying contrast between text color and background color can significantly change how type looks. Lower contrast means that anti-aliasing appears more subtle — the graded steps from foreground (type color) to background are less dramatic.

Light-on-dark text tends to look thicker than dark-on-light, so lower contrast makes an even bigger difference in these cases.

I guess you can simply use the font-weight property to adjust the font.

Community
  • 1
  • 1
bukka
  • 4,973
  • 3
  • 19
  • 21
  • Thank you for your answer, I already used the font-weight 300 which is the smalest one, but still no results :s – Hamza Zikoo Mar 21 '13 at 20:25
0

Anti-aliasing on Macs makes light text in Open Sans on a dark background appear bolder. You can adjust the font-smoothing options to something else than sub-pixel to avoid this.

I used Photoshop to stack a layer of dark text on a white background at 50% opacity on top of a layer with the same text, but light on a dark background. As you can see, there is a white fringe around the dark text, which should not be there considering they are equally bold.

kslstn
  • 1,407
  • 1
  • 14
  • 34