[squeak-dev] The Trunk: TrueType-ul.18.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Jun 18 08:58:58 UTC 2011
Levente Uzonyi uploaded a new version of TrueType to project The Trunk:
http://source.squeak.org/trunk/TrueType-ul.18.mcz
==================== Summary ====================
Name: TrueType-ul.18
Author: ul
Time: 17 June 2011, 4:48:18.23 pm
UUID: 4a63aad7-2f35-f849-8920-9b8cf1d37f0f
Ancestors: TrueType-ar.17
- Use #displayProgressFrom:to:during: instead of #displayProgressAt:from:to:during:.
=============== Diff against TrueType-ar.17 ===============
Item was changed:
----- Method: TTFontReader>>processGlyphDataTable:offsets: (in category 'processing') -----
processGlyphDataTable: entry offsets: offsetArray
"Read the actual glyph data from the font.
offsetArray contains the start offsets in the data for each glyph."
| initialOffset |
initialOffset := entry offset.
glyphs := Array new: nGlyphs.
1 to: nGlyphs do:[:i |
glyphs at: i put: (TTGlyph new glyphIndex: i-1)].
'Reading glyph data'
+ displayProgressFrom: 1
+ to: nGlyphs
+ during:[:bar| | nContours glyphOffset origin corner glyphLength glyph nextOffset |
- displayProgressAt: Sensor cursorPoint
- from: 1 to: nGlyphs during:[:bar| | nContours glyphOffset origin corner glyphLength glyph nextOffset |
1 to: nGlyphs do:[:glyphIndex |
bar value: glyphIndex.
glyph := glyphs at: glyphIndex.
glyphOffset := offsetArray at: glyphIndex.
nextOffset := offsetArray at: glyphIndex+1.
glyphLength := nextOffset - glyphOffset.
glyphLength = 0 ifFalse:[
entry offset: initialOffset + glyphOffset.
nContours := entry nextShort.
origin := entry nextShort @ entry nextShort.
corner := entry nextShort @ entry nextShort.
glyph bounds: (origin corner: corner).
nContours >= 0 ifTrue:[
self processSimpleGlyph: glyph contours: nContours from: entry
] ifFalse:[
glyph := self processCompositeGlyph: glyph contours: nContours from: entry.
glyphs at: glyphIndex put: glyph]]]
].!
More information about the Squeak-dev
mailing list
|