Skip to content

Commit

Permalink
Adjust Petaluma font metrics so that the note heads <=> stem transiti…
Browse files Browse the repository at this point in the history
…ons are

visually smooth.
  • Loading branch information
ronyeh committed Apr 29, 2021
1 parent 120ebe0 commit 4bbf186
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/fonts/petaluma_metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ export const PetalumaMetrics = {
offsetYBaseStemUp: -4,
offsetYBaseStemDown: 4,
},
noteheadHalf: {
offsetYBaseStemDown: 2,
offsetYBaseStemUp: -2,
},
noteheadBlack: {
offsetYBaseStemDown: 2,
offsetYBaseStemUp: -2,
Expand Down Expand Up @@ -261,14 +265,14 @@ export const PetalumaMetrics = {
noteHead: {
standard: {
noteheadBlackStemUp: {
shiftX: 1.5,
shiftX: 1.625,
point: 34,
},
noteheadBlackStemDown: {
point: 34,
},
noteheadHalfStemUp: {
shiftX: 1,
shiftX: 1.725,
point: 34,
},
noteheadHalfStemDown: {
Expand Down

0 comments on commit 4bbf186

Please sign in to comment.