From 748058f2b16f1e51288e245126172e2dca2fa4f9 Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Thu, 27 Feb 2025 08:53:41 +0100 Subject: [PATCH 1/5] removes error in geoaxes --- .github/workflows/build-docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 75bd1c377..bbf27a542 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -18,6 +18,10 @@ jobs: - uses: mamba-org/setup-micromamba@v2.0.4 with: environment-file: ./environment.yml + - name: Install system dependencies + run: | + sudo apt-get update + sudo apt-get install -y fonts-texgyre - name: "Build docs" shell: bash -el {0} run: | From 223556e1de16b992190bcb61b5a3975698375b77 Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Thu, 27 Feb 2025 09:05:18 +0100 Subject: [PATCH 2/5] install different package --- .github/workflows/build-docs.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index bbf27a542..e2d217b51 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -21,7 +21,8 @@ jobs: - name: Install system dependencies run: | sudo apt-get update - sudo apt-get install -y fonts-texgyre + sudo apt-get install -y texlive-fonts-extra + # need tex-gyre-hero fonts to show text in geo plots - name: "Build docs" shell: bash -el {0} run: | From 7d1c4363544f96c8a7aa9f6332bc3b41b60ca16e Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Thu, 27 Feb 2025 09:12:48 +0100 Subject: [PATCH 3/5] add font-cache refresh --- .github/workflows/build-docs.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index e2d217b51..60007abfb 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -22,6 +22,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y texlive-fonts-extra + sudo fc-cache -fv # need tex-gyre-hero fonts to show text in geo plots - name: "Build docs" shell: bash -el {0} From ff3db9500b89ba2f1a75db6719d8445a4d5041ac Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Thu, 27 Feb 2025 09:46:21 +0100 Subject: [PATCH 4/5] glyph not available in text gyro; setting fallback font --- docs/projections.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/projections.py b/docs/projections.py index eb194cbf9..11bd5dc69 100644 --- a/docs/projections.py +++ b/docs/projections.py @@ -488,6 +488,8 @@ import ultraplot as uplt # Zooming in with cartopy degree-minute-second labels +# Set TeX Gyre Heros as the primary font but fall back to DejaVu Sans +uplt.rc["font.family"] = ["TeX Gyre Heros", "DejaVu Sans"] uplt.rc.reso = "hi" fig = uplt.figure(refwidth=2.5) ax = fig.subplot(121, proj="cyl") From ece2808ee51fa63b58f1a8e6703a1937c5cbb87d Mon Sep 17 00:00:00 2001 From: cvanelteren Date: Thu, 27 Feb 2025 09:47:59 +0100 Subject: [PATCH 5/5] revert changes --- .github/workflows/build-docs.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml index 60007abfb..75bd1c377 100644 --- a/.github/workflows/build-docs.yml +++ b/.github/workflows/build-docs.yml @@ -18,12 +18,6 @@ jobs: - uses: mamba-org/setup-micromamba@v2.0.4 with: environment-file: ./environment.yml - - name: Install system dependencies - run: | - sudo apt-get update - sudo apt-get install -y texlive-fonts-extra - sudo fc-cache -fv - # need tex-gyre-hero fonts to show text in geo plots - name: "Build docs" shell: bash -el {0} run: |