Repository navigation
Fix version scheme: 3-digit fraction, not 4 - #353
Merged
Merged
Conversation
head.fontRevision is a Fixed 16.16 number, not a string - it genuinely cannot distinguish "1.480" from "1.4800", so the previous 4-digit scheme's build number was never actually recoverable once written. Every tool that reads fontRevision back rounds/truncates to the ecosystem's standard 3 digits, so what shipped as 1.4900 reports back as 1.490 in third-party tooling. See steinbergmedia/bravura#102. New scheme: stem is one digit (e.g. "1.4"), build is two digits (00-99), giving exactly a 3-digit fraction. Starting build at 80 rather than 0 keeps this first release under the new scheme numerically above the last real release under the old numbering (1.456), so nothing mistakes it for a downgrade, while still leaving 20 revisions of headroom before the next stem bump. First version under the corrected scheme: 1.480.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
`head.fontRevision` is a Fixed 16.16 number, not a string - it genuinely cannot distinguish `1.480` from `1.4800`. The previous 4-digit scheme's trailing "build" digit was never actually recoverable once written to the binary; every tool that reads `fontRevision` back rounds/truncates to the ecosystem's standard 3 digits (confirmed: our own 1.4900 build's raw fontRevision reports as 1.490 via third-party tooling). See steinbergmedia/bravura#102.
New scheme: `stem` is one digit (e.g. `"1.4"`), `build` is two digits (00-99), giving exactly a 3-digit fraction - `stem "1.4" + build 80 => "1.480"`. Starting `build` at 80 rather than 0 for this stem keeps the first release under the corrected scheme numerically above the last real release under the old numbering (1.456), so nothing mistakes it for a downgrade, while still leaving 20 revisions of headroom before the next stem bump.
Test plan