June 8, 2009
3:49 p.m.
TTGlyph subclass: #TTCompositeGlyph instanceVariableNames: 'glyphs' classVariableNames: '' poolDictionaries: '' category: 'TrueType-Fonts' This class represents a composite TrueType glyph, e.g.one which contains many simple TTGlyphs. Does a TTCompositeGlyph needs all the state from its superclass? Alain I'm going over the super initialize cs now. TTGlyph>>initialize bounds := 0@0 corner: 0@0. contours := #(). advanceWidth := 0. leftSideBearing := 0. rightSideBearing := 0. but in the subclass TTCompositeGlyph>>contours ^contours ifNil:[contours := self computeContours] so if we change the initialize of the subclass then the countours will be never computed.... Stef