#tinyJStip
Did you know that you can get the relative position of every letter of your #canvas text with:

context.measureText('hello there!').advances

#js #JavaScript #coding #frontend #webDev #webDevelopment #array

@anatudor I'm loving these tips! 

@anatudor unfortunately doesn't work in Brave 😕

They've decided it's a privacy violation. Many canvas libraries, such as Chart.js, are partially broken in Brave due to this.