Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-integer axis mapping: Error: Base master not found #1078

Open
hyvyys opened this issue Mar 14, 2024 · 0 comments
Open

Non-integer axis mapping: Error: Base master not found #1078

hyvyys opened this issue Mar 14, 2024 · 0 comments

Comments

@hyvyys
Copy link

hyvyys commented Mar 14, 2024

With the following axis entry in a DesignSpace file produced by FontLab 8:

  <axis minimum="100" maximum="1000" name="weight" default="767.716" tag="wght">
   <labelname xml:lang="en">Weight</labelname>
   <map input="100" output="100"/>
   <map input="200" output="127"/>
   <map input="300" output="164"/>
   <map input="400" output="210"/>
   <map input="500" output="271"/>
   <map input="600" output="348"/>
   <map input="700" output="447"/>
   <map input="767.716" output="533"/>
   <map input="800" output="574"/>
   <map input="900" output="737"/>
   <map input="1000" output="900"/>
  </axis>

with gftools 0.9.30, I'm getting the following error:

Generating fonts from Designspace failed: Base master not found.

Correcting the entry to the following (eliminating fractional mappings so that only integers are used), I get a correct build.

  <axis minimum="100" maximum="1000" name="weight" default="768" tag="wght">
   <labelname xml:lang="en">Weight</labelname>
   <map input="100" output="100"/>
   <map input="200" output="127"/>
   <map input="300" output="164"/>
   <map input="400" output="210"/>
   <map input="500" output="271"/>
   <map input="600" output="348"/>
   <map input="700" output="447"/>
   <map input="768" output="533"/>
   <map input="800" output="574"/>
   <map input="900" output="737"/>
   <map input="1000" output="900"/>
  </axis>
 </axes>

Can the mapping contain fractions by spec, or should I raise an issue with the FontLab team?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant