googlefonts / roboto-2

The Roboto family of fonts
Apache License 2.0
3.85k stars 309 forks source link

how to generate web-fonts #287

Closed blendsdk closed 6 years ago

blendsdk commented 6 years ago

Could you please provide some information regarding how one can generate corresponding web-fonts from the output generated by the roboto tools?

m4rc1e commented 6 years ago

Follow setup instructions on ReadMe then:

$ make v2
$ make web

https://github.com/google/roboto/blob/master/Makefile#L59-L72

blendsdk commented 6 years ago

Thank you :)

m4rc1e commented 6 years ago

@blendsdk Just to add, you'll have to be patient. The chain isn't fast.

Also, I've only ever built the fonts on Ubuntu.

If you're after the latest webfonts, Google Fonts is up to date https://fonts.google.com/specimen/Roboto.

blendsdk commented 6 years ago

Im am trying to build the font on OSX, and then find a way to make them available for web as woff(2) So far I have problem with python breaking, but I guess it is a case sensitivity issue.

m4rc1e commented 6 years ago

Probably linked to #55

Why not just convert the downloadable ttfs from GF to woff?

If you opt for this approach, follow the readme for Zilla Slab, https://github.com/mozilla/zilla-slab to get the webfonts

blendsdk commented 6 years ago

Yes I think #55 is the problem.

I will give their build script a try. On the account of GF; It looks like that the GF serves different files based on the browser type! (Or am I mistaken here!!??)

m4rc1e commented 6 years ago

You want

screen shot 2018-03-13 at 10 58 17

This just downloads the webfont ttfs

blendsdk commented 6 years ago

It took me a while to get everything going. But now everything works fine. I can serve locally served Roboto fonts. Thank you.

shadow-light commented 6 years ago

@blendsdk If you're after the latest webfonts, Google Fonts is up to date https://fonts.google.com/specimen/Roboto.

Do you mean Google fonts is using Roboto v2? Because the README still says:

A subset of an earlier version of Roboto is available from Google Fonts, and can be used as a web font.

veryhappythings commented 6 years ago

Is there a good reason for not including woffs in the released builds on this repo? https://github.com/django/django ships with copies of the woffs and they need to be updated to match the most recent release, which I can do by hand, but it'd be nicer to include an official release as opposed to building my own.

Django ticket ref: https://code.djangoproject.com/ticket/29832

veryhappythings commented 6 years ago

@shadow-light It looks like that line is an error in the readme, judging by this PR? https://github.com/google/roboto/pull/285/files

shadow-light commented 6 years ago

Ha yes, should have been merged 8 months ago by the looks of things! :laughing:

davelab6 commented 6 years ago

https://github.com/google/fonts/#self-host-fonts-available-from-google-fonts is what you want, I think

veryhappythings commented 6 years ago

I think you're right @davelab6, thank you!