Skip to content

# `typerig.proxy.objects.contour`

## typerig.proxy.objects.contour (version 0.26.1)

    # MODULE: Typerig / Proxy / Contour (Objects)
    # -----------------------------------------------------------
    # (C) Vassil Kateliev, 2019-2020        (http://www.kateliev.com)
    # (C) Karandash Type Foundry            (http://www.karandash.eu)
    #------------------------------------------------------------
    # www.typerig.com

### Modules

- fontlab
- math
- PythonQt

### Classes

- builtin.object
- - pContour
  - - eContour

## class eContour(pContour)

      Extended representation of the Proxy Contour, adding some advanced functionality.

      Constructor:
              eContour(flContour)

Method resolution order:
  eContour
  pContour
  builtin.object

#### Methods

alignTo(self, entity, alignMode='', align=(True, True))

      Align current contour.
      Arguments:
              entity ()
              alignMode (String) : L(left), R(right), C(center), T(top), B(bottom), E(vertical center) !ORDER MATTERS

asCoord(self)

      Returns Coord object of the Bottom lest corner.

getNext(self)

getPrev(self)

#### Methods from pContour

init(self, contour)

repr(self)

draw(self, pen, transform=None)

      Utilizes the Pen protocol

isAllSelected(self)

      Is the whole contour selected

isCCW(self)

isCW(self)

reverse(self)

rotate(self, deg)

scale(self, sx, sy)

setCCW(self)

setCW(self)

slant(self, deg)

translate(self, dx, dy)

#### Descriptors from pContour

dict

      dictionary for instance variables (if defined)

weakref

      list of weak references to the object (if defined)

## class pContour(builtin.object)

      Proxy to flContour object

      Constructor:
              pContour(flContour)

      Attributes:
              .fl (flContour): Original flContour

#### Methods

init(self, contour)

repr(self)

draw(self, pen, transform=None)

      Utilizes the Pen protocol

isAllSelected(self)

      Is the whole contour selected

isCCW(self)

isCW(self)

reverse(self)

rotate(self, deg)

scale(self, sx, sy)

setCCW(self)

setCW(self)

slant(self, deg)

translate(self, dx, dy)

#### Descriptors

dict

      dictionary for instance variables (if defined)

weakref

      list of weak references to the object (if defined)

## `pContour`

## typerig.proxy.objects.contour.pContour = class pContour(__builtin__.object)

      Proxy to flContour object

      Constructor:
              pContour(flContour)

      Attributes:
              .fl (flContour): Original flContour

#### Methods

__init__(self, contour)

__repr__(self)

draw(self, pen, transform=None)

      Utilizes the Pen protocol

isAllSelected(self)

      Is the whole contour selected

isCCW(self)

isCW(self)

reverse(self)

rotate(self, deg)

scale(self, sx, sy)

setCCW(self)

setCW(self)

slant(self, deg)

translate(self, dx, dy)

#### Descriptors

__dict__

      dictionary for instance variables (if defined)

__weakref__

      list of weak references to the object (if defined)

### `isAllSelected`

typerig.proxy.objects.contour.pContour.isAllSelected = isAllSelected(self) unbound typerig.proxy.objects.contour.pContour method

      Is the whole contour selected

### `draw`

typerig.proxy.objects.contour.pContour.draw = draw(self, pen, transform=None) unbound typerig.proxy.objects.contour.pContour method

      Utilizes the Pen protocol

## `eContour`

## typerig.proxy.objects.contour.eContour = class eContour(pContour)

      Extended representation of the Proxy Contour, adding some advanced functionality.

      Constructor:
              eContour(flContour)

Method resolution order:
  eContour
  pContour
  __builtin__.object

#### Methods

alignTo(self, entity, alignMode='', align=(True, True))

      Align current contour.
      Arguments:
              entity ()
              alignMode (String) : L(left), R(right), C(center), T(top), B(bottom), E(vertical center) !ORDER MATTERS

asCoord(self)

      Returns Coord object of the Bottom lest corner.

getNext(self)

getPrev(self)

#### Methods from pContour

__init__(self, contour)

__repr__(self)

draw(self, pen, transform=None)

      Utilizes the Pen protocol

isAllSelected(self)

      Is the whole contour selected

isCCW(self)

isCW(self)

reverse(self)

rotate(self, deg)

scale(self, sx, sy)

setCCW(self)

setCW(self)

slant(self, deg)

translate(self, dx, dy)

#### Descriptors from pContour

__dict__

      dictionary for instance variables (if defined)

__weakref__

      list of weak references to the object (if defined)

### `asCoord`

typerig.proxy.objects.contour.eContour.asCoord = asCoord(self) unbound typerig.proxy.objects.contour.eContour method

      Returns Coord object of the Bottom lest corner.

### `alignTo`

typerig.proxy.objects.contour.eContour.alignTo = alignTo(self, entity, alignMode='', align=(True, True)) unbound typerig.proxy.objects.contour.eContour method

      Align current contour.
      Arguments:
              entity ()
              alignMode (String) : L(left), R(right), C(center), T(top), B(bottom), E(vertical center) !ORDER MATTERS