Skip to content

Commit

Permalink
fix issues 555, 792
Browse files Browse the repository at this point in the history
Add/repair formatting for tremolo and grace notes for some fonts
  • Loading branch information
AaronDavidNewman committed Oct 24, 2021
1 parent 95b7230 commit 47a2150
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 33 deletions.
20 changes: 10 additions & 10 deletions src/fonts/gonville_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,20 @@ export const GonvilleMetrics = {

tremolo: {
default: {
point: 40,
point: 25,
spacing: 4,
offsetYStemUp: -9,
offsetYStemDown: -21,
offsetXStemUp: 6,
offsetXStemDown: -2,
offsetYStemUp: -17,
offsetYStemDown: -2,
offsetXStemUp: 9,
offsetXStemDown: -0.5,
},
grace: {
point: 30,
point: 15,
spacing: 4,
offsetYStemUp: -9,
offsetYStemDown: -21,
offsetXStemUp: 6,
offsetXStemDown: -2,
offsetYStemUp: -17,
offsetYStemDown: -2,
offsetXStemUp: 6.5,
offsetXStemDown: -0.5,
},
},

Expand Down
28 changes: 5 additions & 23 deletions src/fonts/petaluma_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ export const PetalumaMetrics = {
spacing: 5,
offsetYStemUp: -5,
offsetYStemDown: 5,
offsetXStemUp: 11,
offsetXStemUp: 13,
offsetXStemDown: 1,
},
grace: {
point: 18,
spacing: 4,
offsetYStemUp: -5,
offsetYStemDown: 5,
offsetXStemUp: 7,
offsetXStemUp: 8,
offsetXStemDown: 1,
},
},
Expand Down Expand Up @@ -302,31 +302,13 @@ export const PetalumaMetrics = {
minPadding: 2,
standard: {
noteheadBlackStemUp: {
shiftX: 1.625,
point: 34,
},
noteheadBlackStemDown: {
point: 34,
shiftX: 1.625
},
noteheadHalfStemUp: {
shiftX: 1.725,
point: 34,
},
noteheadHalfStemDown: {
point: 34,
shiftX: 1.725
},
noteheadWholeStemUp: {
shiftX: 1,
point: 34,
},
noteheadWholeStemDown: {
point: 34,
},
restQuarterStemUp: {
point: 35,
},
restQuarterStemDown: {
point: 35,
shiftX: 1
},
},
custom: {
Expand Down

0 comments on commit 47a2150

Please sign in to comment.