You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you have any luck with this? I was able to change the font size within latex by, for example, doing $\\Huge\\pi$ ... I tried $\\fontsize{30}{36}\\pi$, but that didnt' seem to work.
The view needs to be able to measure/calculate the current font's x-height to correctly size the characters inside of the rendered LaTeX SVG. To do that, the view must use the UIFont/NSFont classes and do its best to convert SwiftUI's Font structure into the correct UIFont instance. Right now the only way I know how to do that is by limiting the functionality to SwiftUI's static largeTitle, title, title1, headline, etc fonts.
Long story short - if you use the statically declared fonts and not the .system(...) font initializers, then the rendered equation text should match.
I'm going to leave this issue open though because I think it's still worth investigating to come up with a better solution.
Changing the font size doesn't affect the rendered equation:
The text was updated successfully, but these errors were encountered: