Moved from pen implementation to Glyphs-specific