Contents

rename(fromName:visibility:toName:)

Renames the font collection with the specified name and visibility to the second name specified.

Declaration

class func rename(fromName oldName: NSFontCollection.Name, visibility: NSFontCollection.Visibility, toName newName: NSFontCollection.Name) throws

Parameters

  • oldName:

    The collection to rename.

  • visibility:

    The visibility of the collection to rename.

  • newName:

    The new name to give to the collection.

Discussion

Named collections are shown by user interfaces such as the Font panel. When you change the collection, you must show it again to see the changes reflected on disk or in the Font panel.

See Also

Naming the Font Collection