Brad96 Posted August 17, 2013 Share Posted August 17, 2013 se puede importar una fuente por ej al mapname del race? lo e intentado , pero cuando pongo la fuente en el text aparece la de default .. local myFont = dxCreateFont("font.ttf" ,12 mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, 'myFont, 0.7, 'left') espero que me ayuden gracias, . Link to comment
Castillo Posted August 17, 2013 Share Posted August 17, 2013 No, porque usa una libreria para crear los textos, tenes que editar esa libreria para ponerle fuentes propias. Link to comment
Brad96 Posted August 17, 2013 Author Share Posted August 17, 2013 alguna pista de como hacerlo ? Link to comment
AlvareZ_ Posted August 17, 2013 Share Posted August 17, 2013 Primero, Te falto un Corchete local myFont = dxCreateFont("font.ttf" ,12) y Segundo pusistes 'myFont y es solo myFont mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, myFont, 0.7, 'left') Link to comment
Castillo Posted August 17, 2013 Share Posted August 17, 2013 Primero, Te falto un Corchete local myFont = dxCreateFont("font.ttf" ,12) y Segundo pusistes 'myFont y es solo myFont mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, myFont, 0.7, 'left') Como ya dije, eso no servira, hay que editar la libreria. Link to comment
FraN-724 Posted August 17, 2013 Share Posted August 17, 2013 Debes editar el textlib.lua en donde dice strFont pones: strFont = dxCreateFont("font.ttf" ,12) Link to comment
Recommended Posts