From 54657bb74c8fb24b9e0896018dc6bd568429e7d3 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Wed, 2 May 2012 16:03:01 +0200 Subject: [PATCH] use hpkfont for ruler, increase size and fix aligment #35 This is maximum font size which allows vertical ruler to have spacing between vertical letters. --- unireader.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unireader.lua b/unireader.lua index 9088025f4..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