summaryrefslogtreecommitdiff
path: root/framebuffer
diff options
context:
space:
mode:
Diffstat (limited to 'framebuffer')
-rw-r--r--framebuffer/fbtk.c2
-rw-r--r--framebuffer/gui.c4
l---------framebuffer/res/quirks.css1
3 files changed, 6 insertions, 1 deletions
diff --git a/framebuffer/fbtk.c b/framebuffer/fbtk.c
index c564a9117..d212fb4d5 100644
--- a/framebuffer/fbtk.c
+++ b/framebuffer/fbtk.c
@@ -41,7 +41,7 @@
static plot_font_style_t root_style = {
.family = PLOT_FONT_FAMILY_SANS_SERIF,
- .size = 11,
+ .size = 11 * FONT_SIZE_SCALE,
.weight = 400,
.flags = FONTF_NONE,
};
diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index 65080db8a..fbed5bd86 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -56,6 +56,7 @@
#include "content/fetch.h"
char *default_stylesheet_url;
+char *quirks_stylesheet_url;
char *adblock_stylesheet_url;
char *options_file_location;
@@ -367,6 +368,9 @@ void gui_init(int argc, char** argv)
default_stylesheet_url = path_to_url(buf);
LOG(("Using '%s' as Default CSS URL", default_stylesheet_url));
+ fb_find_resource(buf, "quirks.css", "./framebuffer/res/quirks.css");
+ quirks_stylesheet_url = path_to_url(buf);
+
nsfb = framebuffer_initialise(argc, argv);
if (nsfb == NULL)
die("Unable to initialise framebuffer");
diff --git a/framebuffer/res/quirks.css b/framebuffer/res/quirks.css
new file mode 120000
index 000000000..d9fb80334
--- /dev/null
+++ b/framebuffer/res/quirks.css
@@ -0,0 +1 @@
+../../!NetSurf/Resources/Quirks,f79 \ No newline at end of file