Skip to content

# `fgOTLayout`

## fontgate.fgOTLayout = class fgOTLayout(object)

      OpenType Layout representation

      Constructors:
        fgOTLayout(fgDataOwnerData)
        fgOTLayout(fgFont)

#### Methods

__add__(...)

      x.__add__(y) <==> x+y

__delattr__(...)

      x.__delattr__('name') <==> del x.name

__delitem__(...)

      x.__delitem__(y) <==> del x[y]

__delslice__(...)

      x.__delslice__(i, j) <==> del x[i:j]

      Use of negative indices is not supported.

__getattribute__(...)

      x.__getattribute__('name') <==> x.name

__getitem__(...)

      x.__getitem__(y) <==> x[y]

__getslice__(...)

      x.__getslice__(i, j) <==> x[i:j]

      Use of negative indices is not supported.

__init__(...)

      x.__init__(...) initializes x; see help(type(x)) for signature

__len__(...)

      x.__len__() <==> len(x)

__mul__(...)

      x.__mul__(n) <==> x*n

__repr__(...)

      x.__repr__() <==> repr(x)

__rmul__(...)

      x.__rmul__(n) <==> n*x

__setattr__(...)

      x.__setattr__('name', value) <==> x.name = value

__setitem__(...)

      x.__setitem__(i, y) <==> x[i]=y

__setslice__(...)

      x.__setslice__(i, j, y) <==> x[i:j]=y

      Use  of negative indices is not supported.

clear(...)

      clear() - remove all features

get_feature(...)

      string get_feature(string / numeric tag) - get feature text

get_prefix(...)

      string get_prefix() - get common part of fea data

has_key(...)

      bool has_key(string / numeric tag) - True if feature is present

keys(...)

      list(string) keys() - list of feature tags

remove(...)

      remove(string / numeric tag) - remove feature

set_feature(...)

      set_feature(string / numeric tag, string new_content) - set feature text

set_prefix(...)

      set_prefix(string new_prefix) - set common part of fea data

#### Attributes

__new__ = <built-in method __new__ of type object>

      T.__new__(S, ...) -> a new object with type S, a subtype of T

## `clear`

fontgate.fgOTLayout.clear = clear(...)

      clear() - remove all features

## `get_feature`

fontgate.fgOTLayout.get_feature = get_feature(...)

      string get_feature(string / numeric tag) - get feature text

## `get_prefix`

fontgate.fgOTLayout.get_prefix = get_prefix(...)

      string get_prefix() - get common part of fea data

## `has_key`

fontgate.fgOTLayout.has_key = has_key(...)

      bool has_key(string / numeric tag) - True if feature is present

## `keys`

fontgate.fgOTLayout.keys = keys(...)

      list(string) keys() - list of feature tags

## `remove`

fontgate.fgOTLayout.remove = remove(...)

      remove(string / numeric tag) - remove feature

## `set_feature`

fontgate.fgOTLayout.set_feature = set_feature(...)

      set_feature(string / numeric tag, string new_content) - set feature text

## `set_prefix`

fontgate.fgOTLayout.set_prefix = set_prefix(...)

      set_prefix(string new_prefix) - set common part of fea data