google / fonts

Font files available from Google Fonts, and a public issue tracker for all things Google Fonts
https://fonts.google.com
18.06k stars 2.61k forks source link

metadata missing for a number of families #2512

Open afeld opened 4 years ago

afeld commented 4 years ago

I'm trying to walk though the families programmatically by finding the METADATA.pb files. (Here's the script, which imports them to Homebrew.) It turns out METADATA.pb is missing for a number of families. From within the repository, here's a command to find the second-level subdirectories without one:

$ find apache ofl ufl -mindepth 1 -maxdepth 1 -type d '!' -exec test -e "{}/METADATA.pb" ';' -print | sort
apache/opensanshebrew
apache/opensanshebrewcondensed
ofl/aksarabaligalang
ofl/alefhebrew
ofl/amstelvaralpha
ofl/archivovfbeta
ofl/asapvfbeta
ofl/cabinvfbeta
ofl/decovaralpha
ofl/faustinavfbeta
ofl/hanna
ofl/hannari
ofl/jejugothic
ofl/jejuhallasan
ofl/jejumyeongjo
ofl/khyay
ofl/kokoro
ofl/kopubbatang
ofl/laomuangdon
ofl/laomuangkhong
ofl/laosanspro
ofl/lemonadavfbeta
ofl/lohitdevanagari
ofl/markazitextvfbeta
ofl/mavenprovfbeta
ofl/mplus1p
ofl/myanmarsanspro
ofl/nicomoji
ofl/nikukyu
ofl/notosanstamil
ofl/podkovavfbeta
ofl/rokkittvfbeta
ofl/roundedmplus1c
ofl/sawarabigothic
ofl/sawarabimincho
ofl/seoulhangang
ofl/seoulhangangcondensed
ofl/seoulnamsan
ofl/seoulnamsancondensed
ofl/seoulnamsanvertical
ofl/souliyo
ofl/tharlon

Is this intentional? Other suggestions on how to get the font names corresponding to each directory? Thanks!

Possible duplicate of https://github.com/google/fonts/issues/106.

magrenimish commented 3 years ago

Have you been able to generate the 'metadata.pb' files for these families? I was hoping to use those for a college project

afeld commented 3 years ago

Yep:

https://github.com/Homebrew/homebrew-cask-fonts/blob/3a77b4fddbbc214110c4f077befec966772f5e00/developer/bin/import_google_fonts#L215-L230