ERROR: Font has neither StemSnapV nor StdVW!
ERROR: Font has neither StemSnapV nor StdVW!
if hasattr(privateDict, "StemSnapV"): vstems = privateDict.StemSnapV elif hasattr(privateDict, "StdVW"): vstems = [privateDict.StdVW] else: if allow_no_blues: # dummy value. Needs to be #larger than any hint will likely be, # as the autohint program # strips out any hint wider than twice # the largest global stem width. vstems = [upm] else: raise FontParseError( "Font has neither StemSnapV nor StdVW!")
psautohint/otfFont.py at master · adobe-type-tools/psautohint · GitHub
def getFontInfo(self, allow_no_blues, noFlex, vCounterGlyphs, hCounterGlyphs, fdIndex=0):
def get_fontinfo_list_withFDArray( options, font, glyph_list, is_var=False): lastFDIndex = None fontinfo_list = {} for name in glyph_list: # get new fontinfo string # if FDarray index has changed, # as each FontDict has # different alignment zones. fdIndex = font.getfdIndex(name) if not fdIndex == lastFDIndex: lastFDIndex = fdIndex fddict = font.getFontInfo( options.allow_no_blues, options.noFlex, options.vCounterGlyphs, options.hCounterGlyphs, fdIndex) fontinfo = fddict.getFontInfo() fontinfo_list[name] = (fontinfo, None, None) return fontinfo_list
psautohint/autohint.py at master · adobe-type-tools/psautohint · GitHub