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/text.html | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'html/en/func/text.html') diff --git a/html/en/func/text.html b/html/en/func/text.html index c2735b0..a5edc29 100644 --- a/html/en/func/text.html +++ b/html/en/func/text.html @@ -34,7 +34,7 @@ TextAligment function.


-
void cdCanvasText(cdCanvas* canvas, int x, int y, const char* text); [in C]
+
void cdCanvasText(cdCanvas* canvas, int x, int y, const char* text); [in C]
 void cdfCanvasText(cdCanvas* canvas, double x, double y, const char* text); [in C]
 void wdCanvasText(cdCanvas* canvas, double x, double y, const char* text); (WC) [in C]
 
@@ -44,9 +44,9 @@ canvas:wText(x, y: number, text: string) (WC) [in Lua]

Draws a text in the position (x,y) according to the current font and text alignment. It expects an ANSI string. Can have line breaks.

- +

Attributes

-
void cdCanvasFont(cdCanvas* canvas, const char* typeface, int style, int size); [in C]
+
void cdCanvasFont(cdCanvas* canvas, const char* typeface, int style, int size); [in C]
 void wdCanvasFont(cdCanvas* canvas, const char* typeface, int style, double size); (WD) [in C]
 
 canvas:Font(typeface, style, size: number) [in Lua]
@@ -89,7 +89,7 @@ driver.

-
void cdCanvasGetFont(cdCanvas* canvas, char* typeface, int *style, int *size); [in C]
+
void cdCanvasGetFont(cdCanvas* canvas, char* typeface, int *style, int *size); [in C]
 void wdCanvasGetFont(cdCanvas* canvas, char* typeface, int *style, double *size); (WC) [in C]
 
 canvas:GetFont() -> (typeface: string, style, size: number) [in Lua]
@@ -99,7 +99,7 @@ canvas:wGetFont() -> (typeface: string, style, size: number) (WC) [in Lua]

In WC, the size is returned in millimeters.

-
char* cdCanvasNativeFont(cdCanvas* canvas, const char* nativefont); [in C]
+
char* cdCanvasNativeFont(cdCanvas* canvas, const char* nativefont); [in C]
 
 canvas:NativeFont(font: string) -> (old_font: string) [in Lua]
@@ -127,7 +127,7 @@ and platforms.

Using "(char*)CD_QUERY" as a parameter, it returns the current selected font in the common format definition.

-
int cdCanvasTextAlignment(cdCanvas* canvas, int alignment); [in C]
+
int cdCanvasTextAlignment(cdCanvas* canvas, int alignment); [in C]
 
 canvas:TextAlignment(alignment: number) -> (old_alignment: number) [in Lua]
@@ -139,16 +139,16 @@ canvas:TextAlignment(alignment: number) -> (old_alignment: number) [in Lua]Text Alignment

-
double cdCanvasTextOrientation(cdCanvas* canvas, double angle); [in C]
+
double cdCanvasTextOrientation(cdCanvas* canvas, double angle); [in C]
 
 canvas:TextOrientation(angle: number) -> (old_angle: number) [in Lua]

Defines the text orientation, which is an angle provided in degrees relative to the horizontal line according to which the text is drawn. Returns the previous value. Value CD_QUERY simply returns the current value. The default value is 0.

- +

Properties

-
void cdCanvasGetFontDim(cdCanvas* canvas, int *max_width, int *height, int *ascent, int *descent); [in C]
+
void cdCanvasGetFontDim(cdCanvas* canvas, int *max_width, int *height, int *ascent, int *descent); [in C]
 void wdCanvasGetFontDim(cdCanvas* canvas, double *max_width, double *height, double *ascent, double *descent); (WC) [in C]
 
 canvas:GetFontDim() -> (max_width, height, ascent, descent: number) [in Lua]
@@ -163,7 +163,7 @@ canvas:wGetFontDim() -> (max_width, height, ascent, descent: number) (WC) [in
   

Font Dimension Attributes

-
void cdCanvasGetTextSize(cdCanvas* canvas, const char* text, int *width, int *height); [in C]
+
void cdCanvasGetTextSize(cdCanvas* canvas, const char* text, int *width, int *height); [in C]
 void wdCanvasGetTextSize(cdCanvas* canvas, const char* text, double *width, double *height); (WC) [in C]
 
 canvas:GetTextSize(text: string) -> (width, heigth: number) [in Lua]
@@ -173,7 +173,7 @@ canvas:wGetTextSize(text: string) -> (width, heigth: number) (WC) [in Lua]

NULL for the others.

-
void cdCanvasGetTextBounds(cdCanvas* canvas, int x, int y, const char *text, int *rect); [in C]
+
void cdCanvasGetTextBounds(cdCanvas* canvas, int x, int y, const char *text, int *rect); [in C]
 void wdCanvasGetTextBounds(cdCanvas* canvas, double x, double y, const char* text, double *rect); (WC) [in C]
 
 canvas:GetTextBounds(x, y: number, text: string) -> (rect: table) [in Lua]
@@ -185,7 +185,7 @@ canvas:wGetTextBounds(x, y: number, text: string) -> (rect: table) (WC) [in L
   order starting with the bottom left corner, arranged (x0,y0,x1,y1,x2,y2,x3,y3).

-
void cdCanvasGetTextBox(cdCanvas* canvas, int x, int y, const char* text, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
+
void cdCanvasGetTextBox(cdCanvas* canvas, int x, int y, const char* text, int *xmin, int *xmax, int *ymin, int *ymax); [in C]
 void wdCanvasGetTextBox(cdCanvas* canvas, double x, double y, const char* text, double *xmin, double *xmax, double *ymin, double *ymax); (WC) [in C]
 
 canvas:GetTextBox(x, y: number, text: string) -> (xmin, xmax, ymin, ymax: number) [in Lua]
@@ -195,7 +195,7 @@ canvas:wGetTextBox(x, y: number, text: string) -> (xmin, xmax, ymin, ymax: nu
 	position. If orientation is not 0 then its area is always larger than the 
 	area of the rectangle returned by GetTextBounds. It is not necessary 
   to provide all return pointers, you can provide only the desired values and NULL for the others.

- +
-- cgit v1.2.3