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

Delete glyph #782

Open
qxygene1 opened this issue Jan 8, 2025 · 0 comments
Open

Delete glyph #782

qxygene1 opened this issue Jan 8, 2025 · 0 comments

Comments

@qxygene1
Copy link

qxygene1 commented Jan 8, 2025

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

  • Version used:
  • Font used:
  • Browser Name and version:
  • Operating System and version (desktop or mobile):
  • Link to your project:

Not able to remove glyph with index;

code so far;

    for (let i = 0; i < font.glyphs.length; i++) {
        let glyph = font.glyphs.get(i);
        //console.log(glyph);
        if (glyph.index === 15) {
            //glyph = null;
            //delete window.glyph;
            //glyph.splice(i, 1);
            console.log(glyph);
        }
    }
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