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

Supporting Custom Fonts #1010

Closed
ry-randall opened this issue Dec 5, 2017 · 2 comments
Closed

Supporting Custom Fonts #1010

ry-randall opened this issue Dec 5, 2017 · 2 comments

Comments

@ry-randall
Copy link
Member

ry-randall commented Dec 5, 2017

This may be a silly question, but I'm curious if Latex could support custom fonts.

In other words, let's say I wanted to use "Times new Roman".

I'm guessing the font won't support all the characters necessary for something as extensive as Latex, but would it be able to support a subset and then fallback on the one's that it may be missing?

If so, what's required to test it out?
If not, why?

I'm a Latex newbie, so please excuse my newbieness.

@kevinbarabash
Copy link
Member

@rrandallcainc it is possible, but the current workflow doesn't support it. The mapping.pl assumes that the fonts are set up like standard TeX fonts as opposed to a regular TTF you might find somewhere else.

@RunasSudo
Copy link

Apologies for necro – this issue comes up when Googling "KaTeX custom fonts".

Since #1263 and #1269, it is now possible to use custom fonts on mainline KaTeX, with a little bit of work. I have a quick writeup/demo at https://yingtongli.me/blog/2022/09/24/katex-custom-fonts.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants