DesignspaceProblems icon indicating copy to clipboard operation
DesignspaceProblems copied to clipboard

improve checking of discrete spaces.

Open LettError opened this issue 2 years ago • 2 comments

DSE reports incompatibilities between glyphs that are in different discrete locations.

LettError avatar Oct 27 '23 07:10 LettError

Check group identities for each discrete location. Now it compares all groups across all discrete locations.

LettError avatar May 15 '24 13:05 LettError

the problems list should be a vanilla List2 where we can insert groups rows:

import vanilla

class Demo:

    def __init__(self):
        self.w = vanilla.Window((300, 150))
        items = [
            vanilla.List2GroupRow("Discrete space: width weight italic 0"),
            "A",
            "B",
            "C",
            "D",
            "E",
            "F",
            vanilla.List2GroupRow("Discrete space: width weight italic 1"),
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7"
        ]
        self.w.list = vanilla.List2(
            "auto",
            items=items,
            allowsGroupRows=True,
            floatsGroupRows=True,
            allowsSorting=False
        )
        rules = [
            "H:|[list]|",
            "V:|[list]|"
        ]
        self.w.addAutoPosSizeRules(rules)
        self.w.open()
        

Demo()```

typemytype avatar May 15 '24 13:05 typemytype