Added font size option, because I think it's pretty common and useful.
Full-featured font options are probably not worth doing, though.
---
 config.def.h |    2 ++
 surf.c       |    2 ++
 2 files changed, 4 insertions(+)

diff --git a/config.def.h b/config.def.h
index 85bfe47..90f8d5b 100644
--- a/config.def.h
+++ b/config.def.h
@@ -19,6 +19,8 @@ static Bool enableinspector = TRUE;
 static Bool loadimages = TRUE;
 static Bool hidebackground  = FALSE;
 
+static guint font_size = 12;
+
 #define SETPROP(p, q) { \
        .v = (char *[]){ "/bin/sh", "-c", \
                "prop=\"`xprop -id $2 $0 | cut -d '\"' -f 2 | dmenu`\" &&" \
diff --git a/surf.c b/surf.c
index ee4ab75..8c29148 100644
--- a/surf.c
+++ b/surf.c
@@ -752,6 +752,8 @@ newclient(void) {
                        enableinspector, NULL);
        g_object_set(G_OBJECT(settings), "enable-default-context-menu",
                        kioskmode ^ 1, NULL);
+       g_object_set(G_OBJECT(settings), "default-font-size",
+                       font_size, NULL);
 
        if(enableinspector) {
                c->inspector = WEBKIT_WEB_INSPECTOR(
-- 
1.7.10.4


Reply via email to