Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Font smooth

Featured Replies

I sort of asked this question in another area. Let me rephrase it here....

Does such a css hack exist that can enable font-smoothing in Firefox / Chrome / Safari / Opera? Either as a tag to place around a single element or as custom css. If css where is it placed? Between the <head> tags?

 

I thank you for your time as I'm working on a redesign of my site (if you remember, it was hideous) but Open-Sans / Tenor-Sans is somewhat grainy in all browswers except IE - as usual with all fonts and I'd like to know the trick to get them to be smooth.

 

Thank you in advance.

As said in the previous thread

    -webkit-font-smoothing: antialiased;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
    text-rendering: optimizeLegibility;

works, but only for Chrome. Font smoothing (AFAIK) was removed from the general CSS spec and only chrome includes the above. I think Chrome is usually the only browser known for badly rendered fonts anyway.

 

How are you implementing the font?

  • Author

So you said to place

 

<style>

html, html a {

-webkit-font-smoothing: antialiased;

text-shadow: 1px 1px 1px rgba(0,0,0,0.05);

text-rendering: optimizeLegibility;

< /style>

 

between the <head> tags?

 

In preview - Not that its that bad, just not as crisp as IE. Downloaded the font, the builder recognizes it, I choose it like any other internally used font.

I still don't see a difference with or without the code. If the code doesn't work in Firefox, then I suppose it would be futile to even try. Not a big deal. One can hope....

 

Thank you for your help. : - )

Its better to use an external css stylesheet

<link rel="stylesheet" href="style.css">

 

Your fonts shouldn't be especially grainy though. Tenor Sans looks perfectly crisp on my Mac using Firefox. Could it be your screen?

afaik mac's superior font hinting works across all browsers (at the system level?) but on windows chrome really, really sucks, firefox and opera however should be pretty ok so a link to the page would be interesting to see what's happening. possibly a rounding error or inconsistency? like if it's coming out at say 15.66 px or something.

 

have you checked your cleartype settings?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.