-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2fd3ad
commit 4e2e5cb
Showing
2 changed files
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]] |