diff options
Diffstat (limited to 'samplecode/SampleLua.cpp')
-rw-r--r-- | samplecode/SampleLua.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/samplecode/SampleLua.cpp b/samplecode/SampleLua.cpp index 1ad89f9d54..fb40087a12 100644 --- a/samplecode/SampleLua.cpp +++ b/samplecode/SampleLua.cpp @@ -49,6 +49,11 @@ static const char gCode[] = "" " path:quadTo(rndX(), rndY(), rndX(), rndY());" " end " " canvas:drawPath(path, path_paint);" + "" + " paint:setTypeface(Sk.newTypeface('Times', 1));" + " paint:setColor{a = 1, r=0, g=0, b = 1};" + " paint:setTextSize(70);" + " canvas:drawText('Hamburgefons', 50, 200, paint);" "end " "" "function onDrawContent(canvas) " |