2015-08-17 03:16:17 +03:00
|
|
|
#ifndef INCLUDE_FONT_H
|
|
|
|
#define INCLUDE_FONT_H
|
|
|
|
|
|
|
|
#ifndef INCLUDE_MATH_H
|
|
|
|
#include "../lib/math.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef INCLUDE_IO_H
|
2015-11-06 17:49:37 +03:00
|
|
|
#include "../lib/obj/fs.h"
|
2015-08-17 03:16:17 +03:00
|
|
|
#endif
|
|
|
|
|
2015-09-05 12:16:38 +03:00
|
|
|
:struct __OFFSET_FONT
|
|
|
|
{
|
|
|
|
signed x,y;
|
|
|
|
};
|
2015-08-20 18:04:18 +03:00
|
|
|
:struct __SIZE
|
|
|
|
{
|
2015-09-07 16:07:29 +03:00
|
|
|
dword width,height;
|
2015-09-05 12:16:38 +03:00
|
|
|
__OFFSET_FONT offset;
|
2015-08-21 14:03:08 +03:00
|
|
|
float offset_i,w_italic;
|
2015-08-20 18:04:18 +03:00
|
|
|
byte text;
|
2015-08-20 19:37:49 +03:00
|
|
|
byte TMP_WEIGHT;
|
2015-08-20 18:04:18 +03:00
|
|
|
};
|
2015-08-17 03:16:17 +03:00
|
|
|
:struct FONT
|
|
|
|
{
|
2015-08-20 18:04:18 +03:00
|
|
|
__SIZE size;
|
2015-09-02 16:15:32 +03:00
|
|
|
byte r,g,b,weight,italic, smooth;
|
2015-09-01 16:55:35 +03:00
|
|
|
byte width,height;
|
2015-10-12 14:42:35 +03:00
|
|
|
byte use_smooth;
|
2015-11-06 02:26:15 +03:00
|
|
|
int left,top;
|
2015-08-21 19:16:45 +03:00
|
|
|
byte encoding;
|
2015-08-20 18:04:18 +03:00
|
|
|
dword color;
|
2015-08-17 19:21:51 +03:00
|
|
|
dword file_size;
|
2015-08-18 04:45:23 +03:00
|
|
|
dword buffer;
|
2015-08-18 12:13:34 +03:00
|
|
|
dword buffer_size;
|
2015-08-17 03:16:17 +03:00
|
|
|
word block;
|
|
|
|
dword data;
|
2015-08-17 19:21:51 +03:00
|
|
|
dword begin;
|
2015-08-17 03:16:17 +03:00
|
|
|
byte load(...);
|
2015-09-02 16:15:32 +03:00
|
|
|
byte symbol(word x,y;byte s;dword c);
|
2015-08-18 13:43:23 +03:00
|
|
|
byte symbol_size(byte s);
|
2015-08-27 11:33:51 +03:00
|
|
|
dword prepare(word x,y;dword text1);
|
2015-09-07 16:07:29 +03:00
|
|
|
void prepare_buf(dword x,y,w,h, text1);
|
2015-09-07 14:33:25 +03:00
|
|
|
void show();
|
2015-08-21 14:03:08 +03:00
|
|
|
byte textcenter(word x,y,w,h;dword txt);
|
2015-08-20 18:04:18 +03:00
|
|
|
dword getsize(dword text1);
|
|
|
|
byte changeSIZE();
|
2015-09-07 16:07:29 +03:00
|
|
|
void PixelRGB(dword x,y);
|
2015-09-01 16:11:07 +03:00
|
|
|
//dword GetPixel(word x,y);
|
2015-08-19 14:14:15 +03:00
|
|
|
byte no_bg_copy;
|
|
|
|
dword bg_color;
|
2015-08-17 03:16:17 +03:00
|
|
|
};
|
|
|
|
FONT font = 0;
|
2015-09-01 16:11:07 +03:00
|
|
|
/*
|
2015-08-21 14:03:08 +03:00
|
|
|
:dword FONT::GetPixel(word x,y)
|
|
|
|
{
|
2015-09-01 16:11:07 +03:00
|
|
|
dword tmp = y*size.width*3;
|
|
|
|
tmp += x*3 + buffer;
|
2015-09-01 16:55:35 +03:00
|
|
|
r = DSBYTE[tmp]; tmp++;
|
|
|
|
g = DSBYTE[tmp]; tmp++;
|
|
|
|
b = DSBYTE[tmp];
|
2015-09-01 16:11:07 +03:00
|
|
|
}*/
|
2015-08-18 04:45:23 +03:00
|
|
|
:void FONT::PixelRGB(dword x,y)
|
|
|
|
{
|
2015-09-07 16:07:29 +03:00
|
|
|
dword offs = y*size.width+x*3 + buffer;
|
|
|
|
DSBYTE[offs] = r; offs++;
|
|
|
|
DSBYTE[offs] = g; offs++;
|
|
|
|
DSBYTE[offs] = b;
|
2015-08-18 04:45:23 +03:00
|
|
|
}
|
2015-08-20 18:04:18 +03:00
|
|
|
:byte FONT::changeSIZE()
|
2015-08-17 19:21:51 +03:00
|
|
|
{
|
|
|
|
dword TMP_DATA;
|
|
|
|
dword ofs;
|
2015-08-20 18:04:18 +03:00
|
|
|
IF(size.text<9) size.text = 8;
|
2015-09-01 16:55:35 +03:00
|
|
|
TMP_DATA = data = begin;
|
|
|
|
TMP_DATA +=size.text-8*4;
|
2015-08-20 19:37:49 +03:00
|
|
|
ofs = DSDWORD[TMP_DATA];
|
|
|
|
IF(ofs==-1)return false;
|
2015-09-01 16:55:35 +03:00
|
|
|
data += ofs + 156;
|
2015-08-20 19:37:49 +03:00
|
|
|
TMP_DATA = data;
|
|
|
|
file_size = DSDWORD[TMP_DATA];
|
2015-09-01 16:55:35 +03:00
|
|
|
TMP_DATA = data + file_size;
|
|
|
|
height = DSBYTE[TMP_DATA - 1];
|
|
|
|
width = DSBYTE[TMP_DATA - 2];
|
2015-08-20 19:37:49 +03:00
|
|
|
block = math.ceil(height*width/32);
|
|
|
|
return true;
|
2015-08-17 19:21:51 +03:00
|
|
|
}
|
2015-08-21 14:03:08 +03:00
|
|
|
:byte FONT::textcenter(word x,y,w,h;dword txt)
|
|
|
|
{
|
|
|
|
getsize(txt);
|
|
|
|
EDX = w/2;
|
|
|
|
ECX = size.width/2;
|
|
|
|
EDX -= ECX;
|
|
|
|
x += EDX;
|
2015-09-07 14:33:25 +03:00
|
|
|
prepare(x,y,txt);
|
2015-08-21 14:03:08 +03:00
|
|
|
}
|
2015-08-20 18:04:18 +03:00
|
|
|
:dword FONT::getsize(dword text1)
|
2015-08-17 03:16:17 +03:00
|
|
|
{
|
2015-08-20 18:04:18 +03:00
|
|
|
size.height = size.width = 0;
|
2015-09-05 12:16:38 +03:00
|
|
|
size.offset.x = size.offset.y = -1;
|
2015-08-20 18:04:18 +03:00
|
|
|
IF(size.text)IF(!changeSIZE())return 0;
|
2015-08-18 13:43:23 +03:00
|
|
|
WHILE(DSBYTE[text1])
|
|
|
|
{
|
2015-08-20 18:04:18 +03:00
|
|
|
symbol_size(DSBYTE[text1]);
|
2015-08-18 13:43:23 +03:00
|
|
|
text1++;
|
|
|
|
}
|
2015-09-05 12:16:38 +03:00
|
|
|
$neg size.offset.y
|
|
|
|
$neg size.offset.x
|
|
|
|
size.height += size.offset.y; size.height++;
|
|
|
|
size.width += size.offset.x; size.width++;
|
2015-08-21 14:03:08 +03:00
|
|
|
IF(italic)
|
|
|
|
{
|
2015-08-21 14:13:10 +03:00
|
|
|
size.w_italic = size.height/3;
|
|
|
|
size.offset_i = size.w_italic/size.height;
|
|
|
|
size.width += size.w_italic;
|
|
|
|
size.w_italic = -size.w_italic;
|
2015-08-21 14:03:08 +03:00
|
|
|
}
|
2015-08-20 18:04:18 +03:00
|
|
|
return size.width;
|
2015-08-18 13:43:23 +03:00
|
|
|
}
|
|
|
|
:byte FONT::symbol_size(byte s)
|
|
|
|
{
|
|
|
|
dword xi,yi;
|
|
|
|
dword tmp,_;
|
|
|
|
dword iii;
|
|
|
|
byte rw=0;
|
2015-08-20 18:04:18 +03:00
|
|
|
byte X;
|
2015-08-20 19:37:49 +03:00
|
|
|
size.TMP_WEIGHT = math.ceil(size.text/17);
|
2015-08-20 18:04:18 +03:00
|
|
|
IF(s==32)
|
|
|
|
{
|
|
|
|
size.width += width/4;
|
2015-08-20 19:37:49 +03:00
|
|
|
IF(weight) size.width+=size.TMP_WEIGHT;
|
2015-08-20 18:04:18 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
IF(s==9)
|
|
|
|
{
|
|
|
|
size.width += width;
|
2015-08-20 19:37:49 +03:00
|
|
|
IF(weight) size.width+=size.TMP_WEIGHT;
|
2015-08-20 18:04:18 +03:00
|
|
|
return;
|
|
|
|
}
|
2015-08-21 19:16:45 +03:00
|
|
|
IF(!encoding){
|
|
|
|
IF(s>=128)&&(s<=175)s+=64;
|
|
|
|
ELSE IF(s>=224)&&(s<=239)s+=16;
|
2015-08-29 15:10:11 +03:00
|
|
|
ELSE IF(s==241)s=184; //yo
|
|
|
|
ELSE IF(s==240)s=168; //YO
|
2015-08-21 19:16:45 +03:00
|
|
|
}
|
2015-08-18 13:43:23 +03:00
|
|
|
iii = 0;
|
2015-09-01 16:11:07 +03:00
|
|
|
tmp = 4*block*s + data;
|
2015-09-02 16:15:32 +03:00
|
|
|
for(yi=0; yi<height; yi++)
|
2015-08-18 13:43:23 +03:00
|
|
|
{
|
2015-09-02 16:15:32 +03:00
|
|
|
for(xi=0; xi<width; xi++)
|
|
|
|
{
|
|
|
|
IF(iii%32) _ >>= 1;
|
|
|
|
ELSE
|
|
|
|
{
|
|
|
|
tmp += 4;
|
|
|
|
_ = DSDWORD[tmp];
|
2015-08-18 13:43:23 +03:00
|
|
|
}
|
2015-09-02 16:15:32 +03:00
|
|
|
IF(_&1)
|
|
|
|
{
|
|
|
|
IF(xi>rw)rw=xi;
|
|
|
|
IF(size.height<yi)size.height = yi;
|
2015-09-05 12:16:38 +03:00
|
|
|
IF(size.offset.y<0)size.offset.y = yi;
|
|
|
|
ELSE IF(yi<size.offset.y)size.offset.y = yi;
|
2015-09-02 16:15:32 +03:00
|
|
|
IF(!X) X = xi;
|
|
|
|
ELSE IF(X>xi)X = xi;
|
|
|
|
}
|
|
|
|
iii++;
|
|
|
|
}
|
2015-08-18 13:43:23 +03:00
|
|
|
}
|
2015-08-20 18:04:18 +03:00
|
|
|
size.width += rw;
|
2015-08-20 19:37:49 +03:00
|
|
|
IF(weight) size.width+=size.TMP_WEIGHT;
|
2015-08-20 18:04:18 +03:00
|
|
|
IF(s=='_') size.width--;
|
2015-09-05 12:16:38 +03:00
|
|
|
IF(size.offset.x<0)size.offset.x = X;
|
2015-08-18 13:43:23 +03:00
|
|
|
}
|
2015-11-06 02:26:15 +03:00
|
|
|
:dword FONT::prepare(int x,y;dword text1)
|
2015-08-18 13:43:23 +03:00
|
|
|
{
|
|
|
|
signed len=0;
|
2015-09-01 16:55:35 +03:00
|
|
|
proc_info Form_SELF_FONTS;
|
2015-08-20 18:04:18 +03:00
|
|
|
dword c;
|
|
|
|
c = color;
|
2015-09-07 14:33:25 +03:00
|
|
|
left = x;
|
2015-08-20 19:37:49 +03:00
|
|
|
IF(!text1)return false;
|
|
|
|
IF(size.text)IF(!changeSIZE())return false;
|
2015-09-01 16:55:35 +03:00
|
|
|
AX = c; r = AL; g = AH; c>>=16; AX = c; b = AL;
|
2015-08-20 18:04:18 +03:00
|
|
|
getsize(text1);
|
2015-09-05 12:16:38 +03:00
|
|
|
y -= size.offset.y;
|
2015-09-07 14:33:25 +03:00
|
|
|
top = y;
|
2015-08-20 19:37:49 +03:00
|
|
|
EDX = size.width*size.height*3;
|
2015-08-19 14:14:15 +03:00
|
|
|
IF(!buffer_size)
|
|
|
|
{
|
2015-08-20 19:37:49 +03:00
|
|
|
buffer_size = EDX;
|
2015-08-19 14:14:15 +03:00
|
|
|
buffer = malloc(buffer_size);
|
|
|
|
}
|
2015-08-20 19:37:49 +03:00
|
|
|
ELSE IF(buffer_size<EDX)
|
2015-08-19 14:14:15 +03:00
|
|
|
{
|
2015-08-20 19:37:49 +03:00
|
|
|
buffer_size = EDX;
|
2015-08-19 14:14:15 +03:00
|
|
|
buffer = realloc(buffer,buffer_size);
|
|
|
|
}
|
|
|
|
IF (no_bg_copy)
|
|
|
|
{
|
|
|
|
EBX = bg_color;
|
|
|
|
EDI = buffer;
|
2015-08-20 19:37:49 +03:00
|
|
|
EAX = buffer_size+EDI;
|
2015-08-19 14:14:15 +03:00
|
|
|
WHILE (EDI<EAX)
|
|
|
|
{
|
|
|
|
ESDWORD[EDI] = EBX;
|
|
|
|
$add edi,3
|
|
|
|
}
|
|
|
|
}
|
2015-09-01 16:55:35 +03:00
|
|
|
ELSE
|
|
|
|
{
|
|
|
|
GetProcessInfo(#Form_SELF_FONTS, SelfInfo);
|
|
|
|
CopyScreen(buffer,x+Form_SELF_FONTS.left+5,y+Form_SELF_FONTS.top+GetSkinHeight(),size.width,size.height);
|
|
|
|
}
|
2015-09-05 12:16:38 +03:00
|
|
|
len = size.offset.x;
|
2015-08-17 03:16:17 +03:00
|
|
|
WHILE(DSBYTE[text1])
|
|
|
|
{
|
2015-08-20 18:04:18 +03:00
|
|
|
IF(DSBYTE[text1]=='_') len--;
|
2015-09-02 16:15:32 +03:00
|
|
|
len+=symbol(len,0,DSBYTE[text1]);
|
2015-08-20 19:37:49 +03:00
|
|
|
IF(weight)len+=math.ceil(size.text/17);
|
2015-08-17 03:16:17 +03:00
|
|
|
text1++;
|
|
|
|
}
|
2015-10-12 14:42:35 +03:00
|
|
|
IF (use_smooth) SmoothFont(buffer, size.width, size.height);
|
2015-08-17 03:16:17 +03:00
|
|
|
return len;
|
|
|
|
}
|
2015-09-07 14:33:25 +03:00
|
|
|
:void FONT::show()
|
2015-08-27 11:33:51 +03:00
|
|
|
{
|
2015-09-07 14:33:25 +03:00
|
|
|
_PutImage(left,top,size.width,size.height,buffer);
|
2015-08-27 11:33:51 +03:00
|
|
|
}
|
2015-08-22 16:27:12 +03:00
|
|
|
inline fastcall dword b24(EBX) { return DSDWORD[EBX] << 8; }
|
2015-08-27 11:33:51 +03:00
|
|
|
:void SmoothFont(dword image, w, h)
|
2015-08-22 16:27:12 +03:00
|
|
|
{
|
|
|
|
byte rr,gg,bb;
|
|
|
|
dword i,line_w,to, pixel;
|
|
|
|
line_w = w * 3;
|
2015-08-27 11:33:51 +03:00
|
|
|
to = w*h*3 + image - line_w - 3;
|
2015-09-05 13:52:06 +03:00
|
|
|
for(i = image; i < to; i+=3) {
|
|
|
|
IF(i-image%line_w +3 == line_w) continue;
|
|
|
|
IF(b24(i)==0x000000) && (b24(i+3)!=0x000000) && (b24(i+line_w)!=0x000000) && (b24(i+3+line_w)==0x000000)
|
2015-08-22 16:27:12 +03:00
|
|
|
{
|
|
|
|
ShadowImage(i+3, 1, 1, 2);
|
|
|
|
ShadowImage(i+line_w, 1, 1, 2);
|
|
|
|
}
|
2015-09-05 13:52:06 +03:00
|
|
|
ELSE IF(b24(i)!=0x000000) && (b24(i+3)==0x000000) && (b24(i+line_w)==0x000000) && (b24(i+3+line_w)!=0x000000)
|
2015-08-22 16:27:12 +03:00
|
|
|
{
|
|
|
|
ShadowImage(i, 1, 1, 2);
|
|
|
|
ShadowImage(i+3+line_w, 1, 1, 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-09-02 16:15:32 +03:00
|
|
|
:byte FONT::symbol(signed x,y;byte s)
|
2015-08-17 03:16:17 +03:00
|
|
|
{
|
2015-08-17 19:21:51 +03:00
|
|
|
dword xi,yi;
|
|
|
|
dword iii;
|
2015-08-21 14:03:08 +03:00
|
|
|
float ital = -size.w_italic;
|
2015-08-18 12:13:34 +03:00
|
|
|
dword ___x;
|
2015-09-07 14:33:25 +03:00
|
|
|
//byte _TMP_WEIGHT;
|
2015-08-17 19:21:51 +03:00
|
|
|
byte rw=0;
|
2015-09-07 14:33:25 +03:00
|
|
|
//_TMP_WEIGHT=2;
|
2015-08-17 19:21:51 +03:00
|
|
|
IF(s==32)return width/4;
|
|
|
|
IF(s==9)return width;
|
2015-08-21 19:16:45 +03:00
|
|
|
IF(!encoding)
|
|
|
|
{
|
|
|
|
IF(s>=128)&&(s<=175)s+=64;
|
|
|
|
ELSE IF(s>=224)&&(s<=239)s+=16;
|
2015-08-29 15:10:11 +03:00
|
|
|
ELSE IF(s==241)s=184; //yo
|
|
|
|
ELSE IF(s==240)s=168; //YO
|
2015-08-21 19:16:45 +03:00
|
|
|
}
|
2015-08-17 19:21:51 +03:00
|
|
|
iii = 0;
|
2015-09-05 13:52:06 +03:00
|
|
|
EBX = block*s;
|
|
|
|
$shl ebx,2
|
|
|
|
$add ebx,data
|
|
|
|
yi = 0;
|
|
|
|
while(yi<height)
|
2015-08-17 19:21:51 +03:00
|
|
|
{
|
2015-09-05 13:52:06 +03:00
|
|
|
EDI = size.offset.y;
|
|
|
|
$add edi,yi
|
|
|
|
$add edi,y
|
2015-09-02 16:15:32 +03:00
|
|
|
for(xi=0; xi<width; xi++)
|
2015-09-01 16:11:07 +03:00
|
|
|
{
|
2015-09-05 13:52:06 +03:00
|
|
|
IF(iii%32) $shr ecx,1
|
2015-09-01 16:11:07 +03:00
|
|
|
ELSE
|
|
|
|
{
|
2015-09-05 13:52:06 +03:00
|
|
|
$add ebx,4
|
|
|
|
ECX = DSDWORD[EBX];
|
2015-09-01 16:11:07 +03:00
|
|
|
}
|
2015-09-05 13:52:06 +03:00
|
|
|
IF(ECX&true)
|
2015-09-01 16:11:07 +03:00
|
|
|
{
|
|
|
|
IF(xi>rw)rw=xi;
|
|
|
|
___x = x+xi;
|
|
|
|
IF(italic)___x+=math.ceil(ital);
|
2015-09-05 13:52:06 +03:00
|
|
|
PixelRGB(___x,EDI);
|
2015-09-07 14:33:25 +03:00
|
|
|
//_TMP_WEIGHT = 2;
|
|
|
|
//WHILE(_TMP_WEIGHT)
|
|
|
|
//{
|
|
|
|
// _TMP_WEIGHT--;
|
|
|
|
IF(weight) PixelRGB(___x+1,EDI);
|
|
|
|
//}
|
2015-09-01 16:11:07 +03:00
|
|
|
}
|
|
|
|
iii++;
|
|
|
|
}
|
|
|
|
IF(italic) ital-=size.offset_i;
|
2015-09-05 13:52:06 +03:00
|
|
|
$inc yi
|
2015-08-17 19:21:51 +03:00
|
|
|
}
|
|
|
|
return rw;
|
2015-08-17 03:16:17 +03:00
|
|
|
}
|
|
|
|
:byte FONT::load(dword path)
|
|
|
|
{
|
2015-11-06 17:49:37 +03:00
|
|
|
lib_init_fs();
|
2015-08-19 14:14:15 +03:00
|
|
|
buffer_size = 0;
|
2015-10-12 14:42:35 +03:00
|
|
|
use_smooth = true;
|
2015-08-17 03:16:17 +03:00
|
|
|
IF(data)free(data);
|
2015-11-06 17:49:37 +03:00
|
|
|
IF(!fs.read(path)) { debug("Error while loading font: "); debugln(path); return false; }
|
|
|
|
begin = data = EAX;
|
|
|
|
EBX = begin + ECX;
|
2015-09-05 13:52:06 +03:00
|
|
|
$dec ebx
|
|
|
|
height = DSBYTE[EBX];
|
|
|
|
$dec ebx
|
|
|
|
width = DSBYTE[EBX];
|
2015-08-17 03:16:17 +03:00
|
|
|
block = math.ceil(height*width/32);
|
2015-08-20 19:37:49 +03:00
|
|
|
return true;
|
2015-08-17 03:16:17 +03:00
|
|
|
}
|
|
|
|
|
2015-11-06 02:26:15 +03:00
|
|
|
:void FONT::prepare_buf(int x,y,w,h; dword text1)
|
2015-09-01 16:11:07 +03:00
|
|
|
{
|
2015-09-07 16:07:29 +03:00
|
|
|
dword c, new_buffer_size;
|
2015-09-01 16:11:07 +03:00
|
|
|
c = color;
|
2015-11-06 02:26:15 +03:00
|
|
|
//left = x;
|
2015-09-01 16:11:07 +03:00
|
|
|
IF(!text1)return;
|
|
|
|
IF(size.text)IF(!changeSIZE())return;
|
|
|
|
AX = c; r = AL; g = AH; c>>=16; AX = c; b = AL;
|
|
|
|
getsize(text1);
|
2015-09-05 12:16:38 +03:00
|
|
|
y -= size.offset.y;
|
2015-11-06 02:26:15 +03:00
|
|
|
//top = y;
|
2015-09-01 16:11:07 +03:00
|
|
|
size.width = w;
|
2015-09-01 16:55:35 +03:00
|
|
|
size.height = h;
|
2015-09-02 16:15:32 +03:00
|
|
|
|
2015-09-07 16:07:29 +03:00
|
|
|
new_buffer_size = w*h*3;
|
|
|
|
IF(buffer_size!=new_buffer_size)
|
2015-09-01 16:11:07 +03:00
|
|
|
{
|
2015-09-07 16:07:29 +03:00
|
|
|
buffer_size = new_buffer_size;
|
2015-09-02 16:15:32 +03:00
|
|
|
free(buffer);
|
2015-09-07 16:07:29 +03:00
|
|
|
buffer = malloc(buffer_size);
|
|
|
|
EBX = bg_color;
|
|
|
|
EDI = buffer;
|
|
|
|
EAX = buffer_size+buffer;
|
2015-09-01 16:11:07 +03:00
|
|
|
WHILE (EDI<EAX)
|
|
|
|
{
|
|
|
|
ESDWORD[EDI] = EBX;
|
|
|
|
$add edi,3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
WHILE(DSBYTE[text1])
|
|
|
|
{
|
2015-09-02 16:15:32 +03:00
|
|
|
x+=symbol(x,y,DSBYTE[text1]);
|
2015-09-01 16:11:07 +03:00
|
|
|
IF(weight)x+=math.ceil(size.text/17);
|
|
|
|
text1++;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2015-08-17 03:16:17 +03:00
|
|
|
#endif
|