Skip to content

Commit

Permalink
Recommitting due to error.
Browse files Browse the repository at this point in the history
  • Loading branch information
knutnergaard committed Aug 12, 2024
1 parent f2fd3ad commit 4e2e5cb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 28 deletions.
28 changes: 0 additions & 28 deletions Lib/fontParts/base/type.py

This file was deleted.

32 changes: 32 additions & 0 deletions Lib/fontParts/base/types.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
from typing import Dict, Generic, Iterator, List, Set, Tuple, TypeVar, Union

try:
from fontParts.base.info import BaseInfo
from fontParts.base.groups import BaseGroups
from fontParts.base.kerning import BaseKerning
from fontParts.base.features import BaseFeatures
from fontParts.base.lib import BaseLib
from fontParts.base.layer import BaseLayer
from fontParts.base.glyph import BaseGlyph
from fontParts.base.guideline import BaseGuideline
except ImportError:
pass

IntFloat = Union[int, float]
ColorType = Tuple[(IntFloat,) * 4]
CoordinateType = Tuple[IntFloat, IntFloat]
FactorType = Union[float, Tuple[float, float]]
TransformationMatrixType = Tuple[(IntFloat,) * 6]
FontType = TypeVar('FontType', bound='BaseFont')
InfoType = TypeVar('InfoType', bound='BaseInfo')
GroupsType = TypeVar('GroupsType', bound='BaseGroups')
KerningType = TypeVar('KerningType', bound='BaseKerning')
FeaturesType = TypeVar('FeaturesType', bound='BaseFeatures')
LibType = TypeVar('LibType', bound='BaseLib')
LayerType = TypeVar('LayerType', bound='BaseLayer')
GlyphType = TypeVar('GlyphType', bound='BaseGlyph')
GuidelineType = TypeVar('GuidelineType', bound='BaseGuideline')
KerningKey = Tuple[str, str]
KerningDict = Dict[KerningKey, IntFloat]
ReverseComponentMapping = Dict[str, Set[str]]
CharacterMapping = Dict[int, List[str]]

0 comments on commit 4e2e5cb

Please sign in to comment.