Closed devosb closed 2 years ago
@mhosken Can we get this fixed ASAP please?
I think this is fixed in https://github.com/silnrsi/smith/commit/f27aedfbe3042e4fd1c589c22f0d39eb3675c4cb (which is on the manifest
branch). This fix might require a change in wscript
so I need to write up how to change wscript
before the branch is merged.
Using Namdhinggo for testing, the fix that I mentioned seems to work. And the fix did not break the Namdhinggo project while the text Master was still in the Designspace file. So the fix in smith can deployed with out breaking projects. Once smith is updated, then the text Master can be removed, and a change in wscript
is required.
cmd('psfchangettfglyphnames ${SRC} ${DEP} ${TGT}', ['source/instances/${DS:FILENAME_BASE}.ufo'])
needs to be
cmd('psfchangettfglyphnames ${SRC} ${DEP} ${TGT}', ['${source}'])
This type of change might be needed for other cmd()
statements.
Closed by merging the manifest
branch into the master branch
, thus picking up the fix.
The reason for needing to use ${source}
is that with the introduction of build caching, ${source}
isn't always ${DS:FILENAME}
as was how things were before ${source}
appeared. So if you keep using ${DS:FILENAME}
you may be referring to the wrong file: an instance that doesn't exist, rather than the master.
Namdhinggo produces a range of weights Regular to ExtraBold instead of multiple RIBBI families. The text Master was removed from the UFOs as it is not needed, and the removal makes it easier to build the project with
fontmake
. Master was also going to be removed from the Designspace file, however, it seems to be needed in thefamilyname
attribute of thesource
tag (lines 22 and 33 at the moment). If the text Master is removed from those locations, then the build with smith fails with the message