Exemplo n.º 1
0
 function dumpContent($tagCode, $opts = array())
 {
     $isMorph = $tagCode == 46 || $tagCode == 84;
     if (is_null($this->_shapeId) === false) {
         echo "    ShapeId: {$this->_shapeId}\n";
     }
     $opts = array('tagCode' => $tagCode, 'isMorph' => $isMorph);
     if ($isMorph === false) {
         echo "    ShapeBounds: " . IO_SWF_Type_RECT::string($this->_shapeBounds) . "\n";
         echo "    FillStyles:\n";
         echo IO_SWF_Type_FILLSTYLEARRAY::string($this->_fillStyles, $opts);
         echo "    LineStyles:\n";
         echo IO_SWF_Type_LINESTYLEARRAY::string($this->_lineStyles, $opts);
         echo "    ShapeRecords:\n";
         echo IO_SWF_Type_SHAPE::string($this->_shapeRecords, $opts);
     } else {
         echo "    StartBounds: " . IO_SWF_Type_RECT::string($this->_startBounds) . "\n";
         echo "    EndBounds: " . IO_SWF_Type_RECT::string($this->_endBounds) . "\n";
         echo "    Offset:{$this->_offset}\n";
         echo "    FillStyles:\n";
         echo IO_SWF_Type_FILLSTYLEARRAY::string($this->_morphFillStyles, $opts);
         echo "    LineStyles:\n";
         echo IO_SWF_Type_LINESTYLEARRAY::string($this->_morphLineStyles, $opts);
         echo "    StartEdge:\n";
         echo IO_SWF_Type_SHAPE::string($this->_startEdge, $opts);
         echo "    endEdge:\n";
         echo IO_SWF_Type_SHAPE::string($this->_endEdge, $opts);
     }
 }
Exemplo n.º 2
0
Arquivo: Font.php Projeto: yoya/IO_SWF
 function dumpContent($tagCode, $opts = array())
 {
     echo "    FontID: {$this->FontID}" . PHP_EOL;
     $fontFlagsHasLayout = is_null($this->FontAscent) ? 0 : 1;
     echo "FontFlagsHasLayout: {$fontFlagsHasLayout} FontFlagsShiftJIS: {$this->FontFlagsShiftJIS} FontFlagsSmallText: {$this->FontFlagsSmallText} FontFlagsANSI: {$this->FontFlagsANSI}" . PHP_EOL;
     echo "FontFlagsWideOffsets: {$this->FontFlagsWideOffsets} FontFlagsWideCodes: {$this->FontFlagsWideCodes}" . PHP_EOL;
     echo "    LanguageCode: " . IO_SWF_Type_LANGCODE::string($this->LanguageCode) . "FontName: {$this->FontName}" . PHP_EOL;
     echo "    OffsetTable:";
     foreach ($this->OffsetTable as $idx => $offset) {
         echo " [{$idx}]{$offset}";
     }
     echo PHP_EOL;
     echo "    GlyphShapeTable:" . PHP_EOL;
     $opts['indent'] = 1;
     foreach ($this->GlyphShapeTable as $idx => $glyph) {
         echo "      [{$idx}]" . PHP_EOL;
         echo IO_SWF_Type_SHAPE::string($glyph, $opts);
     }
     echo "    CodeTable:";
     foreach ($this->CodeTable as $idx => $c) {
         echo " [{$idx}]{$c}";
     }
     echo PHP_EOL;
     if ($this->FontAscent) {
         echo "    FontAscent: {$this->FontAscent} FontDescent: {$this->FontDescent} FontLeading: {$this->FontLeading}" . PHP_EOL;
         foreach ($this->FontAdvanceTable as $idx => $advance) {
             echo " [{$idx}]{$advance}";
         }
         echo PHP_EOL;
         echo "    FontBoundsTable:";
         foreach ($this->FontBoundsTable as $idx => $fontBounds) {
             echo "\t[{$idx}]" . IO_SWF_TYPE_RECT::string($fontBounds) . PHP_EOL;
         }
     } else {
         echo "    (FontFlagsHasLayout is false)" . PHP_EOL;
     }
     if ($this->FontKerningTable) {
         echo "    FontKerningTable:" . PHP_EOL;
         foreach ($this->FontKerningTable as $fontKerning) {
             echo "\t" . IO_SWF_Type_KERNINGRECORD::string($fontKerning) . PHP_EOL;
         }
     } else {
         echo "\t(FontKerningTable is null)" . PHP_EOL;
     }
 }