[subset] clone trim logic from fonttools glyf handling
7 files changed