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

improve checking of discrete spaces. #12

Open
LettError opened this issue Oct 27, 2023 · 2 comments
Open

improve checking of discrete spaces. #12

LettError opened this issue Oct 27, 2023 · 2 comments

Comments

@LettError
Copy link
Owner

LettError commented Oct 27, 2023

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

@LettError
Copy link
Owner Author

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

@typemytype
Copy link
Collaborator

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()```

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

2 participants