summaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/textplain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/render/textplain.c b/render/textplain.c
index 708c6b2f6..05d2fbe33 100644
--- a/render/textplain.c
+++ b/render/textplain.c
@@ -32,6 +32,7 @@
#include "css/css.h"
#include "css/utils.h"
#include "desktop/gui.h"
+#include "desktop/options.h"
#include "desktop/plotters.h"
#include "desktop/selection.h"
#include "render/box.h"
@@ -79,6 +80,8 @@ bool textplain_create(struct content *c, struct content *parent,
iconv_t iconv_cd;
union content_msg_data msg_data;
+ textplain_style.size = (option_font_size * FONT_SIZE_SCALE) / 10;
+
utf8_data = talloc_array(c, char, CHUNK);
if (!utf8_data)
goto no_memory;