diff options
author | reed <reed@google.com> | 2014-11-04 10:58:42 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-04 10:58:42 -0800 |
commit | 36c9c11ed97d6c6f49bfdad53537a459b9e4b41d (patch) | |
tree | 3ecf5fff8e0323ae5f838347bb74fe0f6bc5e904 /resources | |
parent | 4b86bacb0428b07cba01fd46452d5c46e6f21af0 (diff) |
add more typeface methods to lua
BUG=skia:
NOTRY=True
TBR=
Review URL: https://codereview.chromium.org/697053004
Diffstat (limited to 'resources')
-rw-r--r-- | resources/slides.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/slides.lua b/resources/slides.lua index cf1a1a6229..df9fc47bd6 100644 --- a/resources/slides.lua +++ b/resources/slides.lua @@ -110,7 +110,7 @@ function drawSlide(canvas, slide, master_template) local blob, newBottom = Sk.newTextBlob(node.text, bounds, paint) draw_bullet(canvas, x + x_offset, y - fm.ascent, paint, node.indent) canvas:drawTextBlob(blob, 0, 0, paint) - y = newBottom + paint:getTextSize() * .5 + y = newBottom + paint:getTextSize() * .5 + extra_dy if gShowBounds then bounds.bottom = newBottom @@ -141,8 +141,8 @@ function SkiaPoint_make_template() margin_y = 25, } slide[1] = make_tmpl(make_paint("Arial", 1, 35, { a=1, r=1, g=1, b=1 }), 18) - slide[2] = make_tmpl(make_paint("Arial", 0, 25, { a=1, r=1, g=1, b=1 }), 0) - slide[3] = make_tmpl(make_paint("Arial", 0, 20, { a=1, r=.9, g=.9, b=.9 }), 0) + slide[2] = make_tmpl(make_paint("Arial", 0, 25, { a=1, r=1, g=1, b=1 }), 10) + slide[3] = make_tmpl(make_paint("Arial", 0, 20, { a=1, r=.9, g=.9, b=.9 }), 5) return { title = title, |