MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / load_font

Method load_font

shared.py:1611–1619  ·  view source on GitHub ↗

Load a font.

(self, font_name, size)

Source from the content-addressed store, hash-verified

1609 except OSError as e:
1610 logger.error(f"OS error occurred while creating live status file: {e}")
1611 except Exception as e:
1612 logger.error(f"Unexpected error occurred while creating live status file: {e}")
1613
1614
1615 def _generate_actions_json_if_needed(self):
1616 """Only regenerate actions.json if the action modules have changed.
1617
1618 Compares the modification time of the actions directory against the
1619 existing actions.json file. If no .py file is newer, we also verify
1620 that every action .py has a corresponding entry in the JSON — a
1621 previous generation may have missed modules due to transient import
1622 errors (e.g. scanning.py failing once).

Callers 1

load_fontsMethod · 0.95

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected