lite-xl/src
Francesco b046afccf9
Scale fonts context menu (#246)
* Retrieve scale plugin from lite-plugins

* New implementation of scale plugin and font C API

Introduce two new C API functions, renderer.font.get_size and set_size
respectively to get the font size and to set the size to a new value.

Using these functions we don't need to know the name of the font but
we can just change their size.

Adapt the scale plugin to use the new C API function with minor adaptations
in the logic.

Use smaller step to scale fonts.

Rename font_desc_free function, previous name was misleading as only the cached
resources are freed.

* Add contextmenu plugin from takase

From https://github.com/takase1121/lite-contextmenu

Adapted to show font scaling commands and find/replace commands.

i#	testing.lua

* Fix the cursor flickering with contextmenu

To avoid flickering of the cursor when using the context menu
we add a new function `core.request_cursor` that just take note
of the cursor requested.

The cursor will be actually changed only in root_view:draw() method
only when all the drawing operations are done. This means the cursor
will be changed only once per frame and only the most recent cursor
change request will take effect.

* Remove unneeded scale plugin return functions
2021-06-03 22:49:37 +02:00
..
api Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
bundle_open.m Enable lite-xl to be started from a symlink to the deployed binary (#249) 2021-06-03 21:48:15 +02:00
fontdesc.c Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
fontdesc.h Scale fonts context menu (#246) 2021-06-03 22:49:37 +02:00
main.c Enable lite-xl to be started from a symlink to the deployed binary (#249) 2021-06-03 21:48:15 +02:00
meson.build Add PCRE to support regular expressions 2021-06-02 21:27:00 +02:00
rencache.c Fix crash problem with rencache and font access 2021-05-21 23:38:54 +02:00
rencache.h Fix crash problem with rencache and font access 2021-05-21 23:38:54 +02:00
renderer.c Make usage of SDL renderer optional 2021-04-29 14:15:24 +02:00
renderer.h Make usage of SDL renderer optional 2021-04-29 14:15:24 +02:00
renwindow.c More accurate update rects / show window / present sequence 2021-05-06 09:00:36 +02:00
renwindow.h Make usage of SDL renderer optional 2021-04-29 14:15:24 +02:00