font : Size and font family on a Canvas

Select the radio button to change the font value.
gctx.font= value;
value : CSS font value, you can generate CSS font style here
var my_canvas=$('#my_canvas').get(0)
var gctx = my_canvas.getContext("2d");
gctx.font = '18px sans-serif';
gctx.fillText('', 100,100);


* 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 All rights reserved worldwide Privacy Policy Disclaimer