Changeset 40124 for branches/eam_branches/ohana.20170822
- Timestamp:
- Aug 22, 2017, 2:51:11 PM (9 years ago)
- Location:
- branches/eam_branches/ohana.20170822/src/libkapa/src
- Files:
-
- 3 edited
-
KapaWindow.c (modified) (1 diff)
-
PSRotFont.c (modified) (4 diffs)
-
bDrawFuncs.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20170822/src/libkapa/src/KapaWindow.c
r39926 r40124 94 94 graphdata[0].xmax = graphdata[0].ymax = 1.0; 95 95 96 graphdata[0].style = graphdata[0].ptype = 2; 96 graphdata[0].style = KAPA_PLOT_POINTS; 97 graphdata[0].ptype = KAPA_POINT_BOX_SOLID; 97 98 graphdata[0].ltype = graphdata[0].color = 0; 98 99 graphdata[0].etype = graphdata[0].ebar = 0; -
branches/eam_branches/ohana.20170822/src/libkapa/src/PSRotFont.c
r39457 r40124 90 90 /* check for special characters */ 91 91 if (!code && !protect) { 92 /* su perscript character (^) */92 /* subscript character (_) */ 93 93 if (N == 94) { 94 94 PSDumpRotSegment (f, segment, &Nseg); 95 SetRotFont (currentname, (int)(0.8*currentsize));95 PSSetFont (f, currentname, (int)(0.8*currentsize)); 96 96 currentfont = GetRotFontData (¤tscale); 97 97 Yoff = 0.75*currentscale*dY; 98 98 fprintf (f, "0 %d rmoveto\n", Yoff); 99 99 YoffBase += Yoff; 100 PSSetFont (f, currentname, currentsize);101 continue; 102 } 103 /* su bscript character (_) */100 // PSSetFont (f, currentname, currentsize); 101 continue; 102 } 103 /* superscript character (^) */ 104 104 if (N == 95) { 105 105 PSDumpRotSegment (f, segment, &Nseg); 106 SetRotFont (currentname, (int)(0.8*currentsize));106 PSSetFont (f, currentname, (int)(0.8*currentsize)); 107 107 currentfont = GetRotFontData (¤tscale); 108 108 Yoff = -0.5*currentscale*dY; 109 109 fprintf (f, "0 %d rmoveto\n", Yoff); 110 110 YoffBase += Yoff; 111 PSSetFont (f, currentname, currentsize);111 // PSSetFont (f, currentname, currentsize); 112 112 continue; 113 113 } … … 115 115 if (N == 124) { 116 116 PSDumpRotSegment (f, segment, &Nseg); 117 SetRotFont (currentname, basesize);117 PSSetFont (f, currentname, basesize); 118 118 currentfont = GetRotFontData (¤tscale); 119 119 fprintf (f, "0 %d rmoveto\n", -YoffBase); 120 120 YoffBase = 0; 121 PSSetFont (f, currentname, currentsize);121 // PSSetFont (f, currentname, currentsize); 122 122 continue; 123 123 } … … 145 145 PSDumpRotSegment (f, segment, &Nseg); 146 146 if (string[i+1] == 'h') { 147 SetRotFont ("helvetica", currentsize);148 currentfont = GetRotFontData (¤tscale); 149 PSSetFont (f, currentname, currentsize);147 PSSetFont (f, "helvetica", currentsize); 148 currentfont = GetRotFontData (¤tscale); 149 // PSSetFont (f, currentname, currentsize); 150 150 } 151 151 if (string[i+1] == 't') { 152 SetRotFont ("times", currentsize);153 currentfont = GetRotFontData (¤tscale); 154 PSSetFont (f, currentname, currentsize);152 PSSetFont (f, "times", currentsize); 153 currentfont = GetRotFontData (¤tscale); 154 // PSSetFont (f, currentname, currentsize); 155 155 } 156 156 if (string[i+1] == 'c') { 157 SetRotFont ("courier", currentsize);158 currentfont = GetRotFontData (¤tscale); 159 PSSetFont (f, currentname, currentsize);157 PSSetFont (f, "courier", currentsize); 158 currentfont = GetRotFontData (¤tscale); 159 // PSSetFont (f, currentname, currentsize); 160 160 } 161 161 if (string[i+1] == 's') { 162 SetRotFont ("symbol", currentsize);163 currentfont = GetRotFontData (¤tscale); 164 PSSetFont (f, currentname, currentsize);162 PSSetFont (f, "symbol", currentsize); 163 currentfont = GetRotFontData (¤tscale); 164 // PSSetFont (f, currentname, currentsize); 165 165 } 166 166 i++; … … 176 176 fprintf (f, "stroke grestore\n"); 177 177 free (segment); 178 SetRotFont (basename, basesize);178 PSSetFont (f, basename, basesize); 179 179 } 180 180 -
branches/eam_branches/ohana.20170822/src/libkapa/src/bDrawFuncs.c
r40123 r40124 78 78 // "bDrawColor color" is one of the hardwired colors in KapaColors.c 79 79 void bDrawSetColor (bDrawBuffer *buffer, bDrawColor color) { 80 fprintf (stderr, "set color %d\n", color);81 80 buffer->bColor = color; 82 81 buffer->bColor_R = buffer->palette[color].red;
Note:
See TracChangeset
for help on using the changeset viewer.
