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

how to generate web-fonts #287

Closed
blendsdk opened this issue Mar 12, 2018 · 14 comments
Closed

how to generate web-fonts #287

blendsdk opened this issue Mar 12, 2018 · 14 comments

Comments

@blendsdk
Copy link

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

@m4rc1e
Copy link
Contributor

m4rc1e commented Mar 13, 2018

Follow setup instructions on ReadMe then:

$ make v2
$ make web

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

@blendsdk
Copy link
Author

Thank you :)

@m4rc1e
Copy link
Contributor

m4rc1e commented Mar 13, 2018

@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
Copy link
Author

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.

@blendsdk blendsdk reopened this Mar 13, 2018
@m4rc1e
Copy link
Contributor

m4rc1e commented Mar 13, 2018

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
Copy link
Author

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
Copy link
Contributor

m4rc1e commented Mar 13, 2018

You want

screen shot 2018-03-13 at 10 58 17

This just downloads the webfont ttfs

@blendsdk
Copy link
Author

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
Copy link

@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
Copy link

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
Copy link

@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
Copy link

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

@davelab6
Copy link
Member

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

@veryhappythings
Copy link

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

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

5 participants