Skip to content

Instantly share code, notes, and snippets.

@herrernst
Last active June 11, 2019 13:42
Show Gist options
  • Save herrernst/31b75f42bc12acc7c8be70de01ea237a to your computer and use it in GitHub Desktop.
Save herrernst/31b75f42bc12acc7c8be70de01ea237a to your computer and use it in GitHub Desktop.
OTF vs TTF rendering darkness/boldness
<!doctype html>
<title>OTF vs TTF rendering darkness/boldness</title>
<style>
@font-face {
font-family: "SourceSansPro-Regular.otf";
src: url(https://cdn.piraten-tools.de/fonts/source-sans-pro/2.020R-ro-1.075R-it/WOFF/OTF/SourceSansPro-Regular.otf.woff)
}
@font-face {
font-family: "SourceSansPro-Regular.ttf";
src: url(https://cdn.piraten-tools.de/fonts/source-sans-pro/2.020R-ro-1.075R-it/WOFF/TTF/SourceSansPro-Regular.ttf.woff)
}
</style>
<h2>OTF</h2>
<p style="font-family: 'SourceSansPro-Regular.otf'">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<h2>TTF</h2>
<p style="font-family: 'SourceSansPro-Regular.ttf'">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment