You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mitchell edited this page Dec 12, 2020
·
2 revisions
Adjust font size independently from the theme file
Add to your ~/.textadept/init.lua:
local function fontsize()
local c = _SCINTILLA.constants
local buffer = buffer
buffer.zoom = 2 -- e.g. add 2 points to the font size
buffer.margin_width_n[1] = 4 + 3 * buffer:text_width(c.STYLE_LINENUMBER, '9')
end
events.connect(events.BUFFER_AFTER_SWITCH, fontsize)
events.connect(events.VIEW_AFTER_SWITCH, fontsize)