/** TYPO v1.0 
 * 
 * Requirements: jQuery + Draw!jQuery
 * 
 * @param {Object} layer
 * @param {Object} nb
 * @param {Object} width
 * @param {Object} thick
 * @param {Object} space
 * @param {Object} color
 */

function drawALetter( c, layer, width, height, thick, color ){
	switch ( c ) {
		case 'A': drawA(layer, width, height, thick, color); break;
		case 'a': drawA(layer, width, height, thick, color); break;
		case 'B': drawB(layer, width, height, thick, color); break;
		case 'b': drawB(layer, width, height, thick, color); break;
		case 'C': drawC(layer, width, height, thick, color); break;
		case 'c': drawC(layer, width, height, thick, color); break;
		case 'D': drawD(layer, width, height, thick, color); break;
		case 'd': drawD(layer, width, height, thick, color); break;
		case 'E': drawE(layer, width, height, thick, color); break;
		case 'e': drawE(layer, width, height, thick, color); break;
		case 'F': drawF(layer, width, height, thick, color); break;
		case 'f': drawF(layer, width, height, thick, color); break;
		case 'G': drawG(layer, width, height, thick, color); break;
		case 'g': drawG(layer, width, height, thick, color); break;
		case 'H': drawH(layer, width, height, thick, color); break;
		case 'h': drawH(layer, width, height, thick, color); break;
		case 'I': drawI(layer, width, height, thick, color); break;
		case 'i': drawI(layer, width, height, thick, color); break;
		case 'J': drawJ(layer, width, height, thick, color); break;
		case 'j': drawJ(layer, width, height, thick, color); break;
		case 'K': drawK(layer, width, height, thick, color); break;
		case 'k': drawK(layer, width, height, thick, color); break;
		case 'L': drawL(layer, width, height, thick, color); break;
		case 'l': drawL(layer, width, height, thick, color); break;
		case 'M': drawM(layer, width, height, thick, color); break;
		case 'm': drawM(layer, width, height, thick, color); break;
		case 'N': drawN(layer, width, height, thick, color); break;
		case 'n': drawN(layer, width, height, thick, color); break;
		case 'O': drawO(layer, width, height, thick, color); break;
		case 'o': draw0(layer, width, height, thick, color); break;
		case 'P': drawP(layer, width, height, thick, color); break;
		case 'p': drawP(layer, width, height, thick, color); break;
		case 'Q': drawQ(layer, width, height, thick, color); break;
		case 'q': drawQ(layer, width, height, thick, color); break;
		case 'R': drawR(layer, width, height, thick, color); break;
		case 'r': drawR(layer, width, height, thick, color); break;
		case 'S': drawS(layer, width, height, thick, color); break;
		case 's': drawS(layer, width, height, thick, color); break;
		case 'T': drawT(layer, width, height, thick, color); break;
		case 't': drawT(layer, width, height, thick, color); break;
		case 'U': drawU(layer, width, height, thick, color); break;
		case 'u': drawU(layer, width, height, thick, color); break;
		case 'V': drawV(layer, width, height, thick, color); break;
		case 'v': drawV(layer, width, height, thick, color); break;
		case 'W': drawW(layer, width, height, thick, color); break;
		case 'w': drawW(layer, width, height, thick, color); break;
		case 'X': drawX(layer, width, height, thick, color); break;
		case 'x': drawX(layer, width, height, thick, color); break;
		case 'Y': drawY(layer, width, height, thick, color); break;
		case 'y': drawY(layer, width, height, thick, color); break;
		case 'Z': drawZ(layer, width, height, thick, color); break;
		case 'z': drawZ(layer, width, height, thick, color); break;
		
		case '0': draw0(layer, width, height, thick, color); break;
		case '1': draw1(layer, width, height, thick, color); break;
		case '2': draw2(layer, width, height, thick, color); break;
		case '3': draw3(layer, width, height, thick, color); break;
		case '4': draw4(layer, width, height, thick, color); break;
		case '5': draw5(layer, width, height, thick, color); break;
		case '6': draw6(layer, width, height, thick, color); break;
		case '7': draw7(layer, width, height, thick, color); break;
		case '8': draw8(layer, width, height, thick, color); break;
		case '9': draw9(layer, width, height, thick, color); break;
		
		case '.': drawDot(layer, width, height, thick, color); break;
		case ':': drawDoubleDot(layer, width, height, thick, color); break;
		case '-': drawDash(layer, width, height, thick, color); break;
		case '/': drawSlash(layer, width, height, thick, color); break;
		case '_': drawUnderscore(layer, width, height, thick, color); break;
		case '+': drawPlus(layer, width, height, thick, color); break;
		case '=': drawEqual(layer, width, height, thick, color); break;
		case '!': drawExclamation(layer, width, height, thick, color); break;
		case '?': drawInterrogation(layer, width, height, thick, color); break;
		
		default:
		break;
	}
}

