Font Helper problem (is not work for me....)
by mohanmartin · in Torque Game Builder · 05/26/2008 (8:32 pm) · 0 replies
How can i use font helper for t2d text object?
where can i put this function in game script folder?
function loadCustomFont( %name, %size, %weight)
{
%pngdir = "pngs/";
%fontdir = "common/ui/cache/";
%fileName = %fontdir @ %pngdir @ %name SPC %size @ ".png";
importCachedFont( %name, %size, %fileName, %weight, 0);
}
and also where can i call below function for t2d text object?
loadCustomFont( "Seabird SF", 80, 0 );
anyone help???
where can i put this function in game script folder?
function loadCustomFont( %name, %size, %weight)
{
%pngdir = "pngs/";
%fontdir = "common/ui/cache/";
%fileName = %fontdir @ %pngdir @ %name SPC %size @ ".png";
importCachedFont( %name, %size, %fileName, %weight, 0);
}
and also where can i call below function for t2d text object?
loadCustomFont( "Seabird SF", 80, 0 );
anyone help???
About the author