textAlign : Align Text on Canvas

Select the radio button to change the textAlign value.
left: Text is left aligned.
right: Text is right aligned.
center: Text is centered .
start: Aligned to start. Text is left aligned for left-to-right locales, and right aligned for right-to-left locales
end: Aligned to end. Text is right alinged for left-to-right locales, and left alinged for right-to-left locales.
var my_canvas=$('#my_canvas').get(0)
var gctx = my_canvas.getContext("2d");


* indicates required
Subscribe to plus2net


    Post your comments , suggestion , error , requirements etc here .

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer