Skip to content

Version not set in CFFFont table #104

Open
@alerque

Description

@alerque

For fonts with CFF subroutines, there is a CFFFont element with a version property. This value is not getting set by font-v to match the surrounding font version.

For example here is a (simplified) diff of a font in the Libertinus font project with the version set by it's old internal build script and now my trying to build the same sources without inputting a version and setting the version later with font-v:

--- /home/caleb/scratch/Libertinus-6.12/LibertinusSans-Italic.otf	2020-06-28T15:56:49+03:00
+++ LibertinusSans-Italic.otf	2020-08-18T12:47:49.742210+03:00
@@ -2433,13 +2433,13 @@
   <head>
     <!-- Most of this table will be recalculated by the compiler -->
     <tableVersion value="1.0"/>
-    <fontRevision value="6.12"/>
-    <checkSumAdjustment value="0x30ef053d"/>
+    <fontRevision value="7.000"/>
+    <checkSumAdjustment value="0x4ed7a053"/>
     <magicNumber value="0x5f0f3cf5"/>
     <flags value="00000000 00000011"/>
     <unitsPerEm value="1000"/>
@@ -6966,7 +6966,7 @@
     <major value="1"/>
     <minor value="0"/>
     <CFFFont name="LibertinusSans-Italic">
-      <version value="6.120"/>
+      <version value="1.0"/>
       <Copyright value="Copyright Copyright 2012-2020 The Libertinus Project Authors."/>
       <FullName value="Libertinus Sans Italic"/>
       <FamilyName value="Libertinus Sans"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions