Subversion Repositories Kolibri OS

Rev

Rev 5846 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5846 Rev 5884
Line 25... Line 25...
25
{
25
{
26
	__SIZE size;
26
	__SIZE size;
27
	byte r,g,b,weight,italic, smooth;
27
	byte r,g,b,weight,italic, smooth;
28
	byte width,height;
28
	byte width,height;
29
	byte use_smooth;
29
	byte use_smooth;
30
	word left,top;
30
	int left,top;
31
	byte encoding;
31
	byte encoding;
32
	dword color;
32
	dword color;
33
	dword file_size;
33
	dword file_size;
34
	dword buffer;
34
	dword buffer;
35
	dword buffer_size;
35
	dword buffer_size;
Line 170... Line 170...
170
		size.width += rw;
170
		size.width += rw;
171
		IF(weight) size.width+=size.TMP_WEIGHT;
171
		IF(weight) size.width+=size.TMP_WEIGHT;
172
		IF(s=='_') size.width--;
172
		IF(s=='_') size.width--;
173
		IF(size.offset.x<0)size.offset.x = X;
173
		IF(size.offset.x<0)size.offset.x = X;
174
}
174
}
175
:dword FONT::prepare(word x,y;dword text1)
175
:dword FONT::prepare(int x,y;dword text1)
176
{
176
{
177
	signed len=0;
177
	signed len=0;
178
	proc_info Form_SELF_FONTS;
178
	proc_info Form_SELF_FONTS;
179
	dword c;
179
	dword c;
180
	c = color;
180
	c = color;
Line 318... Line 318...
318
	width = DSBYTE[EBX];
318
	width = DSBYTE[EBX];
319
	block = math.ceil(height*width/32);
319
	block = math.ceil(height*width/32);
320
	return true;
320
	return true;
321
}
321
}
Line 322... Line 322...
322
 
322
 
323
:void FONT::prepare_buf(dword x,y,w,h; dword text1)
323
:void FONT::prepare_buf(int x,y,w,h; dword text1)
324
{
324
{
325
	dword c, new_buffer_size;
325
	dword c, new_buffer_size;
-
 
326
	c = color;
326
	c = color;
327
	//left = x;
327
	IF(!text1)return;
328
	IF(!text1)return;
328
	IF(size.text)IF(!changeSIZE())return;
329
	IF(size.text)IF(!changeSIZE())return;
329
	AX = c; r = AL; g = AH; c>>=16; AX = c; b = AL;
330
	AX = c; r = AL; g = AH; c>>=16; AX = c; b = AL;
330
	getsize(text1);
331
	getsize(text1);
331
	y -= size.offset.y;
332
	y -= size.offset.y;
332
	
333
	//top = y;
333
	size.width = w;
334
	size.width = w;
Line 334... Line 335...
334
	size.height = h;
335
	size.height = h;
335
 
336