@RajeshD It is not entirely clear to me what you want to do, so you want to enter a character using the mouse
as they do here, for example? And you want to determine the number of holes, self-crossings, etc? I'm sure that it shouldn't be too hard to implement.