Write in circle

Former Member
Former Member
Hi everybody,

Anyone can say me if existe a function or a method to write around a circle with a rotation of the letters of the word.

Thanks for all and your help
  • This is not something that can be done using the built-in font system. There is no transform that is applied, so the framework is only able to rasterize characters in their original orientation.

    You could choose to use a bitmap that has the characters pre-baked into the positions you want. This would be the typical solution, but it won't work for all applications. You could also write code to generate your characters using dc.fillPolygon(), and then you could transform the points for each character before rendering to get the effect you want. It won't be fast, but it can be made to work. You can see how to do this by looking at the code for the analog clock example. You could take it a step further and write code to apply an affine transformation matrix when drawing things.

    Travis