Skip to content

Possible bug in defconAppKit.representationFactories.glyphCellFactory #31

@RafalBuchner

Description

@RafalBuchner

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions