Skip to content

Commit

Permalink
Replaces Typography .ttf files for .woff2
Browse files Browse the repository at this point in the history
This commit replaces font .ttf files for .woff2 and the related changes on the less files.

Signed-off-by: Ricardo Baeta <[email protected]>
Signed-off-by: Maxim Sukharev <[email protected]>
  • Loading branch information
ricardobaeta authored and smacker committed Jun 14, 2019
1 parent ec5d9ed commit 0414d65
Show file tree
Hide file tree
Showing 48 changed files with 74 additions and 33 deletions.
36 changes: 25 additions & 11 deletions srcd/superset/assets/src/uast/codemirror_override.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,31 @@ http://ethanschoonover.com/solarized/img/solarized-palette.png

@font-face {
font-family: "Source Code Pro";
src: url("../../stylesheets/fonts/SourceCodePro-Black.ttf") format("truetype");
src: url("../../stylesheets/fonts/SourceCodePro-Bold.ttf") format("truetype");
src: url("../../stylesheets/fonts/SourceCodePro-ExtraLight.ttf")
format("truetype");
src: url("../../stylesheets/fonts/SourceCodePro-Light.ttf") format("truetype");
src: url("../../stylesheets/fonts/SourceCodePro-Medium.ttf")
format("truetype");
src: url("../../stylesheets/fonts/SourceCodePro-Semibold.ttf")
format("truetype");
src: url("../../stylesheets/fonts/SourceCodePro-Regular.ttf")
format("truetype");
src: url("../../stylesheets/fonts/SourceCodePro-Medium.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-Black.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-Bold.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-LightIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-Semibold.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-BoldIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-It.otf.woff2") format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-BlackIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-MediumIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-ExtraLight.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-ExtraLightIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-Light.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceCodePro-Regular.otf.woff2")
format("woff2");
}

.CodeMirror * {
Expand Down
27 changes: 24 additions & 3 deletions srcd/superset/assets/src/uast/override.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,30 @@ html {
//## Font, line-height, and color for body text, headings, and more.

@font-face {
font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
src: url("../../stylesheets/fonts/SourceSansPro-Regular.ttf")
format("truetype");
font-family: "Source Sans Pro";
src: url("../../stylesheets/fonts/SourceSansPro-Black.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-BlackIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-Bold.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-BoldIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-ExtraLight.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-ExtraLightIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-It.otf.woff2") format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-Light.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-LightIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-Semibold.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-SemiboldIt.otf.woff2")
format("woff2");
src: url("../../stylesheets/fonts/SourceSansPro-Regular.otf.woff2")
format("woff2");
}

@font-family-sans-serif: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
44 changes: 25 additions & 19 deletions srcd/superset/assets/stylesheets/less/custom-brand.less
Original file line number Diff line number Diff line change
Expand Up @@ -63,29 +63,35 @@

@font-face {
font-family: "Source Sans Pro";
src: url("../fonts/SourceSansPro-Black.ttf") format("truetype");
src: url("../fonts/SourceSansPro-BlackItalic.ttf") format("truetype");
src: url("../fonts/SourceSansPro-Bold.ttf") format("truetype");
src: url("../fonts/SourceSansPro-BoldItalic.ttf") format("truetype");
src: url("../fonts/SourceSansPro-ExtraLight.ttf") format("truetype");
src: url("../fonts/SourceSansPro-ExtraLightItalic.ttf") format("truetype");
src: url("../fonts/SourceSansPro-Italic.ttf") format("truetype");
src: url("../fonts/SourceSansPro-Light.ttf") format("truetype");
src: url("../fonts/SourceSansPro-LightItalic.ttf") format("truetype");
src: url("../fonts/SourceSansPro-SemiBold.ttf") format("truetype");
src: url("../fonts/SourceSansPro-SemiBoldItalic.ttf") format("truetype");
src: url("../fonts/SourceSansPro-Regular.ttf") format("truetype");
src: url("../fonts/SourceSansPro-Black.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-BlackIt.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-Bold.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-BoldIt.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-ExtraLight.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-ExtraLightIt.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-It.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-Light.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-LightIt.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-Semibold.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-SemiboldIt.otf.woff2") format("woff2");
src: url("../fonts/SourceSansPro-Regular.otf.woff2") format("woff2");
}

@font-face {
font-family: "Source Code Pro";
src: url("../fonts/SourceCodePro-Black.ttf") format("truetype");
src: url("../fonts/SourceCodePro-Bold.ttf") format("truetype");
src: url("../fonts/SourceCodePro-ExtraLight.ttf") format("truetype");
src: url("../fonts/SourceCodePro-Light.ttf") format("truetype");
src: url("../fonts/SourceCodePro-Medium.ttf") format("truetype");
src: url("../fonts/SourceCodePro-Semibold.ttf") format("truetype");
src: url("../fonts/SourceCodePro-Regular.ttf") format("truetype");
src: url("../fonts/SourceCodePro-Medium.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-Black.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-Bold.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-LightIt.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-Semibold.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-BoldIt.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-It.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-BlackIt.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-MediumIt.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-ExtraLight.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-ExtraLightIt.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-Light.otf.woff2") format("woff2");
src: url("../fonts/SourceCodePro-Regular.otf.woff2") format("woff2");
}

@font-family-sans-serif: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
Expand Down

0 comments on commit 0414d65

Please sign in to comment.