Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Harrisonbro/7484704 to your computer and use it in GitHub Desktop.
Save Harrisonbro/7484704 to your computer and use it in GitHub Desktop.
var subpixelWordSpacing = false;
if (document.defaultView && document.defaultView.getComputedStyle) {
var originalSpacing = document.defaultView.getComputedStyle(document.documentElement, null).wordSpacing;
document.documentElement.style.wordSpacing = '0.5px';
subpixelWordSpacing = document.defaultView.getComputedStyle(document.documentElement, null).wordSpacing === '0.5px';
document.documentElement.style.wordSpacing = originalSpacing;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment