Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: third_party/freetype/src/cff/cf2hints.c

Issue 1413673003: Update bundled freetype to 2.6.1 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: DEPS for corpus Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/freetype/src/cff/cf2ft.c ('k') | third_party/freetype/src/cff/cf2intrp.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « third_party/freetype/src/cff/cf2ft.c ('k') | third_party/freetype/src/cff/cf2intrp.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698