Skip to content

Commit 6b4981f

Browse files
authored
Font in custom tag (#89)
* font tag fix font tag was just ignored * fix: retrieve font if it was registered in a custom tag
1 parent f61589f commit 6b4981f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

richtext/richtext.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ end
4747

4848

4949
local function get_font(word, fonts, default_font)
50-
local font_settings = fonts[word.tags.font or default_font]
50+
local font_settings = fonts[(word.tags.font or word.font) or default_font]
5151
local font = nil
5252
if font_settings then
5353
if word.bold and word.italic then

0 commit comments

Comments
 (0)