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

Outdated Font Files #786

Open
conner-fallone opened this issue May 21, 2018 · 53 comments
Open

Outdated Font Files #786

conner-fallone opened this issue May 21, 2018 · 53 comments

Comments

@conner-fallone
Copy link

conner-fallone commented May 21, 2018

It looks like there are many newer icons that are missing from the latest font files hosted on the github (https://github.com/google/material-design-icons/tree/master/iconfont). One of these icons includes

arrow_right

It looks like the google web font is updated (https://fonts.gstatic.com/s/materialicons/v37/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2), but that is only the woff2 file. Our project also uses .woff/.ttf/.eot so we would need those files as well. Since we use a local copy of our fonts, switching to the google web font is not an option.

By opening https://fonts.googleapis.com/icon?family=Material+Icons in IE, i was able to get the url to the regular woff file: https://fonts.gstatic.com/s/materialicons/v37/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff

@ianstormtaylor
Copy link

Running into this too, seems like all of the new-ish added ones aren't in the iconfont files. (Or the repository at all potentially?) Would love to have this fixed, or someone from Google explain why. Thanks!

@petergng
Copy link

Took that woff and converted it to ttf. I could build out every weight and style too if someone can find a way to dl all the svg source.

materialicons3.zip

@strxetics
Copy link

is there also a codepoint list?

@BOLL7708
Copy link

BOLL7708 commented Jun 6, 2018

@petergng even if I use your files for self-hosted fonts, I cannot get any of the battery icons with percentages to work, like battery_20 or battery_charging_60. I've tried in Chrome, Edge and Firefox, same thing, just empty spaces. The other battery icons always work though.

@nyankobu010
Copy link

nyankobu010 commented Jun 13, 2018

Ran into this issue today as well, here's the list of fonts for v38 from Google Fonts, just enter them into a browser to download them. Font files are the latest as of 6/13/2018
EOT
https://fonts.gstatic.com/s/materialicons/v38/flUhRq6tzZclQEJ-Vdg-IuiaDsNY.eot
WOFF2
https://fonts.gstatic.com/s/materialicons/v38/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2
WOFF
https://fonts.gstatic.com/s/materialicons/v38/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff
TFF
https://fonts.gstatic.com/s/materialicons/v38/flUhRq6tzZclQEJ-Vdg-IuiaDsNZ.ttf

@SvenBudak
Copy link

@nyankobu010 Thanks but in your Versions is the minimize icon still missing...

@nyankobu010
Copy link

The regular versions of the icon are present but if you're looking for a minimize version, I would just create a custom font with the font files and just declare a specific font size for the icon font family

@font-face {
  font-family: 'Roboto-Min';
  font-style: normal;
  font-size: 5px; //  <-------------- declare the default size
  src: local('Roboto'),
  local('Roboto-Regular'),
  url('./assets/fonts/roboto/Roboto-Regular.eot') format('embedded-opentype'),
  url('./assets/fonts/roboto/Roboto-Regular.ttf') format('truetype'),
  url('./assets/fonts/roboto/Roboto-Regular.woff') format('woff'),
  url('./assets/fonts/roboto/Roboto-Regular.woff2') format('woff2');
}

@xGouley
Copy link

xGouley commented Jun 15, 2018

Thank you, but these versions does not work with battery_20 for example. Still not there?

matthew-ia added a commit to TeamSunergy/chase-ui that referenced this issue Jun 15, 2018
I had to kind of work around the fact that the github repo
for material-design-icons is outdated; some icons do not show up.
I found a recent Issue and downloaded the most recent version from
Google's hosted files for the material icon font. Even so, some icons
don't work, like battery level icons.

Here's the link to that Issue on the MDI repo:
google/material-design-icons#786
@thw0rted
Copy link

As you can see, I went around and found a whole bunch of issues basically asking the same thing: why are the fonts installed by NPM so outdated, and who can provide an updated (npm-installable) version? I know I could download the WOFFs myself (or whatever) but the rest of my application installs nicely with a single NPM command and I'd like to avoid having to include the fonts themselves in my source if I can help it.

@jimmykane
Copy link

Hey, @jestelle please read this issue here.

Afaik this is an official package from Google and it's literally crippled, outdated and out of sync with the online fonts and documentation.

It's time to take action

@thw0rted
Copy link

How hard would it be to manually update to the newest files in this font-file-only NPM package, or something like it? I know some people want updated SVG / PNG, but I'd settle for having a more reliable update process for font files.

@alecogt
Copy link

alecogt commented Jul 3, 2018

It is not only that the NPM package is not up to date. The toggle_on and toggle_off icons are not included even when included from https://fonts.googleapis.com/icon?family=Material+Icons

@jossef
Copy link

jossef commented Jan 15, 2019

Heh, created a bunch of scripts for scrapping, sanitizing, ordering SVGs from the material icons site and then making 5 different fonts with them only to realize later that transparency for fonts is not supported, and this is the reason lots of icons are missing in the original google font. (Like signal and battery level icons. R.I.P. my Polybar upgrading plans.)

image

Should I even bother about cleaning it up and uploading it to GitHub? Generated fonts are not compatible with google ones (they have different Unicode indices), but will be compatible with their previous versions if Google will add more icons.

@Azumgi sounds awesome!
Would you mind collaborating with me on jossef#20? it's exactly what you have described!

@tsiegleauq
Copy link

@jossef your chosen license actively prevents projects from using your solution.

@jossef
Copy link

jossef commented Feb 12, 2019

@jossef your chosen license actively prevents projects from using your solution.

Honestly, I've inherited the license from this repo (since I've forked the repo from here).
I see that the licence was updated to Apache v2 after I've forked it.

I will update my forked version as well to Apache v2
jossef#34

Thanks for the lightning!

@cfremgen
Copy link

cfremgen commented Mar 1, 2019

Numbered battery icons are still missing.

@sg-mamedova
Copy link

meeting_room also missing

@TZanke
Copy link

TZanke commented Apr 26, 2019

Filenames are always the same. Each file has its unique last char + filetype:
"flUhRq6tzZclQEJ-Vdg-IuiaDsN" + [ Y.eot | c.woff2 | a.woff | Z.ttf ]

EOT
https://fonts.gstatic.com/s/materialicons/v139/flUhRq6tzZclQEJ-Vdg-IuiaDsNY.eot
WOFF2
https://fonts.gstatic.com/s/materialicons/v139/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2
WOFF
https://fonts.gstatic.com/s/materialicons/v139/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff
TFF
https://fonts.gstatic.com/s/materialicons/v139/flUhRq6tzZclQEJ-Vdg-IuiaDsNZ.ttf

For future updates, just check the lastest version available from here:
https://fonts.googleapis.com/icon?family=Material+Icons

Replace the old version number with the new one.

@sg-mamedova v47 contains meeting_room

@sgon00
Copy link

sgon00 commented Apr 26, 2019

You can downvote my comment, but I need to +1.

@Dreomite
Copy link

I finally got to cleaning up my solution and publishing it.

https://github.com/Azumgi/Material-Icons-Complete

It is the project for parsing every single material icon from material.io site and generating fonts for every theme in eot, ttf, otf, svg, woff, and woff2 formats. All the fonts can be downloaded in release section.


@jossef I'm sorry for not responding earlier as I was very busy and then simply forgot about it. Unfortunately, I'm not interested in collaboration due to lack of free time and interest. But you're free to use any parts of my project's code.

@lipedeitos
Copy link

lipedeitos commented May 20, 2019

Filenames are always the same. Each file has its unique last char + filetype:
"flUhRq6tzZclQEJ-Vdg-IuiaDsN" + [ Y.eot | c.woff2 | a.woff | Z.ttf ]

EOT
https://fonts.gstatic.com/s/materialicons/v47/flUhRq6tzZclQEJ-Vdg-IuiaDsNY.eot
WOFF2
https://fonts.gstatic.com/s/materialicons/v47/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2
WOFF
https://fonts.gstatic.com/s/materialicons/v47/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff
TFF
https://fonts.gstatic.com/s/materialicons/v47/flUhRq6tzZclQEJ-Vdg-IuiaDsNZ.ttf

For future updates, just check the lastest version available from here:
https://fonts.googleapis.com/icon?family=Material+Icons

Replace the old version number with the new one.

@sg-mamedova v47 contains meeting_room

Those files .ttf doesn't work properly as fonts in photoshop, anyone knows why or how to make it work?
It actually works when you open the "glyphs" tab on photoshop, but the original font works writing the name os the icon like "add" or "keyboard_arrow_down"

@lotterfriends
Copy link

lotterfriends commented Oct 19, 2019

I created a Mode module to download all versions and files of the Font.

material-regular.eot
material-regular.woff
material-regular.woff2

material-outline.otf
material-outline.eot
material-outline.woff
material-outline.woff2

material-round.otf
material-round.eot
material-round.woff
material-round.woff2

material-sharp.otf
material-sharp.eot
material-sharp.woff
material-sharp.woff2

material-twotone.otf
material-twotone.eot
material-twotone.woff
material-twotone.woff2

https://github.com/lotterfriends/material-icons-downloader

The Script also create a version.json file so you know google updated the icons.

@kudakurage
Copy link

Hey @fallXone @ianstormtaylor @petergng @strxetics @BOLL7708 @nyankobu010 @BamiGorengo @xGouley @thw0rted @jimmykane @thw0rted @alecogt @eelcowen @Kerrick @aj1991 @RyanEwen @jamesplease @petergng @ftaiolivista @RyanEwen @fayzaan @alenvuletic @alenvuletic @CodeCrusha @gizm0bill @ericssan

This project is on low maintenance and out of date for a while.

The lack of updates + development support issues also bothered me. I've forked this repo, added support for scss, removed irrelevant files and updated the fonts with the latest straight from Google's CDN.

Check it out: material-design-icons-iconfont

image

good job!
Would you mind push pull request for updating icon fonts? @jossef

@tphinney
Copy link
Collaborator

tphinney commented Jun 4, 2022

Those files .ttf doesn't work properly as fonts in photoshop, anyone knows why or how to make it work? It actually works when you open the "glyphs" tab on photoshop, but the original font works writing the name os the icon like "add" or "keyboard_arrow_down"

The original fonts use OpenType ligature features to make that work. (The latest ones use the 'rlig' feature, I imagine that was how it worked back then as well, although it but could have been 'liga'.) There is some extra work involved in the build process to automatically generate ligatures for all the icons. Additionally, the newest fonts also support ligatures for a bunch of former duplicate icons that are no longer physically present in the font—that involves a hardcoded list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests