mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-03 17:58:17 +00:00
fix: try getting font index which is hit by comemo (#1213)
This commit is contained in:
parent
5ee0e4e21d
commit
86d3b912d4
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ impl FontResolver for TinymistFontResolver {
|
|||
}
|
||||
|
||||
fn font(&self, idx: usize) -> Option<Font> {
|
||||
self.fonts[idx].get_or_init()
|
||||
self.fonts.get(idx)?.get_or_init()
|
||||
}
|
||||
|
||||
fn get_by_info(&self, info: &FontInfo) -> Option<Font> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue