【问题标题】:How to change Font Name from TextFrame in adobe illustrator?如何在 adobe illustrator 中从 TextFrame 更改字体名称?
【发布时间】: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


    【解决方案1】:

    您可以尝试使用此方法更改 TextFrame 的字体系列。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-12-28
      • 2013-01-01
      • 2014-03-22
      • 1970-01-01
      • 1970-01-01
      • 2012-04-17
      相关资源
      最近更新 更多