We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Symbols question

Hi, I have some question about symbols.
If you look at test file in the attachment you will see that first shape has two portions. Second portion contains of one symbol and text after it: " after symbol". Symbol code is 61481.

Now if you can tell me how can I distinguish symbol from other text from same portion. Porions says that it has symbol index = 2 and font index = 1 for whole portion, but I need just symbol out of it.

Thanks, Ivica.

Check, what the code is returned, if the code is F0XX (hex) and Portion.getSymbolFontIndex() returns the font index of either Webdings, Wingdings, Wingdings 1, Wingdings 2 or Wingdings 3, the it is a symbol, otherwise it is a character.

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

You will have to use same technique to distinguish symbols of other fonts. However above 4 covers almost all.

In your presentation, the symbol code you stated in 61481 is F029 in hex and symbol font index of its portion returns the Webdings font index in Presentation.getFonts() collection

Here is code to get the symbol code and test it if it is F0XX

int symbolCode=(int)port.getText().charAt(0);

if((symbolCode&0xFF00)==0xF000)

{

System.out.print("yes");

}