Skip to content

Commit

Permalink
Get google font from google fonts
Browse files Browse the repository at this point in the history
and add petaluma text font part to the project.
  • Loading branch information
AaronDavidNewman committed Jul 13, 2020
1 parent 4f0b422 commit a6c4871
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
Binary file added releases/fonts/petalumascript-webfont.woff
Binary file not shown.
Binary file added releases/fonts/petalumascript-webfont.woff2
Binary file not shown.
2 changes: 1 addition & 1 deletion src/chordsymbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class ChordSymbol extends Modifier {
if (this.musicFont.name === 'Petaluma') {
fontFamily = 'petalumaScript,Arial';
} else {
fontFamily = 'robotoSlab,Times';
fontFamily = 'Roboto Slab,Times';
}
this.font = {
family: fontFamily,
Expand Down
15 changes: 6 additions & 9 deletions tests/flow.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@

/* petaluma text font not available from webfont cdn that I know of, so get it
fron the project
*/
@font-face {
font-family: 'petalumaScript';
src: url('https://aarondavidnewman.github.io/Smoosic/build/styles/fonts/petalumascript-webfont.woff2') format('woff2'),
url('https://aarondavidnewman.github.io/Smoosic/build/styles/fonts/petalumascript-webfont.woff') format('woff');
src: url('../releases/fonts/petalumascript-webfont.woff2') format('woff2'),
url('../releases/fonts/petalumascript-webfont.woff') format('woff');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'robotoSlab';
src: url('https://aarondavidnewman.github.io/Smoosic/build/styles/fonts/robotoslab-webfont.woff2') format('woff2'),
url('https://aarondavidnewman.github.io/Smoosic/build/styles/fonts/robotoslab-webfont.woff') format('woff');
font-weight: 500;
font-style: normal;
font-family: 'Roboto Slab', serif;
}

body {
padding: 20px;
font-family: Arial, sans-serif;
Expand Down
1 change: 1 addition & 0 deletions tests/flow.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<!-- Test Dependencies: jQuery, QUnit -->
<link rel="stylesheet" href="support/qunit.css" type="text/css" media="screen" />
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@500&display=swap" rel="stylesheet">
<script src="support/jquery.js"></script>
<script src="support/qunit.js"></script>

Expand Down

0 comments on commit a6c4871

Please sign in to comment.