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

Android Wear needs a "skinny" version of Roboto VF #72

Open
marekjez86 opened this issue Jun 12, 2020 · 5 comments
Open

Android Wear needs a "skinny" version of Roboto VF #72

marekjez86 opened this issue Jun 12, 2020 · 5 comments

Comments

@marekjez86
Copy link

marekjez86 commented Jun 12, 2020

Android Wear needs a "skinny" version of Roboto.
Currently they use only four instances (no condensed):
Roboto-Regular.ttf
Roboto-Bold.ttf
Roboto-Italic.ttf
Roboto-BoldItalic.ttf

Could you come up with a Roboto VF without condensed, with weight from 400 through 700, and full italics? I wanted to see if it is possible to be below or close to about 1.3MB in the "skinny" Roboto size.

If not could we try Roboto VF Upright without condensed, with weight from 400 through 700 and Roboto VF Italic without condensed, with weight from 400 through 700?

If this doesn't come out the right size, could we just make 4 instances just like the one they want...

The requirements:

  • the full variable Roboto font is the MASTER font for making any of the above (that's what we would deliver -- we would NOT deliver a "skinny" version; a "skinny" version would be made during the Android Wear build process)
  • a publicly available tools are used to make a "skinny" version

Please advise what's doable.

I tried but it failed (maybe I have older fonttools, but if fonttools need fixing please help to fix them):
marekj-macbookpro5% fonttools varLib.instancer -o out.ttf Roboto[ital,wdth,wght].ttf wdth=drop wght=400:700
Restricting axes: {'wdth': None, 'wght': AxisRange(400, 700)}
Loading variable font
Normalized limits: {'wght': NormalizedAxisRange(0, 0.677551), 'wdth': 0.0}
Instantiating glyf/gvar tables
Instantiating HVAR table
Instantiating GDEF and GPOS tables
Instantiating avar table
Instantiating STAT table
Traceback (most recent call last):
File "/usr/local/bin/fonttools", line 10, in
sys.exit(main())
File "/Users/marekj/Library/Python/3.7/lib/python/site-packages/fontTools/main.py", line 28, in main
runpy.run_module(mod, run_name='main')
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 208, in run_module
return _run_code(code, {}, init_globals, run_name, mod_spec)
File "/usr/local/Cellar/python/3.7.7/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/marekj/Library/Python/3.7/lib/python/site-packages/fontTools/varLib/instancer.py", line 1414, in
sys.exit(main())
File "/Users/marekj/Library/Python/3.7/lib/python/site-packages/fontTools/varLib/instancer.py", line 1393, in main
overlap=options.overlap,
File "/Users/marekj/Library/Python/3.7/lib/python/site-packages/fontTools/varLib/instancer.py", line 1243, in instantiateVariableFont
instantiateSTAT(varfont, axisLimits)
File "/Users/marekj/Library/Python/3.7/lib/python/site-packages/fontTools/varLib/instancer.py", line 1024, in instantiateSTAT
axisTag = designAxes[axisValueTable.AxisIndex].AxisTag
IndexError: list index out of range

@davelab6
Copy link
Member

I would prefer to do this as a fonttools varLib.instancer post processing step, than a 2nd build path from source.

@m4rc1e do you have a preference?

@dberlow
Copy link
Contributor

dberlow commented Jun 12, 2020 via email

@marekjez86
Copy link
Author

Initially I'd like to get to examine all three variants:

  1. Roboto VF without condensed, with weight from 400 through 700, and italics (full range)
  2. two Roboto VFs without condensed, with weight from 400 through 700 - one ital=0 and one ital=1
  3. 4 instances Roboto-Regular.ttf, Roboto-Bold.ttf, Roboto-Italic.ttf and Roboto-BoldItalic.ttf

with 1. being the most desirable font to give Wear and choice 3. only as a last resort

@davelab6
Copy link
Member

@marekjez86 were you able to use fonttools varLib.instancer to create these comparisons? :)

@marekjez86
Copy link
Author

marekjez86 commented Nov 11, 2020 via email

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

3 participants