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

MATHJax font options for Orca #355

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ashwin-nayak
Copy link

@ashwin-nayak ashwin-nayak commented Dec 9, 2020

I had to use plotly's graphs for publications and some of them contained TeX-based text. Plotly's graph font options and TeX font options were always mismatching and thicker in strokes, even while I knew MathJAX had the capabilities to publish in Modern Math or few others.

MathJAX's SVG output processor provides certain font options. By not selecting explicitly earlier, Orca would output images in STIX-Web font with the default blacker:1 attribute which renders a slight difference for TeX-rendered fonts compared to the overall Graph fonts.

Included are a couple lines of code for constants.js and inject.js for including these choices 'explicitly' to enable changing the fonts by changing a parameter in constants.js manually. Future feature requests may consider exposing this to the plotly export feature, if at all.

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.

1 participant