2015-09-15 1 views
0

Я доступ к файлу ай из приложения WPF, и она работает, и добавляет текст просто отличноКак изменить имя шрифта из TextFrame в Adobe Illustrator?

мне нужно изменить шрифт, но я coudln't найти интуитивный способ сделать это и не находить ресурсы, чтобы помочь мне

любые направления приветствуются:

Illustrator.Application app = new Illustrator.Application(); 
//Illustrator.Document doc = app.Documents.Add(Illustrator.AiDocumentColorSpace.aiDocumentCMYKColor, 400, 240); 
Illustrator.Document doc=app.Open(@"C:\folder\illu_1.ai"); 

Illustrator.Layer layer1 = doc.Layers.Add(); 
layer1.Name = "1"; 


Illustrator.TextFrame textFrame = layer1.TextFrames.Add(); 

object[] position = new object[2] { 0, 300 }; 
textFrame.Position = position; 
textFrame.Contents = "Some text"; 
textFrame.Height = 100; 
textFrame.Width = doc.Width; 
textFrame.CreateOutline(); 

ответ

0

Вы можете попробовать это изменить семейство шрифтов вашего TextFrame.

textFrame[FrameNumber].textRange.characterAttributes.textFont.name = app.textFonts.getByName("FontFamilyName");