Skip to content

How to change the font in FormulaControl? #331

Answered by ForNeVeR
TheDIMONDK asked this question in Q&A
Discussion options

You must be logged in to vote

There are two sets of fonts used by WPF-Math.

Main formula text uses Computer Modern, and this is impossible to change right now (because the font should have certain special features and known metrics for us to work with, and any random .ttf file doesn't have this information). There are plans to provide some alternatives, but you'll have to provide MetaFont information about them most likely. The root issue is now #332.

\text{…} inclusions use any installed system font; it is Arial by default, but easy to change using FormulaControl::SystemTextFontName property.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheDIMONDK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants