Skip to content

typerig.core.objects.utils

typerig.core.objects.utils (version 0.26.0)

# MODULE: TypeRig / Core / Utilities (Objects)
# -----------------------------------------------------------
# (C) Vassil Kateliev, 2017-2020        (http://www.kateliev.com)
# (C) Karandash Type Foundry            (http://www.karandash.eu)
#------------------------------------------------------------
# www.typerig.com

Classes

class bounds(__builtin__.object)

# - Bounding box object ----------------------------------

Methods

__init__(self, tupleList)


recalc(self, tupleList)


refresh(self, tupleList)


Descriptors

__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

class fontFamilly

Font familly class:
*   generates weight stems [.wt_stems] and MM weight instances [.wt_instances]
        using given masters/layers wt0, wt1, and number of weight members [wt_steps].
        Uses geometric growth (progression) algorithm to determine stem weight

*   generates MM width instances [.wd_instances] using given number
        of width members [wd_steps]. Uses linear growth.

*   generates all MM isntaces/vectors for instance generation [.instances]
---
ex: fontFamilyName = fontFamilly(wt0 = 56, wt1 = 178, wt_steps = 7, wd_steps = 3)

Methods

__init__(self, **kwargs)


update(self)


class geoAxis(__builtin__.object)

A geometric series axis instance and stem calculator

Usage linAxis(masterDict, instanceCount), where:
*   masterDict = {min_axis_value:min_stem_width, max_axis_value:max_stem_width} ex: {0:50, 1000:750}
*   instanceCount = number of instances to be calculated

Methods

__init__(self, masterDict, instanceCount)


update(self)


Descriptors

__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

class linAxis(__builtin__.object)

A linear series axis instance and stem calculator

Usage linAxis(masterDict, instanceCount), where:
*       masterDict = {min_axis_value:min_stem_width, max_axis_value:max_stem_width} ex: {0:50, 1000:750}
*       instanceCount = number of instances to be calculated

Methods

__init__(self, masterDict, instanceCount)


update(self)


Descriptors

__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

fontFamilly

typerig.core.objects.utils.fontFamilly = class fontFamilly

Font familly class:
*   generates weight stems [.wt_stems] and MM weight instances [.wt_instances]
        using given masters/layers wt0, wt1, and number of weight members [wt_steps].
        Uses geometric growth (progression) algorithm to determine stem weight

*   generates MM width instances [.wd_instances] using given number
        of width members [wd_steps]. Uses linear growth.

*   generates all MM isntaces/vectors for instance generation [.instances]
---
ex: fontFamilyName = fontFamilly(wt0 = 56, wt1 = 178, wt_steps = 7, wd_steps = 3)

Methods

__init__(self, **kwargs)


update(self)


linAxis

typerig.core.objects.utils.linAxis = class linAxis(__builtin__.object)

A linear series axis instance and stem calculator

Usage linAxis(masterDict, instanceCount), where:
*       masterDict = {min_axis_value:min_stem_width, max_axis_value:max_stem_width} ex: {0:50, 1000:750}
*       instanceCount = number of instances to be calculated

Methods

__init__(self, masterDict, instanceCount)


update(self)


Descriptors

__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

geoAxis

typerig.core.objects.utils.geoAxis = class geoAxis(__builtin__.object)

A geometric series axis instance and stem calculator

Usage linAxis(masterDict, instanceCount), where:
*   masterDict = {min_axis_value:min_stem_width, max_axis_value:max_stem_width} ex: {0:50, 1000:750}
*   instanceCount = number of instances to be calculated

Methods

__init__(self, masterDict, instanceCount)


update(self)


Descriptors

__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)