/******************************************************** * Print Control V5 Syntax Reference - text example ********************************************************/ timesroman = 5; medium = 0; normal = 0; italic = 1; offset( 0, 60); font( 5, 8, normal, italic); hor( 18, 10, 54, 0.1); vert( 20, 8, 18, 0.1); font( 3, 12, normal); text( 20, 0, "r", "text(20, 14, \"r\", \"string1\");"); text( 20, 4, "r", "ntext(\"string2\"); ..."); font( 5, 10, normal); text( 20, 14, "r", "This is a string showing how many"); ntext( "lines of text can be formatted"); ntext( "to align to the left margin."); offset( 0, 0); offset( 0, 100); font( 5, 8, normal, italic); hor( 18, 10, 54, 0.1); vert( 70, 8, 18, 0.1); font( 3, 12, normal); text( 20, 0, "r", "text(70, 14, \"a\", \"string1\")"); text( 20, 4, "r", "ntext(\"string2\"); ..."); font( 5, 10, normal); text( 70, 14, "a", "This is a string showing how text"); ntext( "is formatted to align to the"); ntext( "right margin."); offset( 80, 0); font( 5, 8, normal, italic); hor( 18, 10, 54, 0.1); vert( 45, 8, 18, 0.1); text( 45, 9, "c", "Centre"); font( 3, 12, normal); text( 20, 0, "r", "text(45, 14, \"c\", \"string1\")"); text( 20, 4, "r", "ntext(\"string2\"); ..."); font( 5, 10, normal); text( 45, 14, "c", "This is a string showing how text"); ntext( "is formatted to align"); ntext( "centred around an x,y point"); offset( 0, 0); offset( 0, 140); font( 5, 8, normal, italic); hor( 18, 10, 54, 0.1); vert( 40, 8, 18, 0.1); font( 3, 12, normal); text( 20, 0, "r", "text(40, 14, \"d\", \"string1\")"); text( 20, 4, "r", "ntext(\"string2\"); ..."); font( 5, 10, normal); text( 40, 14, "d", "1234.00"); ntext( "9876"); ntext( "0.7654"); offset( 80, 0); font( 5, 8, normal, italic); hor( 18, 10, 54, 0.1); vert( 20, 8, 18, 0.1, 2, 50); text( 45, 9, "c", "50mm"); font( 3, 12, normal); text( 20, -2, "r", "text(20, 14, \"j\", 50 \"A very \\"); text( 20, 2, "r", "long string which runs \\"); text( 20, 6, "r", "over several lines\");"); font( 5, 10, normal); text( 20, 14, "j", 50, "This example shows how a long string of text \ is justified over a width of 50mm.");