Skip to content

# `FontMetrics`

## fontlab.FontMetrics = class FontMetrics(object)

      FontMetrics representation

      Constructors:
        FontMetrics() - default
        FontMetrics(FontMetrics)
        FontMetrics(double upm)
        FontMetrics(fg::Package *p)
        FontMetrics(flPackage p, string layer_name)

#### Methods

__delattr__(...)

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

__getattribute__(...)

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

__init__(...)

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

__repr__(...)

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

__setattr__(...)

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

init(...)

      init()

#### Descriptors

ascender

      double

capsHeight

      double

descender

      double

lineGap

      double

upm

      double

xHeight

      double

#### Attributes

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

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

## `ascender`

fontlab.FontMetrics.ascender

      double

## `capsHeight`

fontlab.FontMetrics.capsHeight

      double

## `descender`

fontlab.FontMetrics.descender

      double

## `init`

fontlab.FontMetrics.init = init(...)

      init()

## `lineGap`

fontlab.FontMetrics.lineGap

      double

## `upm`

fontlab.FontMetrics.upm

      double

## `xHeight`

fontlab.FontMetrics.xHeight

      double