MCPcopy
hub / github.com/microsoft/cascadia-code / step_set_font_name

Function step_set_font_name

build.py:45–50  ·  view source on GitHub ↗
(name: str, source: ufoLib2.Font)

Source from the content-addressed store, hash-verified

43
44
45def step_set_font_name(name: str, source: ufoLib2.Font) -> None:
46 source.info.familyName = source.info.familyName.replace("Cascadia Code", name)
47 # We have to change the style map family name because that's what
48 # Windows uses to map Bold/Regular/Medium/etc. fonts
49 if source.info.styleMapFamilyName:
50 source.info.styleMapFamilyName = source.info.styleMapFamilyName.replace("Cascadia Code", name)
51
52
53def step_merge_glyphs_from_ufo(path: Path, instance: ufoLib2.Font) -> None:

Callers 1

prepare_fontsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected