Changeset 121

Show
Ignore:
Timestamp:
12/19/07 10:37:09 (1 year ago)
Author:
tal
Message:
Formatting.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • packages/fontMath/trunk/Lib/fontMath/mathKerning.py

    r120 r121  
    3333    def updateGroups(self, groups): 
    3434        self._groupMap = {} 
    35         # 
    3635        groupDict = groups 
    3736        groupMap = self._groupMap 
    38         # 
    3937        for groupName, glyphList in groupDict.items(): 
    4038            if not groupName.startswith("@"): 
     
    9189        if self._kerning.has_key(pair): 
    9290            return self._kerning[pair] 
    93         # 
     91 
    9492        left, right = pair 
    95         # 
    9693        potentialLeft = [left] 
    9794        potentialLeft.extend(self._groupMap.get(left, [])) 
    9895        potentialRight = [right] 
    9996        potentialRight.extend(self._groupMap.get(right, [])) 
    100         # 
     97 
    10198        notClassed = [] 
    10299        halfClassed = [] 
     
    154151        SINGLE_TYPE = "single" 
    155152        EXCEPTION_TYPE = "exception" 
    156         # 
     153 
    157154        leftType = SINGLE_TYPE 
    158155        rightType = SINGLE_TYPE 
     
    163160        if right[0] == "@": 
    164161            rightType = CLASS_TYPE 
    165         # 
     162 
    166163        if self._kerning.has_key(pair): 
    167164            potLeft = [left] 
     
    173170                    for groupName in self._groupMap[right]: 
    174171                        potRight.append(groupName) 
    175             # 
    176172            hits = [] 
    177173            for left in potLeft: 
     
    208204            v = funct(v1, v2) 
    209205            kerning[k] = v 
    210         # 
    211206        g1 = self.groups() 
    212207        g2 = other.groups() 
     
    220215                s2 = Set(g2.get(groupName, [])) 
    221216                groups[groupName] = list(s1 | s2) 
    222         # 
    223217        ks = MathKerning(kerning, groups) 
    224218        return ks