googlefonts / spacemono

Original monospace display typeface family
https://fonts.google.com/specimen/Space+Mono
SIL Open Font License 1.1
367 stars 23 forks source link

Change ligation and alternate forms so they are not enabled by default #2

Open InsomniacSoftware opened 8 years ago

InsomniacSoftware commented 8 years ago

The Common Ligatures and Contextual Alternate typography features are enabled by default (at least they are on OSX). With these options enabled, users will be confused when certain glyphs are changed and most will not know how to disable them.

Since SpaceMono is a nice font for programmers, having these features enabled could cause code failures.

So that they will not be enabled by default, but are available to users that wish to use them, this PR is to

Also made some minor changes required for making the ttf files or that threw warnings.

davelab6 commented 8 years ago

@InsomniacSoftware thanks for this! I chatted to the Colophon team and we all agree this is a good change to make in an upcoming update.

amckinlay commented 6 years ago

@davelab6 This PR is over a year old. Where is the Colophon team?

hpapazian commented 6 years ago

@amckinlay Don't hold your breath. I don't think my suggestion from 8/2016* which was supposedly accepted by Colophon ever got implemented. In fact Colophon blocked me on Twitter as a result...

davelab6 commented 6 years ago

Thanks for the ping on this. I can't give a specific timeline but I do expect this to ship.

bluefish6 commented 3 years ago

@davelab6 any update on this?

marcelluseasley commented 2 years ago

https://github.com/ToxicFrog/Ligaturizer/releases This repo has it corrected.

AntoineKM commented 1 year ago

It would be so nice if @davelab6 could merge this pull request and update this cool font so we could all use it without problems 🥹

rpearce commented 1 year ago

Since it's been almost 7 years since this was opened, we can probably all assume that @davelab6 won't be able to get this merged, so here is what I do when I use Space Mono:

:root {
  font-feature-settings: "liga" 0;
}

and for dynamically fetching, like with document.fonts.add(someFontFace), I do this before adding the font:

const rootStyle = document.querySelector(':root').style;

// Sets my CSS variable for the body font family
rootStyle.setProperty('--type-family-body', `${family}, monospace`);

// Remove when https://github.com/googlefonts/spacemono/pull/2 is resolved
if (family === 'Space Mono') {
  rootStyle.setProperty('font-feature-settings', '"liga" 0');
} else {
  rootStyle.removeProperty('font-feature-settings');
}

I hope this helps somebody!

hpapazian commented 1 year ago

And maybe in another seven years Colophon will provide alternatives to the texture-decimating "M" and "W"...