Is text style of canvas 2dcontext order-sensitive?

Hi guys,

 

I am now reading the spec of 2dcontext: http://www.w3.org/TR/2dcontext/, I do want to understand if it is order-sensitive,



 

I am using a style like “italic 12px arial bold” and "italic bold 12px arial". They have different behaviors in the same browser. I am aware of the fact that it tries to align with the definition of css fonts. However, css fonts appears to be key-value style but the definition of text styles in canvas 2dcontext is definitely a normal string. I guess it’s supposed to be very important to figure out the meaning of order. Or do I miss any points important?

 

Thanks,

-David

Received on Friday, 19 December 2014 03:27:01 UTC