Skip to content

Commit f31d52d

Browse files
committed
set default font using CSS to match fonts in tags
1 parent f952523 commit f31d52d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GtkMarkdownTextView.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ module GtkMarkdownTextView
2020

2121
mutable struct MarkdownTextView <: GtkTextView
2222
handle::Ptr{GObject}
23-
view::GtkTextView
24-
buffer::GtkTextBuffer
23+
view::GtkTextViewLeaf
24+
buffer::GtkTextBufferLeaf
2525

2626
function MarkdownTextView(m::Markdown.MD, prelude::String, mc::MarkdownColors = MarkdownColors(); kwargs...)
2727

@@ -34,6 +34,7 @@ module GtkMarkdownTextView
3434
background-color: $(mc.background);
3535
color: $(mc.color);
3636
font-family: Monaco, Consolas, Courier, monospace;
37+
font-size: $(mc.font_size)pt;
3738
margin:0px;
3839
}"
3940
)
@@ -57,7 +58,6 @@ module GtkMarkdownTextView
5758
foreground=mc.highlight_color, background=mc.highlight_background)
5859

5960
insert_MD!(buffer, m)
60-
# tag(buffer, "normal", 1, length(buffer))
6161

6262
n = new(view.handle, view, buffer)
6363
gobject_move_ref(n, view)

0 commit comments

Comments
 (0)