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?
Copy link to clipboard
Copied
What happens when you set the font after you set the size?
Copy link to clipboard
Copied
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.