Skip to content

Commit 442366e

Browse files
committed
Update version and font support.
1 parent e60270c commit 442366e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ A SwiftUI view that renders LaTeX equations.
1111
- [ℹ️ About](#about)
1212
- [📦 Installation](#installation)
1313
- [⌨️ Usage](#usage)
14+
- [🔤 Fonts](#fonts)
1415
- [⚙️ Modifiers](#modifiers)
1516
- [🔤 Parsing Mode](#parsing-mode)
1617
- [🌄 Image Rendering Mode](#image-rendering-mode)
@@ -49,7 +50,7 @@ It won't
4950
Add the dependency to your package manifest file.
5051

5152
```swift
52-
.package(url: "https://github.com/colinc86/LaTeXSwiftUI", from: "1.3.2")
53+
.package(url: "https://github.com/colinc86/LaTeXSwiftUI", from: "1.4.0")
5354
```
5455

5556
## Usage
@@ -70,6 +71,10 @@ struct MyView: View {
7071

7172
> <img src="./assets/images/hello.png" width="85" height="21.5">
7273
74+
### Fonts
75+
76+
The view needs to be able to measure 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. Currently, the view's functionality is limited to SwiftUI's static largeTitle, title, title1, headline, etc fonts.
77+
7378
### Modifiers
7479

7580
The `LaTeX` view's body is built up of `Text` views so feel free to use any of the supported modifiers.

0 commit comments

Comments
 (0)