def get_font_path()

in src/co_op_translator/config/font_config.py [0:0]


    def get_font_path(self, language_code):
        """
        Retrieve the font path for a given language code.

        Args:
            language_code (str): The language code.

        Returns:
            str: The full path to the corresponding font file.

        Raises:
            ValueError: If the language code or font is not found in the mappings.
        """
        font_name = self.font_mappings.get(language_code, {}).get("font")

        if not font_name:
            raise ValueError(
                f"Font for language code '{language_code}' is not supported or not found."
            )

        with importlib.resources.path("co_op_translator.fonts", font_name) as font_path:
            return str(font_path)