From 1ad72d5276b1876bf218336a1ff47f086a0834c9 Mon Sep 17 00:00:00 2001 From: scuri Date: Thu, 24 Jun 2010 20:32:39 +0000 Subject: *** empty log message *** --- html/en/func/vectortext.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'html/en/func/vectortext.html') diff --git a/html/en/func/vectortext.html b/html/en/func/vectortext.html index ec66aa2..febcf24 100644 --- a/html/en/func/vectortext.html +++ b/html/en/func/vectortext.html @@ -17,7 +17,7 @@

All vector text drawing in all drivers are simulated with other CD primitives using polygons only.


-
void cdCanvasVectorText(cdCanvas* canvas, int x, int y, const char* text); [in C]
+    
void cdCanvasVectorText(cdCanvas* canvas, int x, int y, const char* text); [in C]
 void wdCanvasVectorText(cdCanvas* canvas, double x, double y, const char* text); (WC) [in C]
     
 canvas:VectorText(x, y: number, text: string) [in Lua]
@@ -32,9 +32,9 @@ canvas:wVectorText(x, y: number, text: string) (WC) [in Lua]
actually depends on World Coordinates. The other Vector Text functions although use the "wd" prefix they do not depend on World Coordinates. They are kept with these names for backward compatibility. The - correct prefix would be "cdf".

+ correct prefix would be "cdf".

Attributes

-
void cdCanvasVectorTextDirection(cdCanvas* canvas, int x1, int y1, int x2, int y2); [in C]
+    
void cdCanvasVectorTextDirection(cdCanvas* canvas, int x1, int y1, int x2, int y2); [in C]
 void wdCanvasVectorTextDirection(cdCanvas* canvas, double x1, double y1, double x2, double y2); [in C]
 
 canvas:VectorTextDirection(x1, y1, x2, y2: number) [in Lua]
@@ -42,7 +42,7 @@ canvas:wVectorTextDirection(x1, y1, x2, y2: number) [in Lua]

Defines the text direction by means of two points, (x1,y1) and (x2,y2). The default direction is horizontal from left to right. It is independent from the transformation matrix.

-
double* cdCanvasVectorTextTransform(cdCanvas* canvas, const double* matrix); [in C]
+    
double* cdCanvasVectorTextTransform(cdCanvas* canvas, const double* matrix); [in C]
 
 canvas:VectorTextTransform(matrix: table) -> (old_matrix: table) [in Lua] 

Defines a transformation matrix with 6 elements. If the matrix is NULL, no @@ -57,14 +57,14 @@ canvas:VectorTextTransform(matrix: table) -> (old_matrix: table) [in Lua]&nbs |1|

It has the same effect of the cdCanvasTransform, but notice that the indices are different.

-
void cdCanvasVectorTextSize(cdCanvas* canvas, int width, int height, const char * text); [in C]
+    
void cdCanvasVectorTextSize(cdCanvas* canvas, int width, int height, const char * text); [in C]
 void wdCanvasVectorTextSize(cdCanvas* canvas, double width, double height, const char* text); [in C]
 
 canvas:VectorTextSize(width, height: number, text: string) [in Lua]
 canvas:wVectorTextSize(width, height: number, text: string) [in Lua]

Modifies the font size of the vector text so that it fits the string in the box defined by width and height.

-
double cdCanvasVectorCharSize(cdCanvas* canvas, int size); [in C]
+    
double cdCanvasVectorCharSize(cdCanvas* canvas, int size); [in C]
 double wdCanvasVectorCharSize(cdCanvas* canvas, double size); [in C]
 
 canvas:VectorCharSize(size: number) -> (old_size: number) [in Lua]
@@ -72,17 +72,17 @@ canvas:wVectorCharSize(size: number) -> (old_size: number) [in Lua]

Modifies the font size by specifying the height of the characters. Returns the previous value. CD_QUERY returns the current value.

