diff --git a/pygmt/src/pygmtlogo.py b/pygmt/src/pygmtlogo.py index 6691ebd8bd8..e1c14acb918 100644 --- a/pygmt/src/pygmtlogo.py +++ b/pygmt/src/pygmtlogo.py @@ -22,6 +22,7 @@ def _create_logo( # noqa: PLR0915, PLR0912 theme: Literal["light", "dark"] = "light", wordmark: Literal["none", "horizontal", "vertical"] = "none", color: bool = True, + font: str | None = None, figname: PathLike | None = None, debug: bool = False, ): @@ -81,7 +82,7 @@ def _create_logo( # noqa: PLR0915, PLR0912 hex_factor = 1.1 # Define wordmark - font = "AvantGarde-Book" + # font = "AvantGarde-Book" match wordmark: case "vertical": args_text_wm = {"x": 0, "y": -4.5, "justify": "CT", "font": f"2.5c,{font}"} @@ -259,6 +260,7 @@ def pygmtlogo( # noqa: PLR0913 shape: Literal["circle", "hexagon"] = "circle", theme: Literal["light", "dark"] = "light", wordmark: Literal["none", "horizontal", "vertical"] = "none", + font: str | None = None, color: bool = True, width: float | str | None = None, height: float | str | None = None, @@ -359,6 +361,7 @@ def pygmtlogo( # noqa: PLR0913 theme=theme, shape=shape, wordmark=wordmark, + font=font, figname=logofile.name, )