From 2373c63a0bcae7cf56d1f9e8008fb03f2757a7a6 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Fri, 11 Dec 2020 14:49:03 +0100 Subject: [PATCH] Complete the initial user configuration file --- data/core/init.lua | 10 +++++++++- data/user/init.lua | 11 +++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/data/core/init.lua b/data/core/init.lua index 0f20576f..59601d2e 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -166,7 +166,7 @@ local function write_user_init_file(init_filename) init_file:write([[ -- put user settings here -- this module will be loaded after everything else when the application starts --- it will be automatically reloaded when use save it +-- it will be automatically reloaded when saved local keymap = require "core.keymap" local config = require "core.config" @@ -187,6 +187,14 @@ local style = require "core.style" -- style.big_font : big text in welcome screen -- style.icon_font : icons -- style.code_font : code +-- +-- the function to load the font accept a 3rd optional argument like: +-- +-- {antialiasing="grayscale", hinting="full"} +-- +-- possible values are: +-- antialiasing: grayscale, subpixel +-- hinting: none, slight, full ]]) init_file:close() end diff --git a/data/user/init.lua b/data/user/init.lua index b72bab26..afaa6108 100644 --- a/data/user/init.lua +++ b/data/user/init.lua @@ -1,6 +1,6 @@ -- put user settings here -- this module will be loaded after everything else when the application starts --- it will be automatically reloaded when use save it +-- it will be automatically reloaded when saved local keymap = require "core.keymap" local config = require "core.config" @@ -21,4 +21,11 @@ local style = require "core.style" -- style.big_font : big text in welcome screen -- style.icon_font : icons -- style.code_font : code - +-- +-- the function to load the font accept a 3rd optional argument like: +-- +-- {antialiasing="grayscale", hinting="full"} +-- +-- possible values are: +-- antialiasing: grayscale, subpixel +-- hinting: none, slight, full