Fix documentation and behavior for 1.13 release

This commit is contained in:
Francesco Abbate
2020-12-06 11:23:33 +01:00
parent afda299fe4
commit 1c4b8cf315
5 changed files with 84 additions and 22 deletions
+43
View File
@@ -2,6 +2,49 @@ Lite XL is following closely [rxi/lite](https://github.com/rxi/lite) but with so
This files document the differences between Lite XL and rxi/lite for each version.
### 1.13
**Rendering options for fonts**
When loading fonts with the function renderer.font.load some rendering options can
be optionally specified:
- antialiasing: grayscale or subpixel
- hinting: none, slight or full
See data/core/style.lua for the details about its utilisation.
The default remains antialiasing subpixel and hinting slight to reproduce the
behavior of previous versions.
The option grayscale with full hinting is specially interesting for crisp font rendering
without color artifacts.
**Unix-like install directories**
Use unix-like install directories for the executable and for the data directory.
The executable will be placed under $prefix/bin and the data folder will be
$prefix/share/lite-xl.
The folder $prefix is not hard-coded in the binary but is determined at runtime
as the directory such as the executable is inside $prefix/bin.
If no such $prefix exist it will fall back to the old behavior and use the "data"
folder from the executable directory.
In addtion to the `EXEDIR` global variable an additional variable is exposed, `DATADIR`,
to point to the data directory.
The old behavior using the "data" directory can be still selected at compile time
using the "portable" option. The released Windows package will use the "data"
directory as before.
**Configuration stored into the user's home directory**
Now the Lite XL user's configuration will be stored in the user's home directory under
".config/lite-xl".
The home directory is determined using the "HOME" environment variable except on Windows
wher "USERPROFILE" is used instead.
A new global variable `USERDIR` is exposed to point to the user's directory.
### 1.11
- include changes from rxi's Lite 1.11