texrbox: Fix a recent regression. (#3488)

The intial font wasn't set.
This commit is contained in:
Emmanuel Lepage Vallée 2021-10-28 19:24:49 -07:00 committed by GitHub
parent 1e0d1e7ba9
commit 50b9b10437
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -393,12 +393,12 @@ local function new(text, ignore_markup)
ret._private.dpi = -1
ret._private.ctx = PangoCairo.font_map_get_default():create_context()
ret._private.layout = Pango.Layout.new(ret._private.ctx)
ret._private.layout:set_font_description(beautiful.get_font(beautiful.font))
ret:set_ellipsize("end")
ret:set_wrap("word_char")
ret:set_valign("center")
ret:set_align("left")
ret:set_font(beautiful and beautiful.font)
if text then
if ignore_markup then