Update by TenPlus1
8
api.lua
@ -536,7 +536,7 @@ local function make_line_texture(line, lineno, pos, line_width, line_height, cwi
|
|||||||
|
|
||||||
-- We check which chars are available here.
|
-- We check which chars are available here.
|
||||||
for word_i, word in ipairs(line) do
|
for word_i, word in ipairs(line) do
|
||||||
local chars = { }
|
local chars = {}
|
||||||
local ch_offs = 0
|
local ch_offs = 0
|
||||||
local word_l = #word
|
local word_l = #word
|
||||||
local i = 1
|
local i = 1
|
||||||
@ -594,7 +594,7 @@ local function make_line_texture(line, lineno, pos, line_width, line_height, cwi
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if w then
|
if w then
|
||||||
width = width + w + 1
|
width = width + w
|
||||||
if width >= (line_width - cwidth_tab[" "]) then
|
if width >= (line_width - cwidth_tab[" "]) then
|
||||||
width = 0
|
width = 0
|
||||||
else
|
else
|
||||||
@ -626,7 +626,7 @@ local function make_line_texture(line, lineno, pos, line_width, line_height, cwi
|
|||||||
else
|
else
|
||||||
local w = cwidth_tab[c]
|
local w = cwidth_tab[c]
|
||||||
if w then
|
if w then
|
||||||
width = width + w + 1
|
width = width + w
|
||||||
if width >= (line_width - cwidth_tab[" "]) then
|
if width >= (line_width - cwidth_tab[" "]) then
|
||||||
width = 0
|
width = 0
|
||||||
else
|
else
|
||||||
@ -644,7 +644,7 @@ local function make_line_texture(line, lineno, pos, line_width, line_height, cwi
|
|||||||
end
|
end
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
width = width + cwidth_tab[" "] + 1
|
width = width + cwidth_tab[" "]
|
||||||
maxw = math_max(width, maxw)
|
maxw = math_max(width, maxw)
|
||||||
table.insert(words, { chars=chars, w=ch_offs })
|
table.insert(words, { chars=chars, w=ch_offs })
|
||||||
end
|
end
|
||||||
|
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 84 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 86 B |