Comments (7)
What tool was used to make this font? It is broken!
The STAT fielddesignAxisCount
is 0 while axisValueCount
is 11, and axisCount
in the fvar table is 2. You can see these values for yourself by typing these into the console:
GLOBAL.vf.tables["STAT"].data.designAxisCount
GLOBAL.vf.tables["STAT"].data.axisValueCount
GLOBAL.vf.tables["fvar"].data.axisCount
From the OpenType spec:
designAxisCount — The number of design axis records. In a font with an 'fvar' table, this value must be greater than or equal to the axisCount value in the 'fvar' table. In all fonts, must be greater than zero if axisValueCount is greater than zero.
In other words, you have to re-declare any axes that are used in STAT as “designAxes”, even if they are identical to the variation axes already defined in the fvar table. Take a look at a TTX dump of another font with a STAT table.
Also, is there any reason you have an .otf extension rather than .ttf?
from samsa.
Thanks for your feedback. I have no idea how this font was produced, I have no connection to it. So because the font is buggy, you can close this IMHO.
from samsa.
Followups to rsms/inter#311
from samsa.
fonttools and ufo2ft produced that font so you will likely see a large number of other fonts with similar setup. (This has been fixed in source Inter with a pretty elaborate patch.)
from samsa.
Here’s a patched version in case you want to test
https://github.com/rsms/inter/files/5100101/Inter-3.15-text-f7924a233e.zip
from samsa.
fonttools always sets the STAT designAxisCount to the fvar.axisCount. Are you sure the STAT table was not post-processed with some other tool maybe?
from samsa.
Thanks @rsms. I’ll happily add some error handling to Samsa if the tool(chain) that made this font is widespread. So far however it is the only font I have ever seen with this error.
from samsa.
Related Issues (20)
- Allow sidebar to resize HOT 1
- ES6 / TypeScript support on samsa-core.js HOT 2
- "use strict"
- Remember axes settings for 'similar fonts'
- svgPath() method not working like GUI HOT 3
- SVG paths should be closed using "Z" in all cases HOT 1
- SamsaGlyph.prototype.svg has hardcoded width and height
- SamsaGlyph.prototype.svg has hardcoded width and height HOT 3
- samsa-core: Different tuple produce the same svgPath HOT 5
- Samsa shows interpolated instance 500 at 499.99 HOT 2
- Can't load font URL: TypeError: process.exit is not a function. (In 'process.exit(0)', 'process.exit' is undefined)
- Support for CFF-flavored variable fonts HOT 5
- Reject fonts incompatible with Samsa (including UFO, TTX, CFF2) gracefully HOT 1
- FeatureVariation replacement missing in svg animation exports HOT 1
- Stop using Node.js Buffer HOT 1
- [web app] Are there metrics labels available? HOT 3
- avar panel sometimes does not show mappings properly
- Add search by Unicode to the the "Filter by name or id" input box. HOT 2
- Allow characters outside of BMP in the "filter by string" box
- Does not report font axes after subsetting variable font HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samsa.