diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-05-15 07:40:57 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-05-15 07:40:57 +0000 |
commit | 92486d080fa886f318db483b6580ad6dbcc83b56 (patch) | |
tree | bfd5391d1a96332be83bd298e0d393574ea011d7 /Build/source/libs | |
parent | 8b20f8e53984d594f3200df8dd853a77bc2d7a1c (diff) |
graphite: Update from SIL SVN repository r1333
git-svn-id: svn://tug.org/texlive/trunk@26397 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs')
4 files changed, 42 insertions, 4 deletions
diff --git a/Build/source/libs/README b/Build/source/libs/README index afd90015ff2..056a5944f49 100644 --- a/Build/source/libs/README +++ b/Build/source/libs/README @@ -19,10 +19,10 @@ gd 2.0.35 - unchecked 10may12, libgd still down http://www.boutell.com/gd/ https://bitbucket.org/pierrejoye/gd-libgd/overview -graphite 2.4 - checked 4may12 +graphite 2.4 - checked 15may12 the directory silgraphite/engine/ from http://scripts.sil.org/svn-public/graphite/graphite/trunk - (svn r1315 2012-05-03 17:45:36 UTC). + (svn r1333 2012-05-14 14:47:16 UTC, omitting changes in test/). icu 49.1 (49.1 release) - http://download.icu-project.org/files/icu4c/ with modifications required for xetex, also used by bibtexu diff --git a/Build/source/libs/graphite/engine-2.4-PATCHES/ChangeLog b/Build/source/libs/graphite/engine-2.4-PATCHES/ChangeLog index 4dc12d78dbd..065e9e2e11c 100644 --- a/Build/source/libs/graphite/engine-2.4-PATCHES/ChangeLog +++ b/Build/source/libs/graphite/engine-2.4-PATCHES/ChangeLog @@ -1,3 +1,8 @@ +2012-05-15 Peter Breitenlohner <peb@mppmu.mpg.de> + + * patch-13-svn_r1315_1333 (new): Update from SVN r1315 -> 1333. + (svn r1333 2012-05-14 14:47:16 UTC, omitting changes in test/). + 2012-05-04 Peter Breitenlohner <peb@mppmu.mpg.de> * patch-12-svn_r1312_1315 (new): Update from SVN r1312 -> 1315. diff --git a/Build/source/libs/graphite/engine-2.4-PATCHES/patch-13-svn_r1315_1333 b/Build/source/libs/graphite/engine-2.4-PATCHES/patch-13-svn_r1315_1333 new file mode 100644 index 00000000000..a9c5c7917f8 --- /dev/null +++ b/Build/source/libs/graphite/engine-2.4-PATCHES/patch-13-svn_r1315_1333 @@ -0,0 +1,31 @@ +diff -ur engine-2.4.orig/src/font/Font.cpp engine-2.4/src/font/Font.cpp +--- engine-2.4.orig/src/font/Font.cpp 2010-05-22 20:35:07.000000000 +0200 ++++ engine-2.4/src/font/Font.cpp 2012-05-14 16:47:16.000000000 +0200 +@@ -174,6 +174,7 @@ + if (m_pLoca == 0) return; + + size_t cContours; ++ size_t cEndPoints; + size_t cPoints; + + const size_t CONTOUR_BUF_SIZE = 16; +@@ -191,8 +192,9 @@ + rgnEndPtHeapBuf = new int[cContours] : + rgnEndPtFixedBuf; + ++ cEndPoints = cContours; + if (!TtfUtil::GlyfContourEndPoints(glyphID, m_pGlyf, m_pLoca, m_cbLocaSize, m_pHead, +- prgnEndPt, cContours)) ++ prgnEndPt, cEndPoints)) //cEndPonts will be zero on return + { + return; // should have been caught above + } +@@ -203,7 +205,7 @@ + int * prgnY = (cPoints > POINT_BUF_SIZE) ? rgnYHeapBuf= new int[cPoints] : rgnYFixedBuf; + + if (TtfUtil::GlyfPoints(glyphID, m_pGlyf, m_pLoca, m_cbLocaSize, m_pHead, 0, 0, +- prgnX, prgnY, prgfOnCurve, cPoints)) ++ prgnX, prgnY, prgfOnCurve, cPoints)) //cPoints will be zero on return + { + float nPixEmSquare; + getFontMetrics(0, 0, &nPixEmSquare); diff --git a/Build/source/libs/graphite/engine-2.4/src/font/Font.cpp b/Build/source/libs/graphite/engine-2.4/src/font/Font.cpp index bfeed78605f..b527769e0fb 100644 --- a/Build/source/libs/graphite/engine-2.4/src/font/Font.cpp +++ b/Build/source/libs/graphite/engine-2.4/src/font/Font.cpp @@ -174,6 +174,7 @@ void Font::getGlyphPoint(gid16 glyphID, unsigned int pointNum, Point & pointRetu if (m_pLoca == 0) return; size_t cContours; + size_t cEndPoints; size_t cPoints; const size_t CONTOUR_BUF_SIZE = 16; @@ -191,8 +192,9 @@ void Font::getGlyphPoint(gid16 glyphID, unsigned int pointNum, Point & pointRetu rgnEndPtHeapBuf = new int[cContours] : rgnEndPtFixedBuf; + cEndPoints = cContours; if (!TtfUtil::GlyfContourEndPoints(glyphID, m_pGlyf, m_pLoca, m_cbLocaSize, m_pHead, - prgnEndPt, cContours)) + prgnEndPt, cEndPoints)) //cEndPonts will be zero on return { return; // should have been caught above } @@ -203,7 +205,7 @@ void Font::getGlyphPoint(gid16 glyphID, unsigned int pointNum, Point & pointRetu int * prgnY = (cPoints > POINT_BUF_SIZE) ? rgnYHeapBuf= new int[cPoints] : rgnYFixedBuf; if (TtfUtil::GlyfPoints(glyphID, m_pGlyf, m_pLoca, m_cbLocaSize, m_pHead, 0, 0, - prgnX, prgnY, prgfOnCurve, cPoints)) + prgnX, prgnY, prgfOnCurve, cPoints)) //cPoints will be zero on return { float nPixEmSquare; getFontMetrics(0, 0, &nPixEmSquare); |