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

Not all icons are included #32

Open
Ghostbird opened this issue Dec 5, 2024 · 1 comment
Open

Not all icons are included #32

Ghostbird opened this issue Dec 5, 2024 · 1 comment

Comments

@Ghostbird
Copy link

We recently ran into an issue where our MAUI app that uses the TTF file from MaterialDesign-Webfont the icons, failed to render specific icons. When I inspected the TTF file using gnome-font-viewer it states that the font contains 7431 glyps rather than 7447. A few icons such as the basic circle are missing.

Oddly, when I manually download @mdi/svg and manually (see #31) run this code on it on it, I end up with a font with 7468 glyphs. It has somehow added:

  • All 26 standard ascii lowercase letters
  • The 10 arabic numerals
  • The underscore character

Which means that it actually has generated only 7468-37=7431 icon glyphs and the circle icon is still missing.

Also reported as Templarian/MaterialDesign-Webfont#100

@Ghostbird
Copy link
Author

Ghostbird commented Dec 5, 2024

I've done some analysis and these are my conclusions:

  • Oddly when I extract the icons from the font file that claims to have 7431 glyphs, I get only 7430 glyph names.
  • When I analyse the name differences between the SVGs and the 7430 extracted from the webfont there are 17 missing icons:
cards-heart
cards-heart-outline
circle
circle-outline
login-variant
minus-thick
music-note-eighth
navigation-variant
numeric-0
numeric-0-circle
numeric-0-circle-outline
radiobox-blank
roman-numeral-1
roman-numeral-10
roman-numeral-5
size-l
terrain

I've ascertained that these icons are present in the meta.json of the @mdi/svg package. There's nothing noticeably about their metadata that sets them apart from other icons either.

@Ghostbird Ghostbird changed the title Not all SVGs are included Not all icons are included Dec 5, 2024
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