Retrieve Drawing Font Information in PHP

Aspose.Diagram - Retrieve Drawing Font Information

To Retrieve Drawing Font Information using Aspose.Diagram Java for PHP, simply invoke GetDiagramFontInfo module. Here you can see example code.

PHP Code

 # Create instance of Diagram

$diagram = new Diagram($dataDir."drawing.vsd");

$fonts = $diagram->getFonts();

$i = 0;

while ($i<sizeof($fonts->getCount())) {

$font = $fonts->get($i);

\# Display information about the fonts

print $font->getName();

$i+=1;

}

Download Running Code

Download Retrieve Drawing Font Information (Aspose.Diagram) from any of the below mentioned social coding sites: