Skip to main content
daitranthanhoa
Inspiring
January 2, 2019
Question

How can delete a composite font?

  • January 2, 2019
  • 1 reply
  • 679 views

I want delete composite font exist in Illustrator

I had try this code, but occur error: Public member 'Delete' on type 'TextFont' not found.

               Dim iFontNum =oIllustrator.TextFonts.Count

                For iFontNo = iFontNum To 1 Step -1

                    Try

                        Dim oFont = oIllustrator.TextFonts(iFontNo)

                        Dim strName = oFont.Name

                        If Left(strName, 4) = "ATC-" Then

                           oIllustrator.TextFonts(iFontNo).Delete

                        End If

                    Catch ex As Exception

                    End Try

                Next

How can delete a composite font?

Thank you.

This topic has been closed for replies.

1 reply

CarlosCanto
Community Expert
Community Expert
January 7, 2019

Text Fonts refers to the Installed Fonts in your system, so you can't delete them.

do you want to delete Text Frames in your document? you have to loop through document.textFrames and check their fonts

daitranthanhoa
Inspiring
January 8, 2019

I want delete this composite fonts

Can it delete by script?

CarlosCanto
Community Expert
Community Expert
January 9, 2019

oh I see what you need.

composite fonts are saved in the following folder, delete all files.