• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Why Font of Text auto change after set font size?

Enthusiast ,
Mar 22, 2017 Mar 22, 2017

Copy link to clipboard

Copied

     This sample set font name and font size (TextFrame is PointText):

      oIllustrator = CreateObject("Illustrator.Application.CS5.1")

       oDocument = oIllustrator.Open(txtFileIllus.Text)

        Dim oText = oDocument.TextFrames(6)

        oText.Contents = "Tool ᄽ¤s1-FᄿLengthᄽ¤e1-Fᄿ  test"

        Dim strFontn As String = "HelveticaNeueLTStd-Roman"

        oText.Story.textRange.Length = 5

        oText.Story.textRange.CharacterOffset = 0

        oText.Story.textRange.CharacterAttributes.TextFont = oIllustrator.TextFonts(strFontn)

        oText.Story.textRange.CharacterAttributes.size = 8

Set TextFont  is ok, but if i set continute size of TextRange, TextFont auto return original font.

Why Font of Text auto change after set font size?

TOPICS
Scripting

Views

342

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Valorous Hero ,
Mar 22, 2017 Mar 22, 2017

Copy link to clipboard

Copied

What happens when you set the font after you set the size?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 23, 2017 Mar 23, 2017

Copy link to clipboard

Copied

LATEST

Yes, It is ok, But Font will auto change , if i change any attributes.

I think, It effect by change font name of Character style.

Before change of Text, If i change font of Character style , it will occur this error.

But if i not change font of Character style, it not occur error.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines