Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Unified Diff: resources/slides.lua

Issue 697053004: add more typeface methods to lua (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/utils/SkLua.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: resources/slides.lua
diff --git a/resources/slides.lua b/resources/slides.lua
index cf1a1a6229fedf3180a9aee368751ac22b307f2e..df9fc47bd6a94c5ead0d45a28b5a1eb579a58718 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,
« no previous file with comments | « no previous file | src/utils/SkLua.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698