-
Notifications
You must be signed in to change notification settings - Fork 9
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
loadFonts / logger issue with 1.13.2 #68
Comments
Hm. It doesn't have a logger when it expects one. In your code, could it be the A logger is created when I suppose |
Alternatively, |
As a workaround, before this gets to a RF near you, if this is a scripted context, you can call |
Alternative workaround, DSE could start the logger on a UFOProcessor that gets handed to a script. |
Thanks for looking at this! Woops, it looks like I did have a A simplified version of the code I was running: from ufoProcessor.ufoOperator import UFOOperator
from fontParts.world import OpenFont, RFont, RGlyph
def make_one_glyph(ds, g_name, location):
g = RGlyph()
ds.debug = True # Maybe it wasn't working at some point and then I decided to add this line?
interp_g = ds.makeOneGlyph(g_name, location, decomposeComponents=True, useVarlib=False, roundGeometry=False, clip=False)
if interp_g:
g.fromMathGlyph(interp_g, filterRedundantPoints=True)
g.width = interp_g.width
return g
ds_paths = ['/path/to.designspace']
for ds_path in ds_paths:
ds = UFOOperator(ufoVersion=3, useVarlib=False)
ds.read(ds_path)
# Good time to load fonts?
ds.loadFonts()
for source in ds.sources:
source_f = OpenFont(source.path, showInterface=False)
location = source.getFullDesignLocation(ds)
g = make_one_glyph(ds, "H", location) |
This script works with the new release. |
Thank you! |
Thanks for the test! |
I encountered an issue with ufoOperator when I started using a virtual environment and installed the package via pip. Previously, the script ran without problems outside the venv. It appears I was using ufoProcessor 1.13.1. With version 1.13.2, I'm not exactly sure what the problem is, but I received errors concerning loadFonts and logger. The problem disappeared after I downgraded back to version 1.13.1.
Here's an example of the error I was getting.
The text was updated successfully, but these errors were encountered: