Пример #1
0
 * along with SWIS.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * END Copyright
 *  
 * @copyright 2007-2010 Stephen E Slevinski Jr 
 * @author Steve (slevin@signpuddle.net)  
 * @license http://www.opensource.org/licenses/gpl-3.0.html GPL
 * @access public
 * @package SWIS
 * @version 1.2.0
 * @filesource
 *   
 */
$st = new SignText($bsw, $size, $height - $top_pad, $spacing, $offset);
$cols = $st->getCols();
$posX = $st->getPosX();
$posY = $st->getPosY();
$bsw = $cols[$col];
$units = bsw2unit($bsw);
$xpos = $posX[$col];
$ypos = $posY[$col];
$data = '';
foreach ($units as $u => $unit) {
    $xadj = $xpos[$u];
    $yadj = $ypos[$u];
    $first = substr($unit, 0, 3);
    if (isPunc($first)) {
        $data .= $unit . num2hex(-$xadj) . num2hex($yadj);
    } else {
        $bsw = bsw2cluster($unit);
        $chars = str_split($bsw, 3);