From 4aae3b926d744a16ddd8181132264ca57693d286 Mon Sep 17 00:00:00 2001 From: Daniel Spreadbury Date: Mon, 24 Aug 2026 22:02:53 +0100 Subject: [PATCH] Bravura/Bravura Text 1.482: chord symbol scaling, diamond noteheads, class fixes Bumps to build 82. - Revert the tf_figuredBass-style scaling accidentally applied to csymParensLeftTall/RightTall, csymBracketLeftTall/RightTall, csymParensLeftVeryTall/RightVeryTall, csymAlteredBassSlash, and csymDiagonalArrangementSlash in Bravura Text - only csymMinor (#80) was meant to get the tf_chordSymbols scale. - Rescale the diamond noteheads (U+E0D7-U+E0DE) down to one staff space tall (+-141, allowing a little overshoot for staff line thickness), with zero side bearings and correctly repositioned stem anchors. Supersedes the earlier, oversized pass from #95. - Fix generate_bravura_text.py's standalone CLI always forcing WOFF output regardless of the --output extension, which silently produced a WOFF file with a .otf name - undetectable by fontTools (which auto-sniffs WOFF) but rejected by stricter tools like FontLab. - Add the missing 'accidentals' class to the Extended Helmholtz-Ellis supplement glyphs (U+EE50-EE59) and to accidentalHabaFlatThreeQuarterTonesLower, and fix the optionalGlyphs doc's PUA range typo (U+FFFF -> U+F8FF). Brings in the substance of #361 (fixes #322, #320) rather than merging it separately, since it touches the same metadata/classes.json this PR already regenerates. Co-Authored-By: Claude Sonnet 5 --- data/font-version.yaml | 4 +- data/ranges/chord-symbols.yaml | 16 -- ...ccidentals-just-intonation-supplement.yaml | 10 + data/ranges/other-accidentals-supplement.yaml | 2 + font/Bravura.ufo/fontinfo.plist | 4 +- font/Bravura.ufo/glyphs/uniE_0D_7.glif | 196 +++++++++--------- font/Bravura.ufo/glyphs/uniE_0D_8.glif | 66 +++--- font/Bravura.ufo/glyphs/uniE_0D_9.glif | 66 +++--- font/Bravura.ufo/glyphs/uniE_0D_A_.glif | 66 +++--- font/Bravura.ufo/glyphs/uniE_0D_B_.glif | 58 +++--- font/Bravura.ufo/glyphs/uniE_0D_C_.glif | 58 +++--- font/Bravura.ufo/glyphs/uniE_0D_D_.glif | 68 +++--- font/Bravura.ufo/glyphs/uniE_0D_E_.glif | 70 +++---- mdbook/src/specification/optionalglyphs.md | 2 +- metadata/classes.json | 23 +- tools/generate_bravura_text.py | 13 +- 16 files changed, 363 insertions(+), 359 deletions(-) diff --git a/data/font-version.yaml b/data/font-version.yaml index 9883071f..1ab99bd0 100644 --- a/data/font-version.yaml +++ b/data/font-version.yaml @@ -36,9 +36,9 @@ # the new scheme's first release for a downgrade, while still leaving 20 # revisions (80-99) of headroom before the next stem bump is needed. stem: "1.4" -build: 81 +build: 82 # sha256 of the build inputs as of this version number - see # tools/check_font_version.py. Refresh with: # python3 tools/check_font_version.py --update -inputsHash: "57133899966efb0414a2852874eb2c3a425793fa94c591341c63a036e649e9ff" +inputsHash: "739f73c1d56fc22c39571a3a03754aa36000fae71c60c023d030358bbc407dd6" diff --git a/data/ranges/chord-symbols.yaml b/data/ranges/chord-symbols.yaml index eeaa9c2a..74afbb0b 100644 --- a/data/ranges/chord-symbols.yaml +++ b/data/ranges/chord-symbols.yaml @@ -29,36 +29,20 @@ glyphs: - tf_chordSymbols - name: csymParensLeftTall description: Double-height left parenthesis - classes: - - tf_chordSymbols - name: csymParensRightTall description: Double-height right parenthesis - classes: - - tf_chordSymbols - name: csymBracketLeftTall description: Double-height left bracket - classes: - - tf_chordSymbols - name: csymBracketRightTall description: Double-height right bracket - classes: - - tf_chordSymbols - name: csymParensLeftVeryTall description: Triple-height left parenthesis - classes: - - tf_chordSymbols - name: csymParensRightVeryTall description: Triple-height right parenthesis - classes: - - tf_chordSymbols - name: csymAlteredBassSlash description: Slash for altered bass note - classes: - - tf_chordSymbols - name: csymDiagonalArrangementSlash description: Slash for chord symbols arranged diagonally - classes: - - tf_chordSymbols stylisticAlternates: - for: csymDiminished name: csymDiminishedSmall diff --git a/data/ranges/extended-helmholtz-ellis-accidentals-just-intonation-supplement.yaml b/data/ranges/extended-helmholtz-ellis-accidentals-just-intonation-supplement.yaml index 0b116700..4fb3239d 100644 --- a/data/ranges/extended-helmholtz-ellis-accidentals-just-intonation-supplement.yaml +++ b/data/ranges/extended-helmholtz-ellis-accidentals-just-intonation-supplement.yaml @@ -9,40 +9,50 @@ glyphs: - name: accidentalCombiningLower29LimitComma description: Combining lower by one 29-limit comma classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningRaise29LimitComma description: Combining raise by one 29-limit comma classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningLower37Quartertone description: Combining lower by one 37-limit quartertone classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningRaise37Quartertone description: Combining raise by one 37-limit quartertone classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningLower41Comma description: Combining lower by one 41-limit comma classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningRaise41Comma description: Combining raise by one 41-limit comma classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningLower43Comma description: Combining lower by one 43-limit comma classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningRaise43Comma description: Combining raise by one 43-limit comma classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningLower47Quartertone description: Combining lower by one 47-limit quartertone classes: + - accidentals - accidentalsHelmholtzEllis - name: accidentalCombiningRaise47Quartertone description: Combining raise by one 47-limit quartertone classes: + - accidentals - accidentalsHelmholtzEllis diff --git a/data/ranges/other-accidentals-supplement.yaml b/data/ranges/other-accidentals-supplement.yaml index 7793fc85..51b9052b 100644 --- a/data/ranges/other-accidentals-supplement.yaml +++ b/data/ranges/other-accidentals-supplement.yaml @@ -44,3 +44,5 @@ glyphs: - accidentals - name: accidentalHabaFlatThreeQuarterTonesLower description: Three quarter-tones lower (Alois Hába) + classes: + - accidentals diff --git a/font/Bravura.ufo/fontinfo.plist b/font/Bravura.ufo/fontinfo.plist index 3773fe90..0751f4b8 100644 --- a/font/Bravura.ufo/fontinfo.plist +++ b/font/Bravura.ufo/fontinfo.plist @@ -287,7 +287,7 @@ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, E openTypeNamePreferredSubfamilyName Regular openTypeNameVersion - Version 1.481 + Version 1.482 openTypeOS2Panose 0 @@ -408,7 +408,7 @@ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, E versionMajor 1 versionMinor - 481 + 482 xHeight 275 year diff --git a/font/Bravura.ufo/glyphs/uniE_0D_7.glif b/font/Bravura.ufo/glyphs/uniE_0D_7.glif index 65d12a9a..f6e5632d 100644 --- a/font/Bravura.ufo/glyphs/uniE_0D_7.glif +++ b/font/Bravura.ufo/glyphs/uniE_0D_7.glif @@ -1,117 +1,117 @@ - + - + noteheadDiamondDoubleWhole - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/font/Bravura.ufo/glyphs/uniE_0D_8.glif b/font/Bravura.ufo/glyphs/uniE_0D_8.glif index bb4793b4..961f6191 100644 --- a/font/Bravura.ufo/glyphs/uniE_0D_8.glif +++ b/font/Bravura.ufo/glyphs/uniE_0D_8.glif @@ -1,44 +1,44 @@ - + noteheadDiamondWhole - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + diff --git a/font/Bravura.ufo/glyphs/uniE_0D_9.glif b/font/Bravura.ufo/glyphs/uniE_0D_9.glif index 99994af7..eca73e3b 100644 --- a/font/Bravura.ufo/glyphs/uniE_0D_9.glif +++ b/font/Bravura.ufo/glyphs/uniE_0D_9.glif @@ -1,46 +1,46 @@ - + - + noteheadDiamondHalf - - - - + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/font/Bravura.ufo/glyphs/uniE_0D_A_.glif b/font/Bravura.ufo/glyphs/uniE_0D_A_.glif index 4bda3861..7617521f 100644 --- a/font/Bravura.ufo/glyphs/uniE_0D_A_.glif +++ b/font/Bravura.ufo/glyphs/uniE_0D_A_.glif @@ -1,46 +1,46 @@ - + - + noteheadDiamondHalfWide - - - - + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/font/Bravura.ufo/glyphs/uniE_0D_B_.glif b/font/Bravura.ufo/glyphs/uniE_0D_B_.glif index ae850870..8017c9c5 100644 --- a/font/Bravura.ufo/glyphs/uniE_0D_B_.glif +++ b/font/Bravura.ufo/glyphs/uniE_0D_B_.glif @@ -1,40 +1,40 @@ - + - + noteheadDiamondBlack - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/font/Bravura.ufo/glyphs/uniE_0D_C_.glif b/font/Bravura.ufo/glyphs/uniE_0D_C_.glif index 15dba51e..b15ce3b6 100644 --- a/font/Bravura.ufo/glyphs/uniE_0D_C_.glif +++ b/font/Bravura.ufo/glyphs/uniE_0D_C_.glif @@ -1,40 +1,40 @@ - + - + noteheadDiamondBlackWide - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + diff --git a/font/Bravura.ufo/glyphs/uniE_0D_D_.glif b/font/Bravura.ufo/glyphs/uniE_0D_D_.glif index b6f2684a..e2058536 100644 --- a/font/Bravura.ufo/glyphs/uniE_0D_D_.glif +++ b/font/Bravura.ufo/glyphs/uniE_0D_D_.glif @@ -1,46 +1,46 @@ - + - + noteheadDiamondWhite - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/font/Bravura.ufo/glyphs/uniE_0D_E_.glif b/font/Bravura.ufo/glyphs/uniE_0D_E_.glif index 269ce59e..9ccd2b70 100644 --- a/font/Bravura.ufo/glyphs/uniE_0D_E_.glif +++ b/font/Bravura.ufo/glyphs/uniE_0D_E_.glif @@ -1,46 +1,46 @@ - + - - + + noteheadDiamondWhiteWide - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mdbook/src/specification/optionalglyphs.md b/mdbook/src/specification/optionalglyphs.md index 24d54c0e..6c8e6dbd 100644 --- a/mdbook/src/specification/optionalglyphs.md +++ b/mdbook/src/specification/optionalglyphs.md @@ -1,7 +1,7 @@ ### optionalGlyphs The "optionalGlyphs" structure contains a list of all the optional glyphs -(those in the range of code points U+F400–U+FFFF) contained within the font. +(those in the range of code points U+F400–U+F8FF) contained within the font. Applications that cannot use advanced OpenType features can use this structure to identify the presence of stylistic alternates (though the "glyphsWithAlternates" and "sets" structures also specify the original glyphs diff --git a/metadata/classes.json b/metadata/classes.json index 428d3fe8..89fd5af1 100644 --- a/metadata/classes.json +++ b/metadata/classes.json @@ -460,7 +460,18 @@ "accidentalHabaFlatQuarterToneHigher", "accidentalHabaSharpThreeQuarterTonesHigher", "accidentalHabaQuarterToneLower", - "accidentalHabaSharpQuarterToneLower" + "accidentalHabaSharpQuarterToneLower", + "accidentalCombiningLower29LimitComma", + "accidentalCombiningLower37Quartertone", + "accidentalCombiningLower41Comma", + "accidentalCombiningLower43Comma", + "accidentalCombiningLower47Quartertone", + "accidentalCombiningRaise29LimitComma", + "accidentalCombiningRaise37Quartertone", + "accidentalCombiningRaise41Comma", + "accidentalCombiningRaise43Comma", + "accidentalCombiningRaise47Quartertone", + "accidentalHabaFlatThreeQuarterTonesLower" ], "accidentals24EDOArrows": [ "accidentalQuarterToneFlatArrowUp", @@ -3149,15 +3160,7 @@ "csymHalfDiminished", "csymAugmented", "csymMajorSeventh", - "csymAlteredBassSlash", - "csymBracketLeftTall", - "csymBracketRightTall", - "csymDiagonalArrangementSlash", - "csymMinor", - "csymParensLeftTall", - "csymParensLeftVeryTall", - "csymParensRightTall", - "csymParensRightVeryTall" + "csymMinor" ], "tf_daseianNotation": [ "daseianGraves1", diff --git a/tools/generate_bravura_text.py b/tools/generate_bravura_text.py index 8cb3640c..624c47da 100644 --- a/tools/generate_bravura_text.py +++ b/tools/generate_bravura_text.py @@ -362,11 +362,16 @@ def main(): try: otf_path = build_otf(tmp_dir) - print(f"Converting to WOFF") - ttfont = TTFont(otf_path) - ttfont.flavor = "woff" args.output.parent.mkdir(parents=True, exist_ok=True) - ttfont.save(args.output) + suffix = args.output.suffix.lower() + if suffix in (".woff", ".woff2"): + flavor = suffix.lstrip(".") + print(f"Converting to {flavor.upper()}") + ttfont = TTFont(otf_path) + ttfont.flavor = flavor + ttfont.save(args.output) + else: + shutil.copy(otf_path, args.output) print(f"\nWrote {relpath(args.output)}") return 0