The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Text - A XFig file animator class - Text object

DESCRIPTION

Text object - object code in FIG format: 4. Here are all the attributes of this class:

sub_type, pen_color, depth, pen_style, font, font_size, angle, font_flags, height, length, x, y, text, visibility, center_x, center_y

FIG ATTRIBUTES

sub_type

0: Left justified; 1: Center justified; 2: Right justified.

pen_color

-1..31: FIG colors; 32..543 (512 total): user colors.

depth

0 ... 999: larger value means object is deeper than (under) objects with smaller depth

pen_style

unused

font

For font_flags bit 2 = 0 (LaTeX fonts): 0: Default font; 1: Roman; 2: Bold; 3: Italic; 4: Sans Serif; 5: Typewriter.

For font_flags bit 2 = 1 (PostScript fonts): -1: Default font; 0: Times Roman; 1: Times Italic; 2: Times Bold; 3: Times Bold Italic; 4: AvantGarde Book; 5: AvantGarde Book Oblique; 6: AvantGarde Demi; 7: AvantGarde Demi Oblique; 8: Bookman Light; 9: Bookman Light Italic; 10: Bookman Demi; 11: Bookman Demi Italic; 12: Courier; 13: Courier Oblique; 14: Courier Bold; 15: Courier Bold Oblique; 16: Helvetica; 17: Helvetica Oblique; 18: Helvetica Bold; 19: Helvetica Bold Oblique; 20: Helvetica Narrow; 21: Helvetica Narrow Oblique; 22: Helvetica Narrow Bold; 23: Helvetica Narrow Bold Oblique; 24: New Century Schoolbook Roman; 25: New Century Schoolbook Italic; 26: New Century Schoolbook Bold; 27: New Century Schoolbook Bold Italic; 28: Palatino Roman; 29: Palatino Italic; 30: Palatino Bold; 31: Palatino Bold Italic; 32: Symbol; 33: Zapf Chancery Medium Italic; 34: Zapf Dingbats.

font_size

font size in points

angle

radians, the angle of the text

font_flags

bit0: Rigid text (text doesn't scale when scaling compound objects); bit1: Special text (for LaTeX); bit2: PostScript font (otherwise LaTeX font is used); bit3: Hidden text.

height, length

Fig units

x, y

Fig units, coordinate of the origin of the string. If sub_type = 0, it is the lower left corner of the string. If sub_type = 1, it is the lower center. Otherwise it is the lower right corner of the string.

text

ASCII characters; starts after a blank character following the last number and ends before the sequence '\001'. This sequence is not part of the string. Characters above octal 177 are represented by \xxx where xxx is the octal value. This permits fig files to be edited with 7-bit editors and sent by e-mail without data loss. Note that the string may contain '\n'.

ADDITONNAL ATTRIBUTES

visibility

0: hidden; 1: shown

center_x, center_y

calculated center (Fig units)

max_spline_step

parameter for computing polyline from spline (default 0.2)

high_precision

parameter for computing polyline from spline (default 0.5)