Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add Latin Modern support for mathtext#26240

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
devRD wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromdevRD:lmfont

Conversation

devRD
Copy link
Contributor

PR summary

Adds Latin modern fontset for mathtext

PR checklist

@devRDdevRD changed the title[WIP] Add Latin Modern support for mathtextAdd Latin Modern support for mathtextJul 24, 2023
@devRD
Copy link
ContributorAuthor

devRD commentedJul 24, 2023
edited
Loading

So far, the PR supports therm, bf, it, bfit, tt, sf font classes. From what I have found so far, we also have aLatin Modern Math that covers all the glyphs for the math font. However,LM Math does not containbold, or italics, so we end up with something like this, where the lowercase Greek mappings are fetched from the latinmodermath font because the regular lm fonts do not contain those glyphs.:
lmfont

In LaTeX, I believe that there is a small set of bold glyphs supported so Fake Bold is being utilized(?).https://tex.stackexchange.com/questions/639337/latin-modern-math-doesnt-have-a-bold-font-but-does-have-glyphs-for-unicode-blo

https://ctan.math.washington.edu/tex-archive/fonts/ps-type1/lm/doc/fonts/lm/lm-info.pdf

Also, theLatin Modern Math doc metions something aboutcal and frak font names to be excerpted by other packages.https://www.gust.org.pl/projects/e-foundry/lm-math/download/readme-latin-modern-math.txt/view

Not sure how to proceed further, so opening the PR up for discussion.

@devRDdevRD marked this pull request as ready for reviewJuly 24, 2023 11:38
@oscargus
Copy link
Member

Sorry, I have missed this completely. I cannot really provide any relevant feedback though, except that it is probably better to support what can be supported and possibly extend it later. (Just state any current limitations in the what's new note.)

Wouldn't it make sense to add an otf-directory rather than putting the otf-files in the ttf-directory? Not sure it anything else must be adjusted though. I'll enable the wheel-building tests as well so one can download one of those wheels and see that everything is indeed included as expected.

@oscargusoscargus added the CI: Run cibuildwheelRun wheel building tests on a PR labelAug 31, 2023
@oscargus
Copy link
Member

Any idea why some of the tests are failing?

@devRD
Copy link
ContributorAuthor

The last change was updated quite some time ago. Not sure if there was a CI issue at the time. I'll just close and reopen to check.

@devRDdevRD closed thisAug 31, 2023
@devRDdevRD reopened thisAug 31, 2023
@devRD
Copy link
ContributorAuthor

Looks like it is fetching Latin Modern font from a different directory than the font directory in matplotlib...

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
CI: Run cibuildwheelRun wheel building tests on a PRtopic: text/mathtext
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@devRD@oscargus

[8]ページ先頭

©2009-2025 Movatter.jp