Lines Matching refs:svg
86 case 'svg':
337 $fonts = glob(__DIR__ . '/fonts/*.svg');
342 $svg = new EasySVG();
349 $svg->setFontSVG($fonts[array_rand($fonts)]);
351 $svg->setFontSize($size);
352 $svg->setLetterSpacing(round(random_int(1, 4) / 10, 2)); // 0.1 - 0.4
353 $svg->addText($char, $x, random_int(0, round($y - $size))); // random up and down
355 [$w] = $svg->textDimensions($char);
359 $svg->addAttribute('width', $x . 'px');
360 $svg->addAttribute('height', $y . 'px');
361 $svg->addAttribute('viewbox', "0 0 $x $y");
362 return $svg->asXML();
374 '<span class="svg" style="width:%spx; height:%spx">%s</span>',
421 $icon = inlineSVG(__DIR__ . '/ear-hearing.svg');