Follow-up Comment #7, bug #36166 (project maposmatic):

Jeroen,

To get the size of some text, you can use code similar to
label_drawing_width():
 
http://git.savannah.gnu.org/cgit/maposmatic/ocitysmap.git/tree/ocitysmap2/indexlib/commons.py#n127


Also, do not forget to use ctx.save() and ctx.restore() to save and restore
the cairo context before and after changing it.

Good luck!
d.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?36166>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/


Reply via email to