Changeset 417 for nodebox/trunk
- Timestamp:
- 04/08/08 13:54:04 (9 months ago)
- Files:
-
- 1 modified
-
nodebox/trunk/src/nodebox/graphics/cocoa.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
nodebox/trunk/src/nodebox/graphics/cocoa.py
r361 r417 1153 1153 path = NSBezierPath.bezierPath() 1154 1154 for glyphIndex in range(length): 1155 lineFragmentRect = layoutManager.lineFragmentRectForGlyphAtIndex_effectiveRange_(glyphIndex )1155 lineFragmentRect = layoutManager.lineFragmentRectForGlyphAtIndex_effectiveRange_(glyphIndex, None) 1156 1156 layoutPoint = layoutManager.locationForGlyphAtIndex_(glyphIndex) 1157 1157 # Here layoutLocation is the location (in container coordinates) where the glyph was laid out. 1158 finalPoint = [lineFragmentRect[0][0] [0],lineFragmentRect[0][0][1]]1158 finalPoint = [lineFragmentRect[0][0],lineFragmentRect[0][1]] 1159 1159 finalPoint[0] += layoutPoint[0] - dx 1160 1160 finalPoint[1] += layoutPoint[1] - dy
