c# - Adobe illustrator COM library could not find font -


i'm creating application adobe illustrator. puts label on picture. here code:

        textframe frame = page.layers["textlayer"].textframes.add();         frame .contents = "test";         frame .textrange.characterattributes.textfont = _illustratorapp.textfonts.getfontbyname("arial black");         frame .textrange.characterattributes.size = 48; 

it works, illustrator can't find font name , looks this:

enter image description here

and looks like

enter image description here

if set mannualy looks ok. doing wrong?

p.s. if set font mannualy it's name same


Comments