-
void cdCanvasVectorFontSize(cdCanvas* canvas, double size_x, double size_x); [in C]
+    
void cdCanvasVectorFontSize(cdCanvas* canvas, double size_x, double size_x); [in C]
 
 canvas:VectorFontSize(size_x, size_y: number) [in Lua]

Directly modifies the font size. Set size_x==size_y to maintain the original aspect ratio of the font.

-
void cdCanvasGetVectorFontSize(cdCanvas* canvas, double *size_x, double *size_x); [in C]
+    
void cdCanvasGetVectorFontSize(cdCanvas* canvas, double *size_x, double *size_x); [in C]
 
 canvas:GetVectorFontSize() -> (size_x, size_y: number) [in Lua]

Returns the font size. It is not necessary to provide all return pointers, you can provide only the desired values and NULL for the others.

-
char* cdCanvasVectorFont(cdCanvas* canvas, const char *filename); [in C]
+    
char* cdCanvasVectorFont(cdCanvas* canvas, const char *filename); [in C]
 
 canvas:VectorFont(filename: string) -> (fontname: string) [in Lua]

Replaces the current vector font with a font stored in a file with a given @@ -95,9 +95,9 @@ canvas:VectorFont(filename: string) -> (fontname: string) [in Lua]

load it using the filename as a string containing the font as if the file was loaded into that string, if it fails again the font is reset to the default font and returns NULL. The file format is - compatible with the GKS file format (text mode).

+ compatible with the GKS file format (text mode).

Properties

-
void cdCanvasGetVectorTextSize(cdCanvas* canvas, const char* text, int *width, int *height); [in C]
+    
void cdCanvasGetVectorTextSize(cdCanvas* canvas, const char* text, int *width, int *height); [in C]
 void wdCanvasGetVectorTextSize(cdCanvas* canvas, const char* text, double *width, double *height); [in C]
 
 canvas:GetVectorTextSize(text: string) -> (width, height: number) [in Lua]
@@ -105,7 +105,7 @@ canvas:wGetVectorTextSize(text: string) -> (width, height: number) [in Lua]Returns the text size independent from orientation. It is 
       not necessary to provide all return pointers, you can provide only the desired 
       values and NULL for the others.

-
void cdCanvasGetVectorTextBounds(cdCanvas* canvas, char* text, int x, int y, int *rect); [in C]
+    
void cdCanvasGetVectorTextBounds(cdCanvas* canvas, char* text, int x, int y, int *rect); [in C]
 void wdCanvasGetVectorTextBounds(cdCanvas* canvas, char* text, double x, double y, double *rect); [in C]
 
 canvas:GetVectorTextBounds(text: string, x, y: number) -> (rect: table) [in Lua]
@@ -117,7 +117,7 @@ canvas:wGetVectorTextBounds(text: string, x, y: number) -> (rect: table) [in
   order starting with the bottom left corner, arranged (x0,y0,x1,y1,x2,y2,x3,y3).

-
void cdCanvasGetVectorTextBox(cdCanvas* canvas, int x, int y, const char* text, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
+
void cdCanvasGetVectorTextBox(cdCanvas* canvas, int x, int y, const char* text, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
 void wdCanvasGetVectorTextBox(cdCanvas* canvas, double x, double y, const char* text, double *xmin, double *xmax, double *ymin, double *ymax); [in C]
 
 canvas:GetVectorTextBox(x, y: number, text: string) -> (xmin, xmax, ymin, ymax: number) [in Lua]
@@ -128,7 +128,7 @@ canvas:wGetVectorTextBox(x, y: number, text: string) -> (xmin, xmax, ymin, ym
 	orientation is not 0 then its area is always larger than the area of the 
 	rectangle returned by GetVectorTextBounds. It is not necessary 
   to provide all return pointers, you can provide only the desired values and NULL for the others.

- +

Character Codes

The old GKS format contains ASCII codes so a convertion from ANSI to ASCII is done when possible, unmapped characters are left unchanged, but some rearrage -- cgit v1.2.3