vfbLib.ufo.tth.transform_stem_rounds

vfbLib.ufo.tth.transform_stem_rounds(data: dict[str, int], name: str) dict[str, int]

Transform the format of the stem rounding dict to fit the UFO output format, i.e. exchange key and value.

Parameters:
  • data (dict[str, int]) – The stem rounding data

  • name (str) – A name that will be shown if there is any error.

Returns:

The transformed stem rounding dict.

Return type:

dict[str, int]