Text Collision Detection
问题 I am building a web application that draws a set of letters in different fonts on an HTML 5 Canvas using fillText . The user will click somewhere on that canvas and I need to check which letter they clicked on (or if they clicked on a letter at all). I think I will need to: Get the vector path for each letter (I have no clue how to do this). Check if the click point is inside the letter path using some simple collision-detection algorithm. Is there some easy function to do this that I am