The R Project SVN R

Rev

Rev 6844 | Rev 7002 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6844 Rev 6994
Line 210... Line 210...
210
 
210
 
211
static void PicTeX_Deactivate(DevDesc *dd)
211
static void PicTeX_Deactivate(DevDesc *dd)
212
{
212
{
213
}
213
}
214
 
214
 
215
#ifdef _not_used_
-
 
216
static void PicTeX_MetricInfo(int c, double *accent, double *descent,
215
static void PicTeX_MetricInfo(int c, double *ascent, double *descent,
217
			      double *width, DevDesc *dd)
216
			      double *width, DevDesc *dd)
218
{
217
{
-
 
218
#ifdef BUG61
219
	error("Metric information not yet available for this device");
219
	error("Metric information not yet available for this device");
220
}
220
#else
-
 
221
    /* metric information not available => return 0,0,0 */
-
 
222
    *ascent = 0.0;
-
 
223
    *descent = 0.0;
-
 
224
    *width = 0.0;
221
#endif
225
#endif
-
 
226
}
-
 
227
 
222
	/* Initialize the device */
228
	/* Initialize the device */
223
 
229
 
224
static int PicTeX_Open(DevDesc *dd, picTeXDesc *ptd)
230
static int PicTeX_Open(DevDesc *dd, picTeXDesc *ptd)
225
{
231
{
226
    ptd->fontsize = 0;
232
    ptd->fontsize = 0;
Line 652... Line 658...
652
	dd->dp.polygon = PicTeX_Polygon;
658
	dd->dp.polygon = PicTeX_Polygon;
653
	dd->dp.polyline = PicTeX_Polyline;
659
	dd->dp.polyline = PicTeX_Polyline;
654
	dd->dp.locator = PicTeX_Locator;
660
	dd->dp.locator = PicTeX_Locator;
655
	dd->dp.mode = PicTeX_Mode;
661
	dd->dp.mode = PicTeX_Mode;
656
	dd->dp.hold = PicTeX_Hold;
662
	dd->dp.hold = PicTeX_Hold;
657
 
-
 
658
/*	dd->dp.metricInfo = PicTeX_MetricInfo;
663
	dd->dp.metricInfo = PicTeX_MetricInfo;
659
 */
-
 
660
	dd->dp.metricInfo = NULL;
-
 
661
 
664
 
662
	/* Screen Dimensions in Pixels */
665
	/* Screen Dimensions in Pixels */
663
 
666
 
664
	dd->dp.left = 0;		/* left */
667
	dd->dp.left = 0;		/* left */
665
	dd->dp.right = 72.27 * width;	/* right */
668
	dd->dp.right = 72.27 * width;	/* right */