G
Getron
Guest
Hi All,
Just a question regarding Surfaces and Text.
I have notice that when I have drawn text to a Surface, it begins to distort and not present as crisp as when you draw text directly to screen. You will notice, in the example picture below, with the text: "Barter" that the edges are green and unclean. Also when I display my Mouse-over on text: "Commit", you can clearly see very unclean / blocky.
Code Used:
box = surface_create(boxWidth, boxHeight);
surface_set_target(box);
draw_clear_alpha(0, 0);
draw_set_alpha(1);
draw_set_halign(fa_center);
draw_set_valign(fa_top);
draw_set_colour(c_black);
draw_rectangle( 0, 0, boxWidth, boxHeight, false);
draw_set_colour( c_gray);
draw_rectangle( 2, 2, boxWidth-3, boxHeight-3, false);
draw_set_colour( c_black);
draw_line(0, topLineY , boxWidth, topLineY);
draw_line(boxWHalf, topLineY, boxWHalf, botLineY1);
draw_line(0, topLineY * 2, boxWidth, topLineY * 2);
draw_line(0, botLineY1, boxWidth, botLineY1);
draw_line(0, botLineY2, boxWidth, botLineY2);
draw_text(boxWHalf+2, titleY+2, Title);
draw_text(boxWQurt+2, comtCanlY+2, canTxt);
draw_text(boxW3Qurt+2, comtCanlY+2, comTxt);
draw_set_colour( c_white);
draw_text(boxWHalf, titleY, Title);
draw_text(boxWQurt, comtCanlY, canTxt);
draw_text(boxW3Qurt, comtCanlY, comTxt);
surface_reset_target();
break;
Any words of wisdom would very appreciated.
Thanks
Garth
Just a question regarding Surfaces and Text.
I have notice that when I have drawn text to a Surface, it begins to distort and not present as crisp as when you draw text directly to screen. You will notice, in the example picture below, with the text: "Barter" that the edges are green and unclean. Also when I display my Mouse-over on text: "Commit", you can clearly see very unclean / blocky.
Code Used:
box = surface_create(boxWidth, boxHeight);
surface_set_target(box);
draw_clear_alpha(0, 0);
draw_set_alpha(1);
draw_set_halign(fa_center);
draw_set_valign(fa_top);
draw_set_colour(c_black);
draw_rectangle( 0, 0, boxWidth, boxHeight, false);
draw_set_colour( c_gray);
draw_rectangle( 2, 2, boxWidth-3, boxHeight-3, false);
draw_set_colour( c_black);
draw_line(0, topLineY , boxWidth, topLineY);
draw_line(boxWHalf, topLineY, boxWHalf, botLineY1);
draw_line(0, topLineY * 2, boxWidth, topLineY * 2);
draw_line(0, botLineY1, boxWidth, botLineY1);
draw_line(0, botLineY2, boxWidth, botLineY2);
draw_text(boxWHalf+2, titleY+2, Title);
draw_text(boxWQurt+2, comtCanlY+2, canTxt);
draw_text(boxW3Qurt+2, comtCanlY+2, comTxt);
draw_set_colour( c_white);
draw_text(boxWHalf, titleY, Title);
draw_text(boxWQurt, comtCanlY, canTxt);
draw_text(boxW3Qurt, comtCanlY, comTxt);
surface_reset_target();
break;
Any words of wisdom would very appreciated.
Thanks
Garth