2d_warrior
Member
Is there a way to draw a text font with kerning (the horizontal space between each letter) adjusted? I want to draw an outline around the font, but then the letters run into each other without being able to adjust kerning.
// draw_text_kern(x,y,text,kern)
var tx, ty, txt, kern, ch,tox;
tx = argument[0];
ty = argument[1];
txt = argument[2];
kern = argument[3];
tox = tx;
for(var i=1;i<=string_length(text);i+=1){
ch = string_char_at(txt,z);
if(ch=="\n"){
// Change \n to # if using older GM
ty+=string_height("|");
tx = tox;
}else{
draw_text(tx,ty,ch);
tx+=string_width(ch);
tx+=kern;
}
}