aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2021-03-23Merge remote-tracking branch 'basinbaby/set-window-opacity'Francesco Abbate
Implement the suggestion and close #125. Initial suggestion and implementation from https://github.com/rxi/lite/pull/17
2021-03-20Add comments about unused RenFont data fieldFrancesco Abbate
2021-03-20Revert "Remove unused data field in RenFont"Francesco Abbate
This reverts commit 461266e97d467ed11c0775a674d8f5c2f3ca190f. Related to github issue #122. The void *data field is not used but the glyphset index can someting be equal to -1 and the unused field prevent faulty writes before the allocated struct.
2021-03-18Merge branch 'xrdb-lean'Francesco Abbate
2021-03-18Remove unused data field in RenFontFrancesco Abbate
2021-03-18Merge branch 'master' into xrdb-leanFrancesco Abbate
2021-03-18Fix problem with tab size and subpixel positioningFrancesco Abbate
Solve github issue https://github.com/franko/lite-xl/issues/109
2021-03-18Minor xrdb buffer optimizationFrancesco Abbate
2021-03-18Fix problem with previous commit and remove strtol callFrancesco Abbate
2021-03-18Minor change for xrdb output parsingFrancesco Abbate
Use memmove to copy remaining bytes at beginning of buffer
2021-03-17Check for error in pipe callFrancesco Abbate
2021-03-17Ensure xrdb code is compiled only on unixFrancesco Abbate
2021-03-17Implement xrdb reading without popenFrancesco Abbate
Avoid using the shell, awk and cut command
2021-03-14Addressing the scaling factor on linux. (#107)daubaris
Use xrdb and the Xft.dpi variable to find out DPI scaling on linux.
2021-03-07Merge remote-tracking branch 'origin/master' into subpixel-font-positioning-fixFrancesco Abbate
2021-03-07Ensure error and stack trace are written to stdoutFrancesco Abbate
To address https://github.com/franko/lite-xl/issues/87
2021-03-06Introduce subpixel text positioning within rencacheFrancesco Abbate
In order to fix the issue with cursor positioning a subpixel-aware draw text operation within rencache was required. With this modification the cursor positioning problem is completely resolved. A new function renderer.draw_text_subpixel is introduced to perform consecutive, inline, text drawings with subpixel accuracy.
2021-03-06Mostly fix problem of offset with cursor positioning when using mouseFrancesco Abbate
In order to get right the cursor position on text on mouse clicks it is needed to take into account text's subpixel positioning. This fix mostly corrects the problem but cursor positioning is still somewhat inaccurate for long lines due to repeated commands to draw a text along a line. Repeated draw text calls make the subpixel information lost and small errors will add-up.
2021-03-05Fix problem with fatal error messageFrancesco Abbate
Previous implementation was broken. Ensure the error file is always written and write its location in the error message
2021-03-05Implement fatal error message boxFrancesco Abbate
Used when lite-xl fails at startup
2021-03-05More accurate EXEDIR detectionFrancesco Abbate
Use ony the OS path separator to parse the executable filename
2021-03-05Merge branch 'subpixel-font-positioning'Francesco Abbate
2021-03-05Fix problem when launching from a different locationFrancesco Abbate
Should fix https://github.com/franko/lite-xl/issues/76 and https://github.com/franko/lite-xl/issues/67
2021-03-03Implement subpixel font positioningFrancesco Abbate
Subpixel positioning is only by 1/3 of pixel
2021-02-24do not use 'portable' as a compile time optionFrancesco Abbate
Introduce the file core/start.lua to initialize applications variables
2021-02-24Do not use nullptr and add checkFrancesco Abbate
2021-02-23Fix font rendering artifacts bugFrancesco Abbate
Seen with some fonts like FiraSans, github issue: https://github.com/franko/lite-xl/issues/46 The fix works essentially by looking to the bounds of each glyph to accurately ensure that there are no overlaps between the glyphs. The construction of the font atlas was changed to make some related improvements now that the bounds of each glyph are know. The main changes are: - no longer align glyph on the baseline but align them on their upper bounds. We ensure this way that very tall fonts do not leak in the upper part - terminate the row based on x bounds of the glyph to be more accurate - for each row keep trace of the y of the more larger along y of the glyph. The value is used to start a new row to be sure that the new now does not overlap with the previous one - sort glyphs by y size before drawing them. In this way the space utilization is better. The algorithm used is the very simple insert sort. It behaves like O(n^2) with the number of characters but should be ok since n is always small, typically below 128. - compute the optimal image width and height for the given font's atlas for optimal memory usage. As a bonus now the lite's code don't have to try and repeat to get a good image size
2021-02-16Move VERSION variable into Lua codeFrancesco Abbate
To avoid recreating binaries if there are no changes in the C side of the source code.
2021-01-13Bump 1.16 version numberFrancesco Abbate
2020-12-31Bump new version numberFrancesco Abbate
2020-12-31Keep memory of window's size and position and restore them on startFrancesco Abbate
Fix also a problem with directory path on windows.
2020-12-19Use ~ for HOME directory in folder searchFrancesco Abbate
2020-12-13Update readme and changelog for release 1.14v1.14-lite-xlFrancesco Abbate
2020-12-12Merge branch 'project-manager'Francesco Abbate
2020-12-10Add core:restart function to restart the editorFrancesco Abbate
2020-12-06Fix documentation and behavior for 1.13 releaseFrancesco Abbate
2020-12-04Implement optional font rendering optionsFrancesco Abbate
The user can now choose antialiasing grayscale and subpixel and hinting non, slight or full.
2020-12-04Always use HOME based user's config independently from portable optionFrancesco Abbate
2020-12-03Improve the implementation of unix-like directories usageFrancesco Abbate
Add a Meson option "portable" to choose between "portable" and unix-like directories. Add information about this option in the README. To determine the user's directory use the variable USERPROFILE only on Windows and use HOME otherwise. Implement the "portable" option in the package build script.
2020-12-02Fix some problems with user's directoryFrancesco Abbate
To accommodate the Window's platform prefer the USERPROFILE to HOME to set user's dir. Fix error, user's dir was not added to the package.path.
2020-12-02Implement user's config as init file and add directory into package.pathFrancesco Abbate
Create the user's config init file if lite user's config directory does not exists. No longer use the awkward package.searchers but instead add user's config dir at the end of package path.
2020-12-02First implementation of unix-like data directoryFrancesco Abbate
It basically works by setting the data directory to $prefix/share/lite-xl where $prefix is determined so that $prefix/bin corresponds to EXEDIR. The packages 'user' and 'user.*' are loaded from the directory '$HOME/.config/lite-xl'.
2020-11-21Fix cursor blinking problemFrancesco Abbate
The problem was that when the editor had no events the cursor was not blinking because the event loop was blocking on wait_event. Now we no longer calls wait_event without a timeout if the windows has the focus. When the window has the focus the timeout is set to 1 / fps so that the cursor can blinks. In addition we react to the "focus lost" event to ensure the documents are redrawn without the cursor.
2020-11-17Merge remote-tracking branch 'rxi/master'Francesco Abbate
2020-09-05Changed rencache to store font tab_width with font commandrxi
Fixes bug where text would be drawn/cached wrongly if more than one tab_width was used in a given frame
2020-08-19Merge remote-tracking branch 'rxi/master'Francesco Abbate
2020-07-05Version 1.11v1.11rxi
2020-07-04Merge remote-tracking branch 'rxi/master'Francesco Abbate
2020-06-29Fix SDL2 include directivesFrancesco Abbate
2020-06-28Version 1.10v1.10rxi