src/font/text.js
function(context, font, stroke) {
        context.font = font.font;
        context.fillStyle = font.fillStyle.toRGBA();
        if (stroke === true) {
            context.strokeStyle = font.strokeStyle.toRGBA();
            context.lineWidth = font.lineWidth;
        }
        context.textAlign = font.textAlign;
        context.textBaseline = font.textBaseline;
    }
function(context, font, stroke) {
        context.font = font.font;
        context.fillStyle = font.fillStyle.toRGBA();
        if (stroke === true) {
            context.strokeStyle = font.strokeStyle.toRGBA();
            context.lineWidth = font.lineWidth;
        }
        context.textAlign = font.textAlign;
        context.textBaseline = font.textBaseline;
    }
function ( context , font , stroke ) { context . font = font . font ; context . fillStyle = font . fillStyle . toRGBA ( ) ; if ( stroke === true ) { context . strokeStyle = font . strokeStyle . toRGBA ( ) ; context . lineWidth = font . lineWidth ; } context . textAlign = font . textAlign ; context . textBaseline = font . textBaseline ; }
apply the current font style to the given context
@ignore
apply the current font style to the given context