Not able to get font style for some fonts


hi,

 

i getting font style(like regular, bold, italic etc) this-

 

while (count < fontcount) {//loop , iterate throgh used fonts.

 

                                                  ate::ifont currentfont = fontrefarray.item(count);

                                                  if (!currentfont.isnull()) {

                                                            fontref fontref = currentfont.getref();

                                                            aifontkey fontkey = null;

                                                            result = saifont->fontkeyfromfont(fontref, &fontkey);

                                                            result = saifont->getuserfontname(fontkey, fontname, 50);

                                                            result = saifont->getpostscriptfontname(fontkey, psname, 50);

                                                            result = saifont->getfontstylename(fontkey, stylename, 50);

                                                            result = saifont->getfontfamilyuiname(fontkey, familyname, 50);

}

 

for fonts(not fonts) , style name comming empty string, other fonts working. not sure why working fonts , not others. other font properties coming fine fonts.

 

when failing, result not  knoerr, dont know how exact error?please me in issue.

regards,

harsh

i use getfontstyleuinameunicode() , don't seem have trouble. maybe got unicode characters , can't otherwise displayed?



More discussions in Illustrator SDK


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support