Skip to content

Fixes #5332: glyph file names uXXXXX#5333

Merged
skef merged 1 commit intofontforge:masterfrom
quadrimus:fix-5332-glyph-file-names-uxxxxx
Jan 4, 2024
Merged

Fixes #5332: glyph file names uXXXXX#5333
skef merged 1 commit intofontforge:masterfrom
quadrimus:fix-5332-glyph-file-names-uxxxxx

Conversation

@quadrimus
Copy link
Copy Markdown
Contributor

@quadrimus quadrimus commented Jan 1, 2024

If font is saved in .sfdir, glyphs with code point > 0xFFFF and last digit value > 9 are saved correctly as uXXXXX.glyph instead of uXXXX_X.glyph.

Type of change

  • Bug fix
  • Breaking change?
    • Existed glyphs are saved to new file.

Closes #5332

@iorsh
Copy link
Copy Markdown
Contributor

iorsh commented Jan 4, 2024

Looks good to me. @skef, could you please check?

Copy link
Copy Markdown
Contributor

@skef skef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@skef skef merged commit 1926b35 into fontforge:master Jan 4, 2024
@quadrimus quadrimus deleted the fix-5332-glyph-file-names-uxxxxx branch June 9, 2024 08:22
Copy link
Copy Markdown

@younessuasfio-ai younessuasfio-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

} else if ( name[0]=='u' && ishexdigit(name[1]) && ishexdigit(name[2]) &&

Comment thread fontforge/sfd.c
@@ -1837,8 +1837,8 @@ static void appendnames(char *dest,char *dir,const char *dir_char,char *name,con
} else if ( name[0]=='u' && ishexdigit(name[1]) && ishexdigit(name[2]) &&
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gtj

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

} else if ( name[0]=='u' && ishexdigit(name[1]) && ishexdigit(name[2]) &&

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 this pull request may close these issues.

Glyph file names uXXXXX are malformed in some cases

4 participants