Android Wear needs a "skinny" version of Roboto VF
marekjez86 opened this issue · 5 comments
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
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?
Initially I'd like to get to examine all three variants:
- Roboto VF without condensed, with weight from 400 through 700, and italics (full range)
- two Roboto VFs without condensed, with weight from 400 through 700 - one ital=0 and one ital=1
- 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
@marekjez86 were you able to use fonttools varLib.instancer
to create these comparisons? :)