File: test_device_properties.pro

package info (click to toggle)
gnudatalanguage 1.1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 80,368 kB
  • sloc: cpp: 189,797; ansic: 46,721; sh: 677; python: 474; makefile: 146; xml: 69; f90: 28
file content (26 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
pro test_device_properties
  properties=[$
"Device has scalable pixel size (e.g., PostScript)."$
,"Device can output text at an arbitrary angle using hardware."$
,"Device can control line thickness with hardware."$
,"Device can display images."$
,"Device supports color."$
,"Device supports polygon filling with hardware."$
,"Device hardware characters are monospace."$
,"Device can read pixels (i.e., it supports TVRD)."$
,"Device supports windows."$
,"Device prints black on a white background (e.g., printers are plotters)."$
,"Device has no hardware characters."$
,"Device does line-fill style polygon filling in hardware."$
,"Device will apply Hershey-style embedded formatting commands to device fonts."$
,"Device is a pen plotter."$
,"Device can transfer 16-bit pixels."$
,"Device supports Kanji characters."$
,"Device supports widgets."$
,"Device has Z-buffer."$
,"Device supports TrueType fonts."$
]
  f=reverse(byte(string(!d.flags,format='(b19)')))
  w=where(f eq 49b, count)
  if (count gt 0) then print, properties[w], format='(a)'
end