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
Post a Comment