UL_TEXT
Data members
| align | int (ALIGN_...) |
| angle | real (0.0...359.9) |
| font | int (FONT_...) |
| layer | int |
| linedistance | int |
| mirror | int |
| ratio | int |
| size | int |
| spin | int |
| value | string |
| x, y | int (origin point) |
Loop members
| wires() | UL_WIRE (see note) |
See also UL_BOARD, UL_FOOTPRINT, UL_SHEET, UL_SYMBOL
Constants
| FONT_VECTOR | vector font |
| FONT_PROPORTIONAL | proportional font |
| FONT_FIXED | fixed font |
| ALIGN_BOTTOM_LEFT | bottom/left aligned |
| ALIGN_BOTTOM_CENTER | bottom/center aligned |
| ALIGN_BOTTOM_RIGHT | bottom/right aligned |
| ALIGN_CENTER_LEFT | center/left aligned |
| ALIGN_CENTER | centered |
| ALIGN_CENTER_RIGHT | center/right aligned |
| ALIGN_TOP_LEFT | top/left aligned |
| ALIGN_TOP_CENTER | top/center aligned |
| ALIGN_TOP_RIGHT | top/right aligned |
Note
The wires() loop member always accesses the individual wires the text is composed of when using the vector font, even if the actual font is not FONT_VECTOR.
If the UL_TEXT is derived from a UL_ELEMENT or UL_INSTANCE context, the member values will be those of the actual text as located in the board or sheet drawing.
Example
board(B) {
B.texts(T) {
printf("Text: %s\n", T.value);
}
}
