【发布时间】:2015-09-15 12:10:53
【问题描述】:
我正在从 wpf 应用程序访问一个 ai 文件,它运行并添加了一个文本就好了
我需要更改字体,但找不到任何直观的方法,也找不到资源来帮助我
欢迎任何方向:
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();
【问题讨论】:
标签: c# wpf adobe-illustrator