Репозитории ALT
S: | 5.1.2-alt7 |
D: | 5.1.2-alt1 |
5.1: | 5.1.2-alt3 |
4.1: | 5.0.2-alt2 |
4.0: | 5.0.2-alt1.M40.1 |
+backports: | 5.0.2-alt1.M40.1 |
3.0: | 5.0.2-alt1 |
Группа :: Система/Библиотеки
Пакет: t1lib
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: t1lib-5.1.2-deb-alt-fixes.patch
Скачать
Скачать
diff -Naur t1lib-5.1.2-orig/lib/type1/type1.c t1lib-5.1.2/lib/type1/type1.c
--- t1lib-5.1.2-orig/lib/type1/type1.c 2007-12-23 18:49:42 +0300
+++ t1lib-5.1.2/lib/type1/type1.c 2008-05-10 15:37:50 +0400
@@ -1700,7 +1700,7 @@
long pindex = 0;
/* compute hinting for previous segment! */
- FindStems( currx, curry, currx-ppoints[numppoints-2].x, curry-ppoints[numppoints-2].y, dx, dy);
+ FindStems( currx, curry, (numppoints > 1) ? currx-ppoints[numppoints-2].x : 0, (numppoints > 1) ? curry-ppoints[numppoints-2].y : 0, dx, dy);
/* Allocate a new path point and pre-setup data */
pindex = nextPPoint();
@@ -1728,7 +1728,7 @@
long pindex = 0;
/* compute hinting for previous point! */
- FindStems( currx, curry, currx-ppoints[numppoints-2].x, curry-ppoints[numppoints-2].y, dx1, dy1);
+ FindStems( currx, curry, (numppoints > 1) ? currx-ppoints[numppoints-2].x : 0, (numppoints > 1) ? curry-ppoints[numppoints-2].y : 0, dx1, dy1);
/* Allocate three new path points and pre-setup data */
pindex = nextPPoint();
@@ -1744,7 +1744,7 @@
curry += dy1;
/* compute hinting for previous point! */
- FindStems( currx, curry, currx-ppoints[numppoints-2].x, curry-ppoints[numppoints-2].y, dx2, dy2);
+ FindStems( currx, curry, (numppoints > 1) ? currx-ppoints[numppoints-2].x : 0, (numppoints > 1) ? curry-ppoints[numppoints-2].y : 0, dx2, dy2);
pindex = nextPPoint();
ppoints[pindex].x = currx + dx2;
@@ -1759,7 +1759,7 @@
curry += dy2;
/* compute hinting for previous point! */
- FindStems( currx, curry, currx-ppoints[numppoints-2].x, curry-ppoints[numppoints-2].y, dx3, dy3);
+ FindStems( currx, curry, (numppoints > 1) ? currx-ppoints[numppoints-2].x : 0, (numppoints > 1) ? curry-ppoints[numppoints-2].y : 0, dx3, dy3);
pindex = nextPPoint();
ppoints[pindex].x = currx + dx3;
@@ -1811,7 +1811,7 @@
/* restore numppoints and setup hinting for current point */
numppoints = tmpind;
- FindStems( currx, curry, currx-ppoints[numppoints-2].x, curry-ppoints[numppoints-2].y,
+ FindStems( currx, curry, (numppoints > 1) ? currx-ppoints[numppoints-2].x : 0, (numppoints > 1) ? curry-ppoints[numppoints-2].y : 0,
deltax, deltay);
}
@@ -1894,19 +1894,7 @@
long pindex = 0;
/* Compute hinting for this path point! */
- if ( numppoints == 1 ) {
- /* Since RMoveTo for this case starts a new path segment
- (flex-constructs have already been handled), the current
- point is hinted here only taking the next point into account,
- but not the previous. Later on, in DoClosePath(), we'll step
- back to this point and the position might be rehinted. */
- FindStems( currx, curry, 0, 0, dx, dy);
- }
- else {
- FindStems( currx, curry, ppoints[numppoints-2].x, ppoints[numppoints-2].y, dx, dy);
- }
-
-
+ FindStems( currx, curry, (numppoints > 1) ? ppoints[numppoints-2].x : 0, (numppoints > 1) ? ppoints[numppoints-2].y : 0, dx, dy);
/* Allocate a new path point and pre-setup data */
pindex = nextPPoint();
diff -Naur t1lib-5.1.2-orig/xglyph/xglyph.c t1lib-5.1.2/xglyph/xglyph.c
--- t1lib-5.1.2-orig/xglyph/xglyph.c 2007-12-23 18:49:43 +0300
+++ t1lib-5.1.2/xglyph/xglyph.c 2008-05-10 15:38:23 +0400
@@ -526,10 +526,12 @@
/* Check for environment entry. If not set, set it to current
directory so that configuration file is found there */
+ /* It is insecure. */
+#if 0
if (getenv("T1LIB_CONFIG")==NULL){
putenv( "T1LIB_CONFIG=./t1lib.config");
}
-
+#endif
/* Set log-level: */
T1_SetLogLevel( loglevel & (~(0x01<<8)));