question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[subset] Features don't get dropped

See original GitHub issue

Hi. As opposed to my earlier post regarding dropping features after having frozen them with pyftfeatfreeze, I can’t seem to get the --layout-features setting right. When I use just --layout-features-='lnum,tnum,c2sc,smcp', all features disappear except for ccmp, locl, and liga. But there used to be more, like frac and ordn for instance. When I use --layout-features='*' --layout-features-='lnum,tnum,c2sc,smcp' all those feature (and the glyphs) stay in the font. Only the lnum feature seems to have disappeared.

I could of course calculate the precise amount of features and put it into --layout-features='XX', but I wanted to raise the issue anyway, because this doesn’t look right to me. Or am I doing something wrong?

The complete call is: python '/Users/yanone/Webseiten/wsgi/tools/pyftsubset.py' '/Users/yanone/Schriften/Font Produktion/Fonts/NonameSansOffice-Regular.temp.otf' --name-languages='*' --name-legacy --name-IDs='*' --unicodes='*' --layout-features='*' --layout-features-='lnum,tnum,c2sc,smcp' --output-file='/Users/yanone/Schriften/Font Produktion/Fonts/NonameSansOffice-Regular.otf'

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:40 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
jenskutilekcommented, Sep 15, 2017

Example:

$ pyftsubset MyFont.ttf --unicodes='*' --layout-features='cpsp,mark,mkmk,rlig,ccmp,locl,subs,sinf,sups,numr,dnom,frac,lnum,pnum,tnum,onum,case,liga,ss14,ss04,ss06,ss09,ss10,ss13,ss20,calt' --glyph-names --notdef-glyph --notdef-outline --recommended-glyphs --name-IDs='*' --name-legacy

… successfully gets rid of all the small caps and petite caps glyphs for me.

0reactions
behdadcommented, Sep 18, 2017

If there’s a concrete proposal re aalt please file a new issue. We can add code to synthesize aalt, and add option to subsetter to call it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"WARNING: FFTM NOT subset; don't know how to ... - GitHub
pyftsubset doesn't know how to subset the FFTM table and it is dropped from the output. This might be bad or it might...
Read more >
"Subset" in R does not subset the way I want it to [duplicate]
When you subset the data.frame , subset doesn't redefine your variables, ... Try using droplevels to drop all of the unused levels from...
Read more >
subset — fontTools Documentation - Read the Docs
By default, tables that the tool does not know how to subset and are not specified here will be dropped from the font,...
Read more >
Dropping Constant Features using VarianceThreshold ...
Variance Threshold is a feature selector that removes all the low variance features from the dataset that are of no great use in...
Read more >
4 Subsetting | Advanced R
To preserve the original dimensionality, you must use drop = FALSE . For matrices and arrays, any dimensions with length 1 will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found