Ghost icon indicating copy to clipboard operation
Ghost copied to clipboard

Web fonts are aliased in Chrome on Windows

Open pmanijak opened this issue 12 years ago • 3 comments

Web fonts like 'Open Sans' tend to be aliased on Chrome on Windows, making them harder to read than we would like. This is a well-known issue with Chrome, and it can be worked around a little bit by modifying the -webkit-text-stroke CSS property.

To show an example, here are before and after screenshots of the following style sheet applied on top of the Ghost default:

.rendered-markdown, .content-preview, .markdown-help-container {
    -webkit-text-stroke: 0.6px;
}

.content-preview h1, .markdown-help-container th {
    -webkit-text-stroke: 0.1px;
}

.content-preview h2 {
    -webkit-text-stroke: 0.3px;
}

Before: before

After: after

Care should be taken to not be overzealous with this property, however, as a wide stroke can lead to heavy shadowing and blurriness.

Ghost: 0.3.3 Browser: Chrome: 31.0.1650.63 m OS: Windows 7 SP1

pmanijak avatar Dec 19 '13 20:12 pmanijak

I absolutely love this - I would like to get it in core by default. Need to research if we need some conditional checks on browser-feature/OS (modernizr?).

Putting it straight on the 0.5 milestone

JohnONolan avatar Dec 19 '13 20:12 JohnONolan

Not sure if this helps here but it's somewhat relevant and might be worth implementing: https://github.com/bramstein/trmix/

kcombs avatar Jan 10 '14 01:01 kcombs

Moved to https://github.com/TryGhost/Ghost-UI/issues/41

JohnONolan avatar Jun 24 '14 12:06 JohnONolan