# ttCollection: Access fonts within a TrueType/OpenType Collection

## Overview

The `fontTools.ttLib.ttCollection` module is a helper for `fontTools.ttLib`. It supports the reading of TrueType and OpenType Collection files (*.ttc, *.otc) so that each member font in the collection is accessible as a `TTFont` instance.

class fontTools.ttLib.ttCollection.TTCollection(file=None, shareTables=False, **kwargs)

  Bases: `object`

  Object representing a TrueType Collection / OpenType Collection. The main API is self.fonts being a list of TTFont instances.

  If shareTables is True, then different fonts in the collection might point to the same table object if the data for the table was the same in the font file. Note, however, that this might result in suprises and incorrect behavior if the different fonts involved have different GlyphOrder. Use only if you know what you are doing.

  close()
  save(file, shareTables=True)

    Save the font to disk. Similarly to the constructor, the ‘file’ argument can be either a pathname or a writable file object.

  saveXML(fileOrPath, newlinestr='\n', writeVersion=True, **kwargs)