Changeset 417 for nodebox/trunk/src

Show
Ignore:
Timestamp:
04/08/08 13:54:04 (9 months ago)
Author:
fdb
Message:

Tesselation example.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • nodebox/trunk/src/nodebox/graphics/cocoa.py

    r361 r417  
    11531153        path = NSBezierPath.bezierPath() 
    11541154        for glyphIndex in range(length): 
    1155             lineFragmentRect = layoutManager.lineFragmentRectForGlyphAtIndex_effectiveRange_(glyphIndex) 
     1155            lineFragmentRect = layoutManager.lineFragmentRectForGlyphAtIndex_effectiveRange_(glyphIndex, None) 
    11561156            layoutPoint = layoutManager.locationForGlyphAtIndex_(glyphIndex) 
    11571157            # 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]] 
    11591159            finalPoint[0] += layoutPoint[0] - dx 
    11601160            finalPoint[1] += layoutPoint[1] - dy