# Features

## Description

Features is text in the Adobe Font Development Kit for OpenType .fea syntax that describes the OpenType features of your font. The OpenType Cookbook is a great place to start learning how to write features. Your features must be self-contained; for example, any glyph or mark classes must be defined within the file. No assumption should be made about the validity of the syntax, and FontParts does not check the validity of the syntax.

Note

It is important to note that the features file may contain data that is a duplicate of or data that is in conflict with the data in `BaseKerning`, `BaseGroups`, and `BaseInfo`. Synchronization is up to the user and application developers.

    font = CurrentFont()
    print(font.features)

## Overview

`BaseFeatures.copy` | Copy this object into a new object of the same type.
`BaseFeatures.font` | The features' parent `BaseFont`.
`BaseFeatures.text` | The .fea formated text representing the features.

## Reference

class fontParts.base.BaseFeatures(*args, **kwargs)

### Copy

BaseFeatures.copy()

  Copy this object into a new object of the same type. The returned object will not have a parent object.

### Parents

BaseFeatures.font

  The features’ parent `BaseFont`.

### Attributes

BaseFeatures.text

  The .fea formated text representing the features. It must be a String.

Previous

Kerning

Next

Lib