12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #include "sys-defines.h"
- #include "extern.h"
- int
- _API_havecap (R___(Plotter *_plotter) const char *s)
- {
- if (strcasecmp (s, "WIDE_LINES") == 0)
- return _plotter->data->have_wide_lines;
- else if (strcasecmp (s, "SOLID_FILL") == 0)
- return _plotter->data->have_solid_fill;
- else if (strcasecmp (s, "DASH_ARRAY") == 0)
- return _plotter->data->have_dash_array;
- else if (strcasecmp (s, "EVEN_ODD_FILL") == 0)
- return _plotter->data->have_odd_winding_fill;
- else if (strcasecmp (s, "NONZERO_WINDING_NUMBER_FILL") == 0)
- return _plotter->data->have_nonzero_winding_fill;
- else if (strcasecmp (s, "SETTABLE_BACKGROUND") == 0)
- return _plotter->data->have_settable_bg;
- else if (strcasecmp (s, "HERSHEY_FONTS") == 0)
- return 1;
- else if (strcasecmp (s, "PS_FONTS") == 0)
- return _plotter->data->have_ps_fonts;
- else if (strcasecmp (s, "PCL_FONTS") == 0)
- return _plotter->data->have_pcl_fonts;
- else if (strcasecmp (s, "STICK_FONTS") == 0)
- return _plotter->data->have_stick_fonts;
- else if (strcasecmp (s, "EXTRA_STICK_FONTS") == 0)
- return _plotter->data->have_extra_stick_fonts;
- else
- return 0;
- }
|