next up previous contents index
Next: SREF record Up: CGX Data Records Previous: WIRE record   Contents   Index

TEXT record

A TEXT record can appear after a LAYER record has been issued. A TEXT record specifies a non-physical text object.

The header flags byte is an orientation code:

bits 0-1 rotate the text about the anchor
  00 no rotation
  01 90 degrees
  10 180 degrees
  11 270 degrees
bit 2 mirror y after rotation
bit 3 shift rotations to 45, 135, 225, 315 degrees
bits 4-5 horizontal justification, 00, 11 left, 01 center, 10 right
bits 6-7 vertical justification, 00, 11 bottom, 01 center, 10 top

The TEXT record contains the following fields:

bytes field name purpose
4 x x position
4 y y position
4 width field width
? label label text

The width gives the physical equivalent width of the text. The height is determined by the font used for rendering.


next up previous contents index
Next: SREF record Up: CGX Data Records Previous: WIRE record   Contents   Index
Stephen R. Whiteley 2006-10-23