Squeak Class Documentation category index | class index  
 
TTGlyph
  category: Balloon-TrueType Fonts
  superclass: Object
  subclasses: TTCompositeGlyph

This class represents a glyph of a TrueType font.

Instance variables:
bounds <Rectangle> The receiver's bounds
contours <Array of: PointArray> The compressed contours in the receiver
advanceWidth <Integer> advance width of the glyph
leftSideBearing <Integer> left side bearing
rightSideBearing <Integer> right side bearing
glyphIndex <Integer> the original index of the glyph (used for kerning)

instance methods
  accessing
  advanceWidth
advanceWidth:
bounds
bounds:
contours
contours:
glyphIndex
glyphIndex:
glyphsAndTransformationsDo:
leftSideBearing
leftSideBearing:
rightSideBearing
rightSideBearing:

  converting
  asFormWithScale:ascender:descender:
asFormWithScale:ascender:descender:fgColor:bgColor:

  initialize-release
  initialize

  printing
  printOn:

  private
  display
flipAroundY

  private-initialization
  buildContours
initializeContours:with:
updateRightSideBearing

  testing
  isComposite

class methods
  instance creation
  new

instance methods
  accessing top  
 

advanceWidth


 

advanceWidth:


 

bounds


 

bounds:


 

contours


 

contours:


 

glyphIndex


 

glyphIndex:


 

glyphsAndTransformationsDo:


 

leftSideBearing


 

leftSideBearing:


 

rightSideBearing


 

rightSideBearing:


  converting top  
 

asFormWithScale:ascender:descender:


 

asFormWithScale:ascender:descender:fgColor:bgColor:


  initialize-release top  
 

initialize


  printing top  
 

printOn:

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


  private top  
 

display


 

flipAroundY


  private-initialization top  
 

buildContours

Build the contours in the receiver glyph.
The contour is constructed by converting the points
form each contour into an absolute value and then
compressing the contours into PointArrays.


 

initializeContours:with:

Initialize the contours for creation of the glyph.


 

updateRightSideBearing

Update the right side bearing value


  testing top  
 

isComposite


class methods
  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.