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

Possible bug in defconAppKit.representationFactories.glyphCellFactory #31

Open
RafalBuchner opened this issue Sep 16, 2019 · 0 comments

Comments

@RafalBuchner
Copy link

I'm testing some stuff in RoboFont, I think I found the bug:

from vanilla import FloatingWindow, List, ImageListCell
from defconAppKit.representationFactories.glyphCellFactory import GlyphCellFactory

class LastGlyphs:
    rowHeight = 50
    def __init__(self):
        self.w = FloatingWindow((100,100+22),minSize=(100,100),maxSize=(100,5000))
        if CurrentGlyph():
            image = GlyphCellFactory(
                glyph=CurrentGlyph(), 
                width=100, 
                height=self.rowHeight, 
                drawHeader=False, 
                drawMetrics=False
                )
            items = [
                dict(image=image)
                ]
        else:
            items = []
        self.w.glyphView = List((0,0,-0,-0),items,
                            rowHeight=self.rowHeight,
                            columnDescriptions=[
                                {"title": "image", "cell": ImageListCell()}
                            ])
        self.w.open()

if __name__=='__main__':
    LastGlyphs()

for layerName in reversed(layers.layerOrder):

self.font.layer in this line is a tuple. It doesn't have an argument `layerOrder.

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