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

[colorLib] More optimized LayerList builder #3250

Open
behdad opened this issue Aug 7, 2023 · 0 comments
Open

[colorLib] More optimized LayerList builder #3250

behdad opened this issue Aug 7, 2023 · 0 comments
Assignees

Comments

@behdad
Copy link
Member

behdad commented Aug 7, 2023

Currently the code adds base paints to the layer list in order of the glyph index. It would share better if it did that by decreasing number of layers. The code is in buildColrV1:

    for baseGlyph, paint in colorGlyphItems: 
        try: 
            baseGlyphs.append(buildBaseGlyphPaintRecord(baseGlyph, layerBuilder, paint)) 
    
        except (ColorLibError, OverflowError, ValueError, TypeError) as e: 
            errors[baseGlyph] = e 
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

Successfully merging a pull request may close this issue.

2 participants