Skip to content

Commit 9913792

Browse files
committed
Fill sfntRevision with our version
[why] We fill the PS version and the SFNT version strings with our version/release number. But the SFNT revision is not updated. This went unnoticed because we always want(ed) the same revision number as already set by Microsoft. [how] The SFNT revision consists of two integers. Instead of setting them directly somehow from our version string we let fontforge do the job of guessing and fiddling. If the sfntRevsison is unset fontforge will regenerate a new one based on the other version strings. [note] Also output the version to the console so that we can check the git tag mechanism easily. (The version is taken from the (last) git tag.) Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
1 parent a871ae7 commit 9913792

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rename-font

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ delugia.appendSFNTName("English (US)", "Trademark", "")
2929
delugia["grave"].glyphclass="baseglyph"
3030

3131
# Mix our version information in
32+
delugia.sfntRevision = None # Auto-set (refreshed) by fontforge
3233
delugia.appendSFNTName("English (US)", "Version", args.version)
3334
delugia.version = args.version
3435

3536
# Save
3637
delugia.generate(args.output)
38+
print("Generated '{}' from {} version {}".format(args.output, args.name, args.version))

0 commit comments

Comments
 (0)