Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I've read this , but didn't actually provide a solution, and the issue was reversed from my problem.

So I'm using Roboto Slab with 400 weight, 1em size, which renders nicely on Windows but incredibly thick on OS X.

I only realised this when I bought a MacBook Air.

Is there a way I can reduce the weight if a user is viewing on OS X? Or something like em (vs px) for weight?

The accepted answer for this question should help you out. Quite a bit of extra work for just the font weight, but if nothing else works for you it might be worth a try: stackoverflow.com/questions/10247648/… Dryden Long Dec 16, 2013 at 17:41 That site suggests instead using a different tool which not only appears to offer browser detection, not OS detection, but also says not to use it. Huh. OJFord Dec 16, 2013 at 17:55 The reason it says that is because the writer didn't feel like keeping up with the constant browser/OS updates. Using navigator.platform or navigator.userAgent can get you the info on what system is being used to view your page. Like I said, probably a lot of work, but if you're hell bent on making it happen, this is the only way I know of... Dryden Long Dec 16, 2013 at 18:03

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .