HV_Font = {}
function HV_Font:DrawLetters(moho, g, simpleText, pointSize, startX, startY, lineSpacing, lineOffset)
	local v = LM.Vector2:new_local()
    local vtxt = {}
    local count = 0
	local txtLen = string.len(simpleText)
    for i=0, string.len(simpleText) do
        local txt = string.sub(simpleText, i, i)
                if (txt == "a") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,5.5,-4.5,6.5}
                    vtxt[count][1] = {-4.5,6.5,-1.5,6.5}
                    vtxt[count][2] = {-1.5,6.5,-0,5.5}
                    vtxt[count][3] = {-0,5.5,-0,0.0}
                    vtxt[count][4] = {-0,0.0,-4.5,0.0}
                    vtxt[count][5] = {-4.5,0.0,-6,1.0}
                    vtxt[count][6] = {-6,1.0,-6,3.0}
                    vtxt[count][7] = {-6,3.0,-4.5,4.0}
                    vtxt[count][8] = {-4.5,4.0,-0,4.0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "b") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,6.5,-1.5,6.5}
                    vtxt[count][1] = {-1.5,6.5,-0,5.5}
                    vtxt[count][2] = {-0,5.5,-0,1.0}
                    vtxt[count][3] = {-0,1.0,-1.5,0.0}
                    vtxt[count][4] = {-1.5,0.0,-6,0.0}
                    vtxt[count][5] = {-6,0.0,-6,10.0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "c") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-0,5.5,-1.5,6.5}
                    vtxt[count][1] = {-1.5,6.5,-4.5,6.5}
                    vtxt[count][2] = {-4.5,6.5,-6,5.5}
                    vtxt[count][3] = {-6,5.5,-6,1.0}
                    vtxt[count][4] = {-6,1.0,-4.5,0.0}
                    vtxt[count][5] = {-4.5,0.0,-1.5,0.0}
                    vtxt[count][6] = {-1.5,0.0,-0,1.0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "d") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-0,10.0,-0,0.0}
                    vtxt[count][1] = {-0,0.0,-4.5,0.0}
                    vtxt[count][2] = {-4.5,0.0,-6,1.0}
                    vtxt[count][3] = {-6,1.0,-6,5.5}
                    vtxt[count][4] = {-6,5.5,-4.5,6.5}
                    vtxt[count][5] = {-4.5,6.5,-0,6.5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "e") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,3.5,-0,3.5}
                    vtxt[count][1] = {-0,3.5,-0,5.5}
                    vtxt[count][2] = {-0,5.5,-1.5,6.5}
                    vtxt[count][3] = {-1.5,6.5,-4.5,6.5}
                    vtxt[count][4] = {-4.5,6.5,-6,5.5}
                    vtxt[count][5] = {-6,5.5,-6,1}
                    vtxt[count][6] = {-6,1,-4.5,0.0}
                    vtxt[count][7] = {-4.5,0.0,-1.5,0}
                    vtxt[count][8] = {-1.5,0,-0,1}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "f") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-0,10,-2,10}
                    vtxt[count][1] = {-2,10,-3,9}
                    vtxt[count][2] = {-3,9,-3,-0.45}
                    vtxt[count][3] = {-5,6.5,-1,6.5}
                    vtxt[count].sp = 0.6
                    count = count+1
                end
                if (txt == "g") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,-2.5,-4.5,-3.5}
                    vtxt[count][1] = {-4.5,-3.5,-1.5,-3.5}
                    vtxt[count][2] = {-1.5,-3.5,-0,-2.5}
                    vtxt[count][3] = {-0,-2.5,-0,5.5}
                    vtxt[count][4] = {-0,5.5,-1.5,6.5}
                    vtxt[count][5] = {-1.5,6.5,-4.5,6.5}
                    vtxt[count][6] = {-4.5,6.5,-6,5.5}
                    vtxt[count][7] = {-6,5.5,-6,1.0}
                    vtxt[count][8] = {-6,1.0,-4.5,0}
                    vtxt[count][9] = {-4.5,0,-1.5,0}
                    vtxt[count][10] = {-1.5,0,-0,1}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "h") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10,-6,-0.45}
                    vtxt[count][1] = {-6,5.5,-4.5,6.5}
                    vtxt[count][2] = {-4.5,6.5,-1.5,6.5}
                    vtxt[count][3] = {-1.5,6.5,-0,5.5}
                    vtxt[count][4] = {-0,5.5,-0,-0.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "i") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-3,6.5,-3,-0.45}
                    vtxt[count][1] = {-3,9.5,-3,8.5}
                    vtxt[count].sp = 0.4
                    count = count+1
                end
                if (txt == "j") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-3,9.5,-3,8.5}
                    vtxt[count][1] = {-3,6.5,-3,-1.5}
                    vtxt[count][2] = {-3,-1.5,-4.5,-3}
                    vtxt[count][3] = {-4.5,-3,-6.5,-3}       
                    vtxt[count].sp = 0.6
                    count = count+1
                end
                if (txt == "k") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10,-6,-0.45}
                    vtxt[count][1] = {0,7.75,-6,3.25}
                    vtxt[count][2] = {-0.25,-0.45,-3.75,4.75}
                    vtxt[count].sp = 0.85
                    count = count+1
                end
                if (txt == "l") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-4,10,-3,10}
                    vtxt[count][1] = {-3,10,-3,0}
                    vtxt[count][2] = {-3,0,-1.5,0}
                    vtxt[count].sp = 0.5
                    count = count+1
                end
                if (txt == "m") then
                    vtxt[count] = {}
                    vtxt[count][0] = {0.5,-0.45,0.5,5.5,}
                    vtxt[count][1] = {0.5,5.5,-0.5,6.5,}
                    vtxt[count][2] = {-0.5,6.5,-2,6.5,}
                    vtxt[count][3] = {-2,6.5,-3,5.5,}
                    vtxt[count][4] = {-3,5.5,-4,6.5,}
                    vtxt[count][5] = {-4,6.5,-5.5,6.5,}
                    vtxt[count][6] = {-5.5,6.5,-6.5,5.5}
                    vtxt[count][7] = {-6.5,5.5,-6.5,-0.45}
                    vtxt[count][8] = {-3,5.5,-3,-0.45}
                    vtxt[count].sp = 1.1
                    count = count+1
                end
                if (txt == "n") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,-0.45,-6,5.5}
                    vtxt[count][1] = {-6,5.5,-4.5,6.5}
                    vtxt[count][2] = {-4.5,6.5,-1.5,6.5}
                    vtxt[count][3] = {-1.5,6.5,-0,5.5}
                    vtxt[count][4] = {-0,5.5,0,-0.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "o") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-4.5,6.5,-1.5,6.5}
                    vtxt[count][1] = {-1.5,6.5,-0,5.5}
                    vtxt[count][2] = {-0,5.5,-0,1}
                    vtxt[count][3] = {-0,1,-1.5,0}
                    vtxt[count][4] = {-1.5,0,-4.5,0}
                    vtxt[count][5] = {-4.5,0,-6,1}
                    vtxt[count][6] = {-6,1,-6,5.5}
                    vtxt[count][7] = {-6,5.5,-4.5,6.5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "p") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,6.5,-6,-3.5}
                    vtxt[count][1] = {-6,5.5,-4.5,6.5}
                    vtxt[count][2] = {-4.5,6.5,-1.5,6.5}
                    vtxt[count][3] = {-1.5,6.5,-0,5.5}
                    vtxt[count][4] = {-0,5.5,-0,1}
                    vtxt[count][5] = {-0,1,-1.5,0}
                    vtxt[count][6] = {-1.5,0,-4.5,0}
                    vtxt[count][7] = {-4.5,0,-6,1}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "q") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-0,1,-1.5,0}
                    vtxt[count][1] = {-1.5,0,-4.5,0}
                    vtxt[count][2] = {-4.5,0,-6,1}
                    vtxt[count][3] = {-6,1,-6,5.5}
                    vtxt[count][4] = {-6,5.5,-4.5,6.5}
                    vtxt[count][5] = {-4.5,6.5,-1.5,6.5}
                    vtxt[count][6] = {-1.5,6.5,-0,5.5}
                    vtxt[count][7] = {-0,5.5,-0,-3.5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "r") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-5,-0.45,-5,6.5}
                    vtxt[count][1] = {-5,6.5,-1.5,6.5}
                    vtxt[count][2] = {-1.5,6.5,-0.5,5.5}
                    vtxt[count].sp = 0.7
                    count = count+1
                end
                if (txt == "s") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-0,5.5,-1.5,6.5}
                    vtxt[count][1] = {-1.5,6.5,-4.5,6.5}
                    vtxt[count][2] = {-4.5,6.5,-6,5.5}
                    vtxt[count][3] = {-6,5.5,-6,4.5}
                    vtxt[count][4] = {-6,4.5,-4.5,3.5}
                    vtxt[count][5] = {-4.5,3.5,-1.5,3.5}
                    vtxt[count][6] = {-1.5,3.5,-0,2.5}
                    vtxt[count][7] = {-0,2.5,-0,1}
                    vtxt[count][8] = {-0,1,-1.5,0}
                    vtxt[count][9] = {-1.5,0,-4.5,0}
                    vtxt[count][10] = {-4.5,0,-6,1}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "t") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-1,0,-3,0}
                    vtxt[count][1] = {-3,0,-4,1}
                    vtxt[count][2] = {-4,1,-4,9}
                    vtxt[count][3] = {-1.5,6.5,-5,6.5}
                    vtxt[count].sp = 0.5
                    count = count+1
                end
                if (txt == "u") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,6.5,-6,1}
                    vtxt[count][1] = {-6,1,-4.5,0}
                    vtxt[count][2] = {-4.5,0,-1.5,0}
                    vtxt[count][3] = {-1.5,0,-0,1}
                    vtxt[count][4] = {-0,1,-0,6.5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "v") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,6.75,-3,0}
                    vtxt[count][1] = {-3,0,0,6.75}
                    vtxt[count].sp = 0.85
                    count = count+1
                end
                if (txt == "w") then
                    vtxt[count] = {}
                    vtxt[count][0] = {0.75,6.75,-1,0}
                    vtxt[count][1] = {-1,0,-3,6.5}
                    vtxt[count][2] = {-3,6.5,-5,0}
                    vtxt[count][3] = {-5,0,-6.75,6.75}
                    vtxt[count].sp = 1.1
                    count = count+1
                end
                if (txt == "x") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,6.5,-0,-0.45}
                    vtxt[count][1] = {0,6.5,-6,-0.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "y") then
                    vtxt[count] = {}
                    vtxt[count][0] = {0,6.5,-4.5,-3.5}
                    vtxt[count][1] = {-6,6.5,-3,0}
                    vtxt[count].sp = 0.8
                    count = count+1
                end
                if (txt == "z") then
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,6.5,0,6.5}
                    vtxt[count][1] = {0,6.5,-6,0}
                    vtxt[count][2] = {-6,0,0,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
        ----------------------------------------------------------------
        -- space
        ----------------------------------------------------------------
                if (txt == " ") then  
                    vtxt[count] = {}
                    vtxt[count][0] = nil
                    vtxt[count].sp = 0.5
                    count = count+1
                end
        ----------------------------------------------------------------
        -- upper case letters
        ----------------------------------------------------------------
                if (txt == "A") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0.75,-0.5,-3,10}
                    vtxt[count][1] = {-3,10,-6.75,-0.5}
                    vtxt[count][2] = {-0.5,3,-5.5,3}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "B") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10,-1,10}
                    vtxt[count][1] = {-1,10,0,9}
                    vtxt[count][2] = {0,9,0,6}
                    vtxt[count][3] = {0,6,-1,5}
                    vtxt[count][4] = {-1,5,0,4}
                    vtxt[count][5] = {0,4,0,1}
                    vtxt[count][6] = {0,1,-1,0}
                    vtxt[count][7] = {-1,0,-6,0}
                    vtxt[count][8] = {-6,0,-6,10}
                    vtxt[count][9] = {-6,5,-1,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "C") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,9,-1,10}
                    vtxt[count][1] = {-1,10,-5,10}
                    vtxt[count][2] = {-5,10,-6,9}
                    vtxt[count][3] = {-6,9,-6,1}
                    vtxt[count][4] = {-6,1,-5,0}
                    vtxt[count][5] = {-5,0,-1,0}
                    vtxt[count][6] = {-1,0,0,1}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "D") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10,-1,10}
                    vtxt[count][1] = {-1,10,0,9}
                    vtxt[count][2] = {0,9,0,1}
                    vtxt[count][3] = {0,1,-1,0}
                    vtxt[count][4] = {-1,0,-6,0}
                    vtxt[count][5] = {-6,0,-6,10}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "E") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,10,-6,10}
                    vtxt[count][1] = {-6,10,-6,0}
                    vtxt[count][2] = {-6,0,0,0}
                    vtxt[count][3] = {-6,5,-1.25,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "F") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,10,-6,10}
                    vtxt[count][1] = {-6,10,-6,-0.45}
                    vtxt[count][2] = {-6,5,0,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "G") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,9,-1,10}
                    vtxt[count][1] = {-1,10,-5,10}
                    vtxt[count][2] = {-5,10,-6,9}
                    vtxt[count][3] = {-6,9,-6,1}
                    vtxt[count][4] = {-6,1,-5,0}
                    vtxt[count][5] = {-5,0,-1,0}
                    vtxt[count][6] = {-1,0,0,1}
                    vtxt[count][7] = {0,1,0,5}
                    vtxt[count][8] = {0,5,-3,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "H") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,-0.45,0,10.45}
                    vtxt[count][1] = {-6,-0.45,-6,10.45}
                    vtxt[count][2] = {-6,5,0,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "I") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-3,0,-3,10}
                    vtxt[count][1] = {-5,10,-1,10}
                    vtxt[count][2] = {-5,0,-1,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "J") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-0,10.45,0,1}
                    vtxt[count][1] = {0,1,-1,0}
                    vtxt[count][2] = {-1,0,-5,0}
                    vtxt[count][3] = {-5,0,-6,1}
                    vtxt[count][4] = {-6,1,-6,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "K") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10.45,-6,-0.45}
                    vtxt[count][1] = {0,10.45,-6,5}
                    vtxt[count][2] = {-6,5,-0.45,-0.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "L") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10.45,-6,0}
                    vtxt[count][1] = {-6,0,0,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "M") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,-0.45,-6,10}
                    vtxt[count][1] = {-6,10,-3,0}
                    vtxt[count][2] = {-3,0,0,10}
                    vtxt[count][3] = {0,10,0,-0.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "N") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,-0.45,-6,10}
                    vtxt[count][1] = {-6,10,0,0}
                    vtxt[count][2] = {0,0,0,10.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "O") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,9,-5,10}
                    vtxt[count][1] = {-5,10,-1,10}
                    vtxt[count][2] = {-1,10,0,9}
                    vtxt[count][3] = {0,9,0,1}
                    vtxt[count][4] = {0,1,-1,0}
                    vtxt[count][5] = {-1,0,-5,0}
                    vtxt[count][6] = {-5,0,-6,1}
                    vtxt[count][7] = {-6,1,-6,9}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "P") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-5.75,-0.45,-6,10}
                    vtxt[count][1] = {-6,10,-1,10}
                    vtxt[count][2] = {-1,10,0,9}
                    vtxt[count][3] = {0,9,0,6}
                    vtxt[count][4] = {0,6,-1,5}
                    vtxt[count][5] = {-1,5,-6,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "Q") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,9,-5,10}
                    vtxt[count][1] = {-5,10,-1,10}
                    vtxt[count][2] = {-1,10,0,9}
                    vtxt[count][3] = {0,9,0,1}
                    vtxt[count][4] = {0,1,-1,0}
                    vtxt[count][5] = {-1,0,-5,0}
                    vtxt[count][6] = {-5,0,-6,1}
                    vtxt[count][7] = {-6,1,-6,9}
                    vtxt[count][8] = {-3,3,0,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "R") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,-0.45,-6,10}
                    vtxt[count][1] = {-6,10,-1,10}
                    vtxt[count][2] = {-1,10,0,9}
                    vtxt[count][3] = {0,9,0,6}
                    vtxt[count][4] = {0,6,-1,5}
                    vtxt[count][5] = {-1,5,0,4}
                    vtxt[count][6] = {0,4,0,-0.45}
                    vtxt[count][7] = {-6,5,-1,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "S") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,9,-1,10}
                    vtxt[count][1] = {-1,10,-5,10}
                    vtxt[count][2] = {-5,10,-6,9}
                    vtxt[count][3] = {-6,9,-6,6}
                    vtxt[count][4] = {-6,6,-5,5}
                    vtxt[count][5] = {-5,5,-1,5}
                    vtxt[count][6] = {-1,5,0,4}
                    vtxt[count][7] = {0,4,0,1}
                    vtxt[count][8] = {0,1,-1,0}
                    vtxt[count][9] = {-1,0,-5,0}
                    vtxt[count][10] = {-5,0,-6,1}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "T") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6.5,10,0.5,10}
                    vtxt[count][1] = {-3,10,-3,-0.45}
                    vtxt[count].sp = 0.9
                    count = count+1
                end
                if (txt == "U") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10.45,-6,1}
                    vtxt[count][1] = {-6,1,-5,0}
                    vtxt[count][2] = {-5,0,-1,0}
                    vtxt[count][3] = {-1,0,0,1}
                    vtxt[count][4] = {0,1,0,10.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "V") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10.45,-3,0}
                    vtxt[count][1] = {-3,0,-0,10.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "W") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0.75,10.45,-1,0}
                    vtxt[count][1] = {-1,0,-3,10}
                    vtxt[count][2] = {-3,10,-5,0}
                    vtxt[count][3] = {-5,0,-6.75,10.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "X") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10.55,-0,-0.45}
                    vtxt[count][1] = {-0,10.55,-6,-0.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "Y") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10.45,-3,5}
                    vtxt[count][1] = {-3,5,-0,10.45}
                    vtxt[count][2] = {-3,5,-3,-0.45}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "Z") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10,0,10}
                    vtxt[count][1] = {0,10,-6,0}
                    vtxt[count][2] = {-6,0,0,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                
        ----------------------------------------------------------------
        -- Numbers
        ----------------------------------------------------------------
                if (txt == "0") then   
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,9,-5,10}
                    vtxt[count][1] = {-5,10,-1,10}
                    vtxt[count][2] = {-1,10,0,9}
                    vtxt[count][3] = {0,9,0,1}
                    vtxt[count][4] = {0,1,-1,0}
                    vtxt[count][5] = {-1,0,-5,0}
                    vtxt[count][6] = {-5,0,-6,1}
                    vtxt[count][7] = {-6,1,-6,9}
                    vtxt[count][8] = {-1,10,-5,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end       
                if (txt == "1") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-5,10,-3,10}
                    vtxt[count][1] = {-3,10,-3,0}
                    vtxt[count][2] = {-5,0,-1,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "2") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,9,-5,10}
                    vtxt[count][1] = {-5,10,-1,10}
                    vtxt[count][2] = {-1,10,0,9}
                    vtxt[count][3] = {0,9,0,6}
                    vtxt[count][4] = {0,6,-1,5}
                    vtxt[count][5] = {-1,5,-5,5}
                    vtxt[count][6] = {-5,5,-6,4}
                    vtxt[count][7] = {-6,4,-6,0}
                    vtxt[count][8] = {-6,0,0,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "3") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,9,-5,10}
                    vtxt[count][1] = {-5,10,-1,10}
                    vtxt[count][2] = {-1,10,0,9}
                    vtxt[count][3] = {0,9,0,6}
                    vtxt[count][4] = {0,6,-1,5}
                    vtxt[count][5] = {-1,5,0,4}
                    vtxt[count][6] = {0,4,0,1}
                    vtxt[count][7] = {0,1,-1,0}
                    vtxt[count][8] = {-1,0,-5,0}
                    vtxt[count][9] = {-5,0,-6,1}
                    vtxt[count][10] = {-5,5,-1,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "4") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,10,-6,5}
                    vtxt[count][1] = {-6,5,0,5}
                    vtxt[count][2] = {0,10,0,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "5") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,10,-5,10}
                    vtxt[count][1] = {-5,10,-6,6}
                    vtxt[count][2] = {-6,6,-1,6}
                    vtxt[count][3] = {-1,6,0,5} 
                    vtxt[count][4] = {0,5,0,1}
                    vtxt[count][5] = {0,1,-1,0}
                    vtxt[count][6] = {-1,0,-5,0}
                    vtxt[count][7] = {-5,0,-6,1}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "6") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-2,10,-6,5}
                    vtxt[count][1] = {-6,5,-6,1}
                    vtxt[count][2] = {-6,1,-5,0}
                    vtxt[count][3] = {-5,0,-1,0}
                    vtxt[count][4] = {-1,0,0,1}
                    vtxt[count][5] = {0,1,0,5}
                    vtxt[count][6] = {0,5,-1,6}
                    vtxt[count][7] = {-1,6,-5,6}
                    vtxt[count][8] = {-5,6,-6,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "7") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,10,0,10}
                    vtxt[count][1] = {0,10,-3.5,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "8") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,9,-5,10}
                    vtxt[count][1] = {-5,10,-1,10}
                    vtxt[count][2] = {-1,10,0,9}
                    vtxt[count][3] = {0,9,0,7}
                    vtxt[count][4] = {0,7,-1,6}
                    vtxt[count][5] = {-1,6,0,5}
                    vtxt[count][6] = {0,5,0,1}
                    vtxt[count][7] = {0,1,-1,0}
                    vtxt[count][8] = {-1,0,-5,0}
                    vtxt[count][9] = {-5,0,-6,1}
                    vtxt[count][10] = {-6,1,-6,5}
                    vtxt[count][11] = {-6,5,-5,6}
                    vtxt[count][12] = {-5,6,-6,7}
                    vtxt[count][13] = {-6,7,-6,9}
                    vtxt[count][14] = {-5,6,-1,6}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "9") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {0,6,-1,5}
                    vtxt[count][1] = {-1,5,-5,5}
                    vtxt[count][2] = {-5,5,-6,6}
                    vtxt[count][3] = {-6,6,-6,9}
                    vtxt[count][4] = {-6,9,-5,10}
                    vtxt[count][5] = {-5,10,-1,10}
                    vtxt[count][6] = {-1,10,0,9}
                    vtxt[count][7] = {0,9,0,6}
                    vtxt[count][8] = {0,6,-4,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
        ----------------------------------------------------------------
        -- punctuation
        ----------------------------------------------------------------
                if (txt == "?") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-5.25,8.75,-3.75,10}
                    vtxt[count][1] = {-3.75,10,-1.75,10}
                    vtxt[count][2] = {-1.75,10,-0.5,8.75}
                    vtxt[count][3] = {-0.5,8.75,-0.5,6}
                    vtxt[count][4] = {-0.5,6,-3,4}
                    vtxt[count][5] = {-3,4,-3,1.5}
                    vtxt[count][6] = {-3,0.75,-3,0}
                    vtxt[count].sp = 0.85
                    count = count+1
                end
                if (txt == "-") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-5,5,-1,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "+") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-3,7,-3,3}
                    vtxt[count][1] = {-5,5,-1,5}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "/") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-1,10,-5,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == "_") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-6,0,0,0}
                    vtxt[count].sp = 1.0
                    count = count+1
                end
                if (txt == ".") then 
                    vtxt[count] = {}
                    vtxt[count][0] = {-3,0,-3,-0.45}
                    vtxt[count][1] = {-3,-0.45,-3.25,-0.45}
                    vtxt[count][2] = {-3.25,-0.45,-3.25,0}
                    vtxt[count].sp = 0.3
                    count = count+1
                end
                if (txt == ":") then  
                    vtxt[count] = {}
                    vtxt[count].pt = {}
                    vtxt[count][0] = {-3,0,-3,-0.45}
                    vtxt[count][1] = {-3,-0.45,-3.25,-0.45}
                    vtxt[count][2] = {-3.25,-0.45,-3.25,0}
                    vtxt[count][3] = {-3.25,0,-3,0}
                    vtxt[count][4] = {-3,0,-3,-0.45}   
                    vtxt[count][5] = {-3,5,-3,5.25}
                    vtxt[count][6] = {-3,5.25,-3.25,5.25}
                    vtxt[count][7] = {-3.25,5.25,-3.25,5}
                    vtxt[count][8] = {-3.25,5,-3,5}
                    vtxt[count][9] = {-3,5,-3,5.25}      
                    vtxt[count].sp = 0.3
                    count = count+1
                end
                
                if (txt == ";") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-3,0,-3,0.25}
                    vtxt[count][1] = {-3,0.25,-3.25,0.25}
                    vtxt[count][2] = {-3.25,0.25,-3.25,0}
                    vtxt[count][3] = {-3.25,0,-3,0}
                    vtxt[count][4] = {-3,0,-3.25,-0.75}
                    
                    vtxt[count][5] = {-3,5,-3,5.25}
                    vtxt[count][6] = {-3,5.25,-3.25,5.25}
                    vtxt[count][7] = {-3.25,5.25,-3.25,5}
                    vtxt[count][8] = {-3.25,5,-3,5}
                    vtxt[count][9] = {-3,5,-3,5.25}      
                    vtxt[count].sp = 0.5
                    count = count+1
                end
                if (txt == ",") then  
                    vtxt[count] = {}
                    vtxt[count][0] = {-3,0,-3,0.25}
                    vtxt[count][1] = {-3,0.25,-3.25,0.25}
                    vtxt[count][2] = {-3.25,0.25,-3.25,0}
                    vtxt[count][3] = {-3.25,0,-3,0}
                    vtxt[count][4] = {-3,0,-3.25,-0.75}
                    vtxt[count].sp = 0.5
                    count = count+1
                end
    end
    local countPoints = 0
    local lCount = 0
    local spacer = 0
	if not pointSize then pointSize = 2 end
	if not lineSpacing then lineSpacing = 1 end
	if not lineOffset then lineOffset = 0 end
	if not startX then startX = 0 end
	if not startY then startY = 0 end
--    lineSpacing = pointSize * 1.2 --* 1.2
    lineSpacing = lineSpacing * 0.012 --* 1.2
    pointSize = 0.001 * pointSize
    local LoffSet = 8 * pointSize
--    lineSpacing = lineSpacing * 0.012 --* 1.2
    local vOffset = lineSpacing * lineOffset
    for t=0, count-1 do
        if (vtxt[t] ~= nil) then
            if(t>0) then
                spacer = spacer + (LoffSet * (( vtxt[t-1].sp + vtxt[t].sp ) / 2) )
            end
        end
        local pnt1 = LM.Vector2:new_local()
        local pnt2 = LM.Vector2:new_local()
        local oldPnt2 = LM.Vector2:new_local()
        pnt2.x = 0
        pnt2.y = 0
        local startPoint = -1
        if (vtxt[t] ~= nil) then
            for i = 0, #vtxt[t] do
                --local oldNumPoints = mesh:CountPoints()
                if (vtxt[t][i] ~= nil) then
                    pnt1.x = vtxt[t][i][1]*pointSize+spacer + startX
                    pnt1.y = vtxt[t][i][2]*pointSize-vOffset + startY
                    pnt2.x = vtxt[t][i][3]*pointSize+spacer + startX
                    pnt2.y = vtxt[t][i][4]*pointSize-vOffset + startY
					
					--print(pnt1.x, " ", pnt1.y, " ", pnt2.x, " ", pnt2.y)
                    --mesh:AddLonePoint(pnt1, 0)
					--[[
                    if (i==0) then
                        startPoint = mesh:CountPoints()
                    end
					--]]
                    --mesh:AppendPoint(pnt2, 0)
					g:DrawLine(pnt1.x, pnt1.y, pnt2.x, pnt2.y)
                    countPoints = countPoints + 2
					--[[
                    if(i>0)then
                        if (pnt1.x == oldPnt2.x and pnt1.y == oldPnt2.y) then
                            mesh:WeldPoints(oldNumPoints, oldNumPoints-1, 0)
                        end
                    end
					
                    oldPnt2.x = pnt2.x
                    oldPnt2.y = pnt2.y
                    if(i == #vtxt[t]) then
                        local endPnt = mesh:Point(mesh:CountPoints()-1)
                        local startPnt = mesh:Point(startPoint)
                        if (endPnt.fPos.x == startPnt.fPos.x and endPnt.fPos.y == startPnt.fPos.y ) then
                            mesh:WeldPoints(startPoint, mesh:CountPoints()-1, 0)
                        end
                    end
					--]]
                end                
            end
        end
    end
end

HV Vector font
Unlisted

Script type: Utility

Uploaded: Apr 30 2021, 06:22

Vector font utility
This alphabet was extracted from hv_bone_markers script, so all credits go to heyvern. I asked him if he doesn't mind, but he never replied. So let's use it as is for now.
This script, and all other scripts on this site are distributed as free software under the GNU General Public License 3.0 or later.
Downloads count: 263