alphagov / govuk-frontend

GOV.UK Frontend contains the code you need to start building a user interface for government platforms and services.
https://frontend.design-system.service.gov.uk/
MIT License
1.16k stars 319 forks source link

Provide an option to disable font smoothing #2087

Closed adityapahuja closed 3 years ago

adityapahuja commented 3 years ago

Related component

GOV.UK Typography (font smoothing)

Context

Currently, GOV.UK Typography is using the following settings taken from govuk-frontend/src/govuk/helpers/_typography.scss.

@mixin govuk-typography-common($font-family: $govuk-font-family) {
  font-family: $font-family;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  ...
}

It makes the text appear blurry on external monitors (1920x1200 or less). Updating these settings to disable font smooth makes the text appear sharp and clear on the external monitors. It would be good to have an option to allow us to disable font smoothing on a website. Please see the screenshot below. On the left hand side, the website has font smoothing enabled. On the right hand side, the website has font smoothing disabled.

Alternatives

There are no workarounds. Disabling anti-aliasing or font smoothing option in a browser does not affect a website using GOV.UK typography.

Additional information (if applicable)

A user doesn't like reading blurry text and copies the text from the website into a word processor to read instead of the website.

timpaul commented 3 years ago

Hi @adityapahuja - thanks for the feedback.

We discussed this as a team and agreed that we wouldn't want to make this a configurable option for service teams, as it's unlikely to impact one service more or less than another.

As we've not had users complain about font smoothing before, we'll leave this for now, unless we get similar feedback in the future.

Thanks again