diff --git a/unireader.lua b/unireader.lua index 8727b69fe..22172173f 100644 --- a/unireader.lua +++ b/unireader.lua @@ -2241,7 +2241,7 @@ function UniReader:addAllCommands() max = max / step if max > #keys then max = #keys end - local face = Font:getFace("cfont", 10) + local face = Font:getFace("hpkfont", 11) for i = 1, max, 1 do local key = keys[i] @@ -2256,7 +2256,7 @@ function UniReader:addAllCommands() end if x_direction < 0 then tick = tick - step end tick = tick - step * x_direction / 2 - renderUtf8Text(fb.bb, x_s+tick+3, y_s+3, face, key) + renderUtf8Text(fb.bb, x_s+tick+2, y_s+4, face, key) else local tick = i * step * y_direction debug("y tick",i,tick,key) @@ -2267,7 +2267,7 @@ function UniReader:addAllCommands() end if y_direction > 0 then tick = tick + step end tick = tick - step * y_direction / 2 - renderUtf8Text(fb.bb, x_s-3, y_s+tick-3, face, key) + renderUtf8Text(fb.bb, x_s-3, y_s+tick-1, face, key) end end end @@ -2287,8 +2287,8 @@ function UniReader:addAllCommands() x,y,w,h = unireader:getRectInScreen( new_bbox["x0"], new_bbox["y0"], new_bbox["x1"], new_bbox["y1"] ) fb.bb:invertRect( x,y, w,h ) --fb.bb:invertRect( x+1,y+1, w-2,h-2 ) -- just border? - InfoMessage:show("new page bbox"); - fb:refresh(1) + showInfoMsgWithDelay("new page bbox", 2000, 1); + self:redrawCurrentPage() self.rcount = self.rcountmax -- force next full refresh