Charles Hartman
Fri, 07 Aug 2009 20:14:33 -0700
I have lines of text in a proportional font. Within each line I have the index of a certain character. I want to adjust each line horizontally so those indexed characters are vertically aligned. Since I obviously can't just count characters as with a monospaced font, how do I go about translating from character index in the line to pixels?
Any hint much appreciated. (Any nudge toward pre-existing libraries or functions, even more!) This is all within wxPython, if that matters; I don't see anything in the wx.StyledTextControl documentation that looks helpful, and I imagine I need something lower- level.
Charles Hartman _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig