colinc86 / LaTeXSwiftUI

A SwiftUI view that renders LaTeX.
MIT License
201 stars 35 forks source link

DynamicTypeSize not supported #37

Open JonathanStorey opened 4 months ago

JonathanStorey commented 4 months ago

When using the LaTeX view, the equations do not adjust as expected when changing the dynamic type size (choosing larger text from the Accessibility menu). It is interesting to note that the text changes size but not the actual equation images. This makes it difficult to use the inline text features of the LaTeX view, as they become visually inconsistent if the user adjusts their default type size.

Would it be possible to add this accessibility feature? Perhaps the @ScaledMetric property wrapper or the newly released TextRenderer (WWDC 2024) would a starting point for adding this feature.