Skip to content

Conversation

@kcarloni
Copy link
Contributor

I quickly added tex-gyre-pagella to the fonts dictionary, as suggested by this previous PR.

The easiest way I've found to switch between fonts with Makie is by overriding the default FontFamily and then using the texfont function.

using MathTeXEngine: FontFamily, texfont

FontFamily() = FontFamily("TeXGyrePagella")

update_theme!( 
    fonts=(; 
        regular=texfont(:regular),
        bold=texfont(:bold),
    )
)

@Moelf
Copy link
Contributor

Moelf commented Apr 29, 2025

is this PR ready? if so, gently bumping @Kolaru

@Kolaru Kolaru marked this pull request as ready for review May 3, 2025 10:51
@Kolaru
Copy link
Owner

Kolaru commented May 3, 2025

Thanks for the gentle bump :)

I need a bit of time to think about how to test that everything is okay (and fix CI apparently).

Also @kcarloni once you have overridden FontFamily, you can also use the theme_latexfonts() to have consistent font in the plot (see https://docs.makie.org/stable/explanations/latex#Uniformizing-the-fonts).

@Kolaru
Copy link
Owner

Kolaru commented May 21, 2025

CI failure are unrelated, and there isn't much that can be tested easily, so it LGTM

Thanks a lot for the contribution @kcarloni

@Kolaru Kolaru merged commit 9135b6b into Kolaru:master May 21, 2025
2 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants