Text

Text


Generating text

You can define font types, sizes, and style, and display arbitrary text onto the designated coodinates.

Style
  # Micro AVS Geom:2.10
label
Element Name
Vertex Data Type (vertex, color)
 Font Size Style1 Style2 Title Alignment Offset
 No. of Labels
 X(1) Y(1) Z(1) R(1) G(1) B(1) "Text Line(1)"
 X(2) Y(2) Z(2) R(2) G(2) B(2) "Text Line(2)"
'
'
'
 X(N) Y(N) Z(N) R(N) G(N) B(N) "Text Line(N)"

Write standard element type label in the 2nd line.
Write arbitrary name in the 3rd line.
Designate vertex, color as the vertex data type in the 4th line.
When color is set, color by writing RGB value within the range of 0 to 1. When vertex is set, color and nomal line will not be designated.
In the 5th line, define Font Type, Size, Style1, Style2, Title, Alignment, and Offset. Bold font is defined in Style1, and italic font is defined in Style2. The text attributes are used for the title.
Alignment is set as "center" by default and can be changed as follows: (0: left, 1: center, 2: right)
Offset moves the text position from the standard position.
Number of labels is defined in the 6th line.
After the 7th line, write coodinate value(X,Y,Z), color(R,G,B), and text line according to the vertext data type.
Text line should be tagged with " " (double quotation marks).

Ex.) Title Text (tile2.mgf)

  # Micro AVS Geom: 2.10
  label
  Title Label
  color
  Courier  0.2 1  0 1  1  0.0 0.0 0.1
  1
  0.0 0.2 0.0   0.0 0.8 0.0  "Test \"avs\" Label"

Ex.) No Color Standard Text (label.mgf)

  # Micro AVS Geom:2.10
  label
  label_sample
  vertex
  Helvetica 0.1 0 1 0 1 0.0 0.0 0.0
  5
   0.0  0.0  0.0   "center"
   0.2  0.0  0.0   "right"
  -0.2  0.0  0.0   "left"
   0.0  0.2  0.0   "top"
   0.0 -0.2  0.0   "bottom"



To Top © 1995-2008 KGT Inc. All rights reserved.