Skip to content

Instantly share code, notes, and snippets.

@tfidfwastaken
Last active July 23, 2018 10:15
Show Gist options
  • Save tfidfwastaken/8889c422686a4b5a442bd118201240ab to your computer and use it in GitHub Desktop.
Save tfidfwastaken/8889c422686a4b5a442bd118201240ab to your computer and use it in GitHub Desktop.
Spice up your boring life by tackling it’s root cause — overused boring fonts. Change the src values as required.
/* Killing the WORST offender, the much-beloved Hell-vetica */
@font-face {
font-family: 'Helvetica Neue';
src: local('Nimbus Sans L');
}
@font-face {
font-family: 'Helvetica Neue';
src: local('Nimbus Sans L Bold');
font-weight: bold;
}
@font-face {
font-family: 'Helvetica Neue';
src: local('Nimbus Sans L Italic');
font-style: italic;
}
@font-face {
font-family: Helvetica;
src: local('Nimbus Sans L');
}
@font-face {
font-family: Helvetica;
src: local('Nimbus Sans L Bold');
font-weight: bold;
}
@font-face {
font-family: Helvetica;
src: local('Nimbus Sans L Italic');
font-style: italic;
}
@font-face {
font-family: Arial;
src: local('Nimbus Sans L');
}
@font-face {
font-family: Arial;
src: local('Nimbus Sans L Bold');
font-weight: bold;
}
@font-face {
font-family: Arial;
src: local('Nimbus Sans L Italic');
font-style: italic;
}
/* Times Up! */
@font-face {
font-family: 'Times New Roman';
src: local('IBM Plex Serif');
}
@font-face {
font-family: 'Times New Roman';
src: local('IBM Plex Serif Bold');
font-weight: bold;
}
@font-face {
font-family: 'Times New Roman';
src: local('IBM Plex Serif Italic');
font-style: italic;
}
@font-face {
font-family: 'Times New Roman';
src: local('IBM Plex Serif Bold Italic');
font-style: italic;
font-weight: bold;
}
/* Fixing Courier */
@font-face {
font-family: 'Courier New';
src: local('CourierPrime');
}
@font-face {
font-family: Courier;
src: local('CourierPrime');
}
/* Georgia killer */
@font-face {
font-family: Georgia;
src: local('PT Serif');
}
@font-face {
font-family: Georgia;
src: local('PT Serif Bold');
font-weight: bold;
}
@font-face {
font-family: Georgia;
src: local('PT Serif Italic');
font-style: italic;
}
@font-face {
font-family: Georgia;
src: local('PT Serif Bold Italic');
font-weight: bold;
font-style: italic;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment