copied from fontTools.varLib._DesignspaceAxis._map static method. I place it here since it is also used by varLib.mutator, so makes sense to have a public function
copied from fontTools.varLib._DesignspaceAxis._map static method. I place it here since it is also used by varLib.mutator, so makes sense to have a public function