Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] \mathsf ignored when using Arial font #5038

Open
lmiq opened this issue Dec 20, 2024 · 0 comments
Open

[BUG] \mathsf ignored when using Arial font #5038

lmiq opened this issue Dec 20, 2024 · 0 comments
Labels

Comments

@lmiq
Copy link
Contributor

lmiq commented Dec 20, 2024

Details

Minimal example:

julia> using Plots, LaTeXStrings

julia> plot(rand(10); fontfamily="Arial", xlabel=L"\mathsf{Test}")

Output:

image

Curiously, using Serif, which is not supported, gives the desired output:

julia> plot(rand(10); fontfamily="Serif", xlabel=L"\mathsf{Test}")

produces:

image

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pythonplot x
plotlyjs x
pgfplotsx x
unicodeplots x
inspectdr x
gaston x

Versions

Plots.jl version: v1.40.9
Backend version (]st -m <backend(s)>): GR v0.73.9
Output of versioninfo():

julia> versioninfo()
Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 20 × 12th Gen Intel(R) Core(TM) i7-12700F
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, alderlake)
Threads: 20 default, 0 interactive, 10 GC (on 20 virtual cores)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 20
  JULIA_PKG_PRESERVE_TIERED_INSTALLED = true

@lmiq lmiq added the bug label Dec 20, 2024
lmiq referenced this issue in m3g/MolSimToolkit.jl Dec 20, 2024
JuliaTagBot pushed a commit to JuliaRegistries/General that referenced this issue Dec 20, 2024
- Registering package: MolSimToolkit
- Repository: https://github.com/m3g/MolSimToolkit.jl
- Created by: @lmiq
- Version: v1.22.3
- Commit: 77818e57022fc6b13b2d1c2dbd4ebd27e9da3d66
- Reviewed by: @lmiq
- Reference:
m3g/MolSimToolkit.jl@77818e5#commitcomment-150605976
- Description: A set of tools for analyzing molecular dynamics
simulations
- Release notes:
<!-- BEGIN RELEASE NOTES -->
`````
- Setting font family to `Serif` in a plot using `MolSimStyle` will adjust latex fonts with `\mathsf`. This is somewhat experimental, because `GR` does not really support `Serif` fonts, and the same with `Arial` fails (JuliaPlots/Plots.jl#5038).
`````
<!-- END RELEASE NOTES -->

<!--
bf0c69308befbd3ccf2cc956ac8a46712550b79fc9bfb5e4edf8f833f05f4c18b06eddad8845b45beb9f45c2b8020dd6db84e1a7a3a747e5e7d2c1e8e7de95988375c2c1ac73fcb3d1105270f0150edc842d505d747f19d7d2be95ad12d31c078aa90df433d5706ce4202df0ba5ce4942c9313b8154257eddf82b668155c9dd686e6fc89f387b75a58d391d5239e2b44acc7d09f21fe794a6f00e971ceada30d41d6ed189bdda5edfcfc574273beed2ec81961f4ad12fb11591208674c35936c15c345a36380f687e82de1cd1c8fefe296a76758732933096ef7f7883506d6d6
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant