Changeset 30603
- Timestamp:
- Feb 13, 2011, 11:10:40 AM (15 years ago)
- Location:
- trunk/Ohana/src/libkapa/src
- Files:
-
- 3 edited
-
DrawRotString.c (modified) (3 diffs)
-
PSRotFont.c (modified) (3 diffs)
-
bDrawRotFont.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libkapa/src/DrawRotString.c
r10073 r30603 27 27 unsigned char *bitmap; 28 28 char *currentname, basename[64]; 29 int i, dy, dx, N, X, Y, code ;29 int i, dy, dx, N, X, Y, code, protect; 30 30 int dX, Xoff, dY, Yoff, YoffBase; 31 31 int currentsize, basesize; … … 63 63 64 64 code = FALSE; 65 protect = FALSE; 65 66 66 67 YoffBase = Yoff; … … 70 71 if ((N < 0) || (N >= NROTCHARS)) continue; 71 72 73 if (N == 39) { // single-quote 74 protect = protect ? FALSE : TRUE; 75 } 76 72 77 /* check for special characters */ 73 if (!code ) {78 if (!code && !protect) { 74 79 if (N == 94) { 75 80 SetRotFont (currentname, (int)(0.8*currentsize)); -
trunk/Ohana/src/libkapa/src/PSRotFont.c
r10073 r30603 7 7 8 8 char *segment, basename[64], *currentname; 9 int i, N, code ;9 int i, N, code, protect; 10 10 int dX, dY, Xoff, Yoff, X, Y, Nseg, NSEG, YoffBase; 11 11 double cs, sn, fscale, currentscale; … … 60 60 61 61 code = FALSE; 62 protect = FALSE; 63 62 64 YoffBase = 0; 63 65 /* accumulate string segments with common state */ … … 66 68 if ((N < 0) || (N >= NROTCHARS)) continue; 67 69 70 if (N == 39) { // single-quote 71 protect = protect ? FALSE : TRUE; 72 } 73 68 74 /* check for special characters */ 69 if (!code ) {75 if (!code && !protect) { 70 76 /* superscript character (^) */ 71 77 if (N == 94) { -
trunk/Ohana/src/libkapa/src/bDrawRotFont.c
r29938 r30603 14 14 unsigned char *bitmap; 15 15 char *currentname, basename[64]; 16 int i, dy, dx, N, X, Y, code ;16 int i, dy, dx, N, X, Y, code, protect; 17 17 int dX, Xoff, dY, Yoff, YoffBase; 18 18 int currentsize, basesize; … … 53 53 54 54 code = FALSE; 55 protect = FALSE; 55 56 56 57 YoffBase = Yoff; … … 60 61 if ((N < 0) || (N >= NROTCHARS)) continue; 61 62 63 if (N == 39) { // single-quote 64 protect = protect ? FALSE : TRUE; 65 } 66 62 67 /* check for special characters */ 63 if (!code ) {68 if (!code && !protect) { 64 69 if (N == 94) { 65 70 SetRotFont (currentname, (int)(0.8*currentsize));
Note:
See TracChangeset
for help on using the changeset viewer.
