Example #1
0
<?php

require_once 'lib/tic.php';
TIC::factory('fonts/Generell TW-Regular.otf')->setText('Hello World !')->setPadding(10)->setBgColor('ff0000')->setFontColor(0xff, 0xff, 0x0)->setFontSize(24)->create(true);
Example #2
0
 /**
  * @param string $font Full or relative path to a font
  * <code>
  * <?php
  * $tic = new TIC_ttf('/full/path/font.ttf');
  * $tic->setText('Hello World !')
  * ->setBgColor(array(0x00, 0x00, 0xff))
  * ->setFontColor(0x00, 0x00, 0x00)
  * ->create(true);
  * ?>
  * </code>
  */
 public function __construct($font)
 {
     parent::__construct($font);
 }