| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* cf2hints.c */ | 3 /* cf2hints.c */ |
| 4 /* */ | 4 /* */ |
| 5 /* Adobe's code for handling CFF hints (body). */ | 5 /* Adobe's code for handling CFF hints (body). */ |
| 6 /* */ | 6 /* */ |
| 7 /* Copyright 2007-2014 Adobe Systems Incorporated. */ | 7 /* Copyright 2007-2014 Adobe Systems Incorporated. */ |
| 8 /* */ | 8 /* */ |
| 9 /* This software, and all works of authorship, whether in source or */ | 9 /* This software, and all works of authorship, whether in source or */ |
| 10 /* object code form as indicated by the copyright notice(s) included */ | 10 /* object code form as indicated by the copyright notice(s) included */ |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 } | 690 } |
| 691 else | 691 else |
| 692 { | 692 { |
| 693 if ( firstHintEdge->dsCoord > hintmap->edge[indexInsert].dsCoord ) | 693 if ( firstHintEdge->dsCoord > hintmap->edge[indexInsert].dsCoord ) |
| 694 return; | 694 return; |
| 695 } | 695 } |
| 696 } | 696 } |
| 697 | 697 |
| 698 /* make room to insert */ | 698 /* make room to insert */ |
| 699 { | 699 { |
| 700 CF2_Int iSrc = hintmap->count - 1; | 700 CF2_UInt iSrc = hintmap->count - 1; |
| 701 CF2_Int iDst = isPair ? hintmap->count + 1 : hintmap->count; | 701 CF2_UInt iDst = isPair ? hintmap->count + 1 : hintmap->count; |
| 702 | 702 |
| 703 CF2_Int count = hintmap->count - indexInsert; | 703 CF2_UInt count = hintmap->count - indexInsert; |
| 704 | 704 |
| 705 | 705 |
| 706 if ( iDst >= CF2_MAX_HINT_EDGES ) | 706 if ( iDst >= CF2_MAX_HINT_EDGES ) |
| 707 { | 707 { |
| 708 FT_TRACE4(( "cf2_hintmap_insertHint: too many hintmaps\n" )); | 708 FT_TRACE4(( "cf2_hintmap_insertHint: too many hintmaps\n" )); |
| 709 return; | 709 return; |
| 710 } | 710 } |
| 711 | 711 |
| 712 while ( count-- ) | 712 while ( count-- ) |
| 713 hintmap->edge[iDst--] = hintmap->edge[iSrc--]; | 713 hintmap->edge[iDst--] = hintmap->edge[iSrc--]; |
| (...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1838 /* reset state machine */ | 1838 /* reset state machine */ |
| 1839 glyphpath->moveIsPending = TRUE; | 1839 glyphpath->moveIsPending = TRUE; |
| 1840 glyphpath->pathIsOpen = FALSE; | 1840 glyphpath->pathIsOpen = FALSE; |
| 1841 glyphpath->pathIsClosing = FALSE; | 1841 glyphpath->pathIsClosing = FALSE; |
| 1842 glyphpath->elemIsQueued = FALSE; | 1842 glyphpath->elemIsQueued = FALSE; |
| 1843 } | 1843 } |
| 1844 } | 1844 } |
| 1845 | 1845 |
| 1846 | 1846 |
| 1847 /* END */ | 1847 /* END */ |
| OLD | NEW |