test TEXT as SVG IMAGE

in the ITUNE theme, in functions.php i added
a new function to output text as images ( using limited set of alphabet as SVG files )
the files i got from here
only BIG letters and numbers available. the files are bad insofar as they are full of generator
templates, but can be reduced by manually deleting them to10% of size.
as a example i made a panel where i call that function
only with small hight. but SVG quality advantage you get when you use / need bigger "font" size.

// KLL new function to output text as images ( using limited set of alphabet as SVG files )
/* pls CALL WITH
$mytext="Hallo World: 0123456789.,!";
$myheight=15;
text_image($mytext,$myheight);
*/
function text_image($text,$height) {
$folder = this_theme."/images/alphabetSVG/";
for ($x=0; $x $tdec = ord($text[$x]);
if (($tdec >=97 ) and ($tdec <=122)) { $tdec = $tdec - 32; } // make big letters, not have image files
echo "_img src='".$folder.$tdec.".svg' alt='".$text[$x]."' height='".$height."' _ ";
}
}
//

This news item has been tagged

Tags: SVG webfont 

Ratings

Rating is available to Members only.

Please login to vote.

No Ratings have been Posted.