The Trunk: Graphics-nice.115.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-nice.115.mcz

commits-2
Nicolas Cellier uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-nice.115.mcz

==================== Summary ====================

Name: Graphics-nice.115
Author: nice
Time: 28 February 2010, 7:39:34.808 pm
UUID: e9412d55-5eab-884e-95b1-230b598cfa8f
Ancestors: Graphics-nice.114

1) Fix endOfRun and crossedX encodings in paragraph composition - Part 4 (clean-up)
2) Workaround after setting Unicode leadingChar = 0 :
CharacterScanner does not understand #scanMultiCharactersCombiningFrom:to:in:rightX:stopConditions:kern:


=============== Diff against Graphics-nice.114 ===============

Item was changed:
  ----- Method: CharacterScanner class>>initialize (in category 'class initialization') -----
  initialize
  "
  CharacterScanner initialize
  "
  | a |
+ a := Array new: 256.
- a := Array new: 258.
  a at: 1 + 1 put: #embeddedObject.
  a at: Tab asciiValue + 1 put: #tab.
  a at: CR asciiValue + 1 put: #cr.
  a at: Character lf asciiValue + 1 put: #cr.
- a at: EndOfRun put: #endOfRun.
- a at: CrossedX put: #crossedX.
  a := TextStopConditions new setStops: a.
+
  NilCondition := a copy.
  DefaultStopConditions := a copy.
 
  PaddedSpaceCondition := a copy.
  PaddedSpaceCondition at: Space asciiValue + 1 put: #paddedSpace.
 
  SpaceCondition := a copy.
  SpaceCondition at: Space asciiValue + 1 put: #space.
  !

Item was changed:
  ----- Method: TextStopConditions>>setStops: (in category 'initialize-release') -----
  setStops: stopArray
+ stops := stopArray!
- stops := stopArray copyFrom: 1 to: 256.
- endOfRun := stopArray at: 257.
- crossedX := stopArray at: 258.!

Item was changed:
  ----- Method: CharacterScanner>>initializeStringMeasurer (in category 'initialize') -----
  initializeStringMeasurer
  | stops |
+ stops := Array new: 256.
- stops := Array new: 258.
- stops at: CrossedX put: #crossedX.
- stops at: EndOfRun put: #endOfRun.
  stopConditions := TextStopConditions new setStops: stops.
  !

Item was added:
+ ----- Method: CharacterScanner>>scanMultiCharactersCombiningFrom:to:in:rightX:stopConditions:kern: (in category 'scanner methods') -----
+ scanMultiCharactersCombiningFrom: startIndex to: stopIndex in: sourceString rightX: rightX stopConditions: stops kern: kernDelta
+ "Implement a workaround for unicode composing.
+ a MultiCharacterScanner should better be used to handle combination."
+
+ ^self scanMultiCharactersFrom: startIndex to: stopIndex in: sourceString rightX: rightX stopConditions: stops kern: kernDelta!

Item was changed:
  (PackageInfo named: 'Graphics') postscript: '"below, add code to be run after the loading of this package"
+ StrikeFont installDejaVu.'!
- StrikeFont installDejaVu.
- CharacterScanner initialize.'!