/** ALPHABET **/	
function drawA(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width/2)-(thick/2), 0, 0, width, width, (width/2)+(thick/2), width/2, width-thick, thick, width/2, (width/2)+(thick/2)];
	var vy = [0, height-thick, height, height, height-thick, 0, thick, height-thick, height-thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawB(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width, width, (width/2)+thick, (width/2)+thick, thick, thick, width/2, width/2, width-thick, width-thick, thick, thick];
	var vy = [0, height, height, (height/2)-thick, (height/2)-thick, 0, 0, thick, thick, height/2, height/2, height-thick, height-thick, 0];

	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawC(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width, width, thick, thick, width, width];
	var vy = [0, height, height, height-thick, height-thick, thick, thick, 0];

	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawD(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, thick, width, width, thick, thick, width-thick, thick, thick];
	var vy = [0, height, height, thick+(height-thick)/2, (height-thick)/2, 0, thick, height/2, height-thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawE(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width, width, thick, thick, width/2, width/2, thick, thick, width, width];
	var vy = [0, height, height, height-thick, height-thick, (height/2)+(thick/2), (height/2)+(thick/2), (height/2)-(thick/2), (height/2)-(thick/2), thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawF(layer, width, height, thick, color) {
	//coordonnées en x et yde la lettre
	var vx = [0, 0, thick, thick, width/2, width/2, thick, thick, width, width];
	var vy = [0, height, height, (height/2)+(thick/2), (height/2)+(thick/2), (height/2)-(thick/2), (height/2)-(thick/2), thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawG(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width, width, (width/2)+thick*1.2, width/2, width-thick*1.2, thick, thick, width, width];
	var vy = [0, height, height, height-thick, height/2, height/2, height-thick, height-thick, thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawH(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, thick, thick, width-thick, width-thick, width, width, width-thick, width-thick, thick, thick];
	var vy = [0, height, height, (height/2)+(thick/2), (height/2)+(thick/2), height, height, 0, 0, (height/2)-(thick/2), (height/2)-(thick/2), 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawI(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width/2)-(thick/2), (width/2)-(thick/2), (width/2)+(thick/2), (width/2)+(thick/2)];
	var vy = [0, height, height, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawJ(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [width-thick, width-thick, thick, thick, 0, 0, width, width];
	var vy = [0, height-thick, height-thick, height/2, height/2, height, height, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawK(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, thick, thick, width, width, 2*thick, width, width, thick, thick];
	var vy = [0, height, height, (height/2)+(thick/2), height, height-thick, height/2, thick, 0, (height/2)-(thick/2), 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawL(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width, width, thick, thick];
	var vy = [0, height, height, height-thick, height-thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawM(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, thick, thick, width/2, width-thick, width-thick, width, width, width-thick, width/2, thick];
	var vy = [0, height, height, thick*1.3, (height+thick*1.3)/2, thick*1.3, height, height, 0, 0, (height-thick*1.3)/2, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawN(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, thick, thick, width-thick, width, width, width-thick, width-thick, thick];
	var vy = [0, height, height, thick*1.5, height, height, 0, 0, height-(thick*1.5), 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawO(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width, width, 0, thick, thick, width-thick, width-thick, thick];
	var vy = [0, height, height, 0, 0, thick, height-thick, height-thick, thick, thick];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawP(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, thick, thick, width-thick, width-thick, thick, thick, width, width];
	var vy = [0, height, height, thick, thick, height/2, height/2, (height/2)+thick, (height/2)+thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawQ(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, (3*width/4)+(thick/2), (3*width/4)+(thick/2), width, width, thick, thick, width-thick, width-thick, (3*width/4)-(thick/2), (3*width/4)-(thick/2), thick, thick];
	var vy = [0, height, height, (3*height/4)+(thick/2), (3*height/4)+(thick/2), 0, 0, thick, thick, (3*height/4)-(thick/2), (3*height/4)-(thick/2), height-thick, height-thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawR(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, thick, thick, width-thick, width-thick, thick, thick, width-(thick*1.4), width, thick*2.4, width, width ];
	var vy = [0, height, height, thick, thick, height/2, height/2, (height/2)+thick, height, height, (height/2)+thick, (height/2)+thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

/*Revoir le dessin du S*/
function drawS(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var temp = (height-(3*thick))/2;
	var vx = [0, 0, width-thick*1.5, 0, 0, width, width, thick*1.5, width, width];
	var vy = [0, thick, height-thick, height-thick, height, height, height-thick, thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawT(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, (width/2)-(thick/2), (width/2)-(thick/2), (width/2)+(thick/2), (width/2)+(thick/2), width, width];
	var vy = [0, thick, thick, height, height, thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawU(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width, width, width-thick, width-thick, thick, thick];
	var vy = [0, height, height, 0, 0, height-thick, height-thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawV(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width/2, width, width, width/2];
	var vy = [0, thick*1.4, height, thick*1.4, 0, height-(thick*1.4)];

	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawW(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width/3, width/2, 2*width/3, width, width, 2*width/3, width/2, width/3];
	var vy = [0, thick*1.55, height, (height+1.55*thick)/2, height, thick*1.55, 0, height-thick*1.55, (height-thick*1.55)/2, height-thick*1.55 ];

	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawX(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width/2, 0, 0, width/2, width, width, width/2, width, width, width/2];
	var vy = [0, thick, height/2, height-thick, height, (height/2)+thick, height, height-thick, height/2, thick, 0, (height/2)-thick, 0]

	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col); // X
	
}

function drawY(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, (width/2)-(thick/2), (width/2)-(thick/2), (width/2)+(thick/2), (width/2)+(thick/2), width, width, width/2];
	var vy = [0, thick, height/2, height, height, height/2, thick, 0, (height/2)-(thick*0.85)];

	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawZ(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width-(thick*1.5), 0, 0, width, width, thick*1.5, width, width];
	var vy = [0, thick, thick, height-thick, height, height, height-thick, height-thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

/** NUMBERS **/

function draw0(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width-thick)/2, 0, 0, (width-thick)/2, (width+thick)/2, width, width, (width+thick)/2, (width-thick)/2, width/2, width-thick, width/2, thick, width/2];
	var vy = [0, (height-thick)/2, (height+thick)/2, height, height, (height+thick)/2, (height-thick)/2, 0, 0, thick, height/2, height-thick, height/2, thick];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw1(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width-thick)/2, 0, 0, (width-thick)/2, (width-thick)/2, (width+thick)/2, (width+thick)/2];
	var vy = [0, height/2-thick, height/2, thick, height, height, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw2(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width-thick)/2, 0, 0, (width-thick)/2, width-thick*1.3, 0, 0, width, width, thick*1.3, width, width];
	var vy = [0, (height/2)-thick, height/2, thick, thick, height-thick, height, height, height-thick, height-thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw3(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width-thick)/2, (width-thick)/2, width-thick*1.3, (width-thick*1.3)/2, width-thick*1.3, 0, 0, width, width, (width+thick*1.3)/2, width, width];
	var vy = [0, thick, thick, height/2, height-thick, height-thick, height, height, height-thick, height/2, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw4(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width-thick*1.3)/2, 0, 0, (width-thick)/2, (width-thick)/2, (width+thick)/2, (width+thick)/2, width, width, thick*1.3, (width+thick*1.3)/2  ];
	var vy = [0, (height-thick)/2, (height+thick)/2, (height+thick)/2, height, height, (height+thick)/2, (height+thick)/2, (height-thick)/2, (height-thick)/2, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw5(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width-thick*1.3, (width-thick)/2, 0, 0, (width-thick)/2, width, width, thick*1.3, width, width];
	var vy = [0, thick, height-thick, height-thick, height/2, (height/2)+thick, height, height, height-thick, thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw6(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [width-thick*1.5, 0, 0, width-thick, (width+thick)/2, (width-thick)/2, thick, 0, (width-thick)/2, (width+thick)/2, width, width, thick*1.5, width];
	var vy = [0, (height-thick)/2, (height+thick)/2, (height+thick)/2, height-thick, height-thick, (height+thick)/2, (height+thick)/2, height, height, (height+thick)/2, (height-thick)/2, (height-thick)/2, 0 ];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw7(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width-thick*1.25, 0, thick*1.25, width, width];
	var vy = [0, thick, thick, height, height, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw8(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, (width/2)-thick, 0, 0, width, width, (width/2)+thick, width, width, thick, thick, width-thick, thick, width-thick, thick, thick];
	var vy = [0, thick, height/2, height-thick, height, height, height-thick, height/2, thick, 0, 0, thick, height-thick, height-thick, thick,thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function draw9(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width-thick)/2, 0, 0, width-thick*1.5, 0, thick*1.5, width, width, (width+thick)/2 , (width-thick)/2, (width-thick)/2, (width+thick)/2, width-thick, thick, (width-thick)/2];
	var vy = [0, (height-thick)/2, (height+thick)/2, (height+thick)/2, height, height, (height+thick)/2, (height-thick)/2, 0, 0, thick, thick, (height-thick)/2, (height-thick)/2, thick];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

/** SPECIAL CHARACTERS **/

function drawDot(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [(width/2)-(thick/2), (width/2)-(thick/2), (width/2)+(thick/2), (width/2)+(thick/2)];
	var vy = [height-thick, height, height, height-thick];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawDoubleDot(layer, width, height, thick, color) {
	//EXCEPTION: No polygon this time. 
	var temp = (height-2*thick)/3;
	var col = {color: color, alpha: 1};
	layer.fillRect((width-thick)/2, temp, thick, thick, col);
	layer.fillRect((width-thick)/2, 2*temp+thick, thick, thick, col);
	
}

function drawDash(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [thick/2, thick/2, width-(thick/2), width-(thick/2)];
	var vy = [(height/2)-(thick/2), (height/2)+(thick/2), (height/2)+(thick/2), (height/2)-(thick/2)];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawSlash(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, thick*1.2, width, width-thick*1.2];
	var vy = [height, height, 0, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawUnderscore(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, width, width];
	var vy = [height-thick, height, height, height-thick];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawPlus(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, (width/2)-(thick/2), (width/2)-(thick/2), (width/2)+(thick/2), (width/2)+(thick/2), width, width, (width/2)+(thick/2), (width/2)+(thick/2), (width/2)-(thick/2), (width/2)-(thick/2)];
	var vy = [(height/2)-(thick/2), (height/2)+(thick/2), (height/2)+(thick/2), height, height, (height/2)+(thick/2), (height/2)+(thick/2), (height/2)-(thick/2), (height/2)-(thick/2), 0, 0, (height/2)-(thick/2)];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawEqual(layer, width, height, thick, color) {
	/* One ugly small line.
	var temp = (height-2*thick)/3;
	//coordonnées en x et y de la lettre
	var vx = [width, 0, 0, width, width, 0, 0, width];
	var vy = [temp, temp, temp+thick, temp+thick, 2*temp+thick, 2*temp+thick, height-temp, height-temp];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
	*/
	
	//EXCEPTION: No polygon this time. 
	var temp = (height-2*thick)/3;
	var col = {color: color, alpha: 1};
	layer.fillRect(0, temp, width, thick, col);
	layer.fillRect(0, 2*temp+thick, width, thick, col);
	
}

function drawExclamation(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [width-thick, (width-thick)/2, (width-thick)/2, (width+thick)/2, (width+thick)/2, width];
	var vy = [0, height-thick, height, height, height-thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}

function drawInterrogation(layer, width, height, thick, color) {
	//coordonnées en x et y de la lettre
	var vx = [0, 0, (width/2)-thick, width/2, thick, width-thick, (width/2)-(thick/3), (width/2)-(thick/3), (width/2)+(2*thick/3), (width/2)+(2*thick/3), width, width];
	var vy = [0, thick, height/2, height/2, thick, thick, height-thick, height, height, height-thick, thick, 0];
	
	var col = {color: color, alpha: 1}; 
	layer.fillPolygon(vx, vy, col);
	
}
