Squeak Class Documentation category index | class index  
 
TTContourConstruction
  category: Balloon-TrueType Support
  superclass: Object
  subclasses:

This class represents a temporary contour structure during the construction of a TTGlyph from a TrueType file.

Instance variables:
points <Array of: TTPoint> The points defining this contour

instance methods
  accessing
  points
points:
segments

  converting
  asCompressedPoints

  enumerating
  segmentsDo:

  printing
  printOn:

class methods
  instance creation
  on:

instance methods
  accessing top  
 

points


 

points:


 

segments


  converting top  
 

asCompressedPoints

Return the receiver compressed into a PointArray.
All lines will be converted into bezier segments with
the control point set to the start point


  enumerating top  
 

segmentsDo:

Evaluate aBlock with the segments of the receiver. This may either be straight line
segments or quadratic bezier curves. The decision is made upon the type flags
in TTPoint as follows:
a) To subsequent #OnCurve points define a straight segment
b) A #OnCurve point followed by a #OffCurve point followed
by a #TT_ONCURVE point defines a quadratic bezier segment
c) Two subsequent #OffCurve points have an implicitely defined
#OnCurve point at half the distance between them


  printing top  
 

printOn:

Append to the argument, aStream, a sequence of characters that
identifies the receiver.


class methods
  instance creation top  
 

on: