Home
last modified time | relevance | path

Searched refs:designspace (Results 1 – 12 of 12) sorted by relevance

/external/fonttools/Lib/fontTools/varLib/
Dinterpolate_layout.py15 def interpolate_layout(designspace, loc, master_finder=lambda s:s, mapped=False): argument
28 if hasattr(designspace, "sources"): # Assume a DesignspaceDocument
32 designspace = DesignSpaceDocument.fromfile(designspace)
34 ds = load_designspace(designspace)
38 master_fonts = load_masters(designspace, master_finder)
D__init__.py711 def load_designspace(designspace): argument
714 if hasattr(designspace, "sources"): # Assume a DesignspaceDocument
715 ds = designspace
717 ds = DesignSpaceDocument.fromfile(designspace)
868 def build(designspace, master_finder=lambda s:s, exclude=[], optimize=True): argument
876 if hasattr(designspace, "sources"): # Assume a DesignspaceDocument
879 designspace = DesignSpaceDocument.fromfile(designspace)
881 ds = load_designspace(designspace)
885 master_fonts = load_masters(designspace, master_finder)
981 def load_masters(designspace, master_finder=lambda s: s): argument
[all …]
Dmodels.py457 if args.designspace:
460 doc.read(args.designspace)
/external/fonttools/Doc/source/designspaceLib/
Dreadme.rst22 The DesignSpaceDocument object can read and write ``.designspace`` data.
43 doc.read("some/path/to/my.designspace")
58 in the designspace. Use reverse-DNS notation to identify your own data.
65 - ``read(path)``: read a designspace file from ``path``
66 - ``write(path)``: write this designspace to ``path``
73 in designspace coordinates.
83 - ``normalize()``: normalize the geometry of this designspace: scale all the
87 - ``tostring(encoding=None)``: Returns the designspace as a string. Default
360 <designspace format="3">
382 </designspace>
[all …]
Dscripting.rst2 Scripting a designspace
5 It can be useful to build a designspace with a script rather than
109 - The **location** attribute is a dictionary with the designspace
143 the designspace. For an instance you can define more things. If you want
200 # locations. It's a miniature designspace.
220 path = "myprototype.designspace"
227 Old designspace files might not contain ``axes`` definitions. This is
249 build("whatevs/myprototype.designspace")
Dindex.rst6 Since then the use of designspace has broadened and it would be useful
/external/fonttools/Tests/designspaceLib/
Ddesignspace_test.py906 designspace = DesignSpaceDocument.fromstring(designspace_string)
907 assert designspace.findDefault().filename == "Font-Italic.ufo"
909 designspace.axes[1].default = 0
911 assert designspace.findDefault().filename == "Font-Regular.ufo"
928 designspace = DesignSpaceDocument.fromfile(path)
931 designspace.sources[1].path = designspace.sources[0].path
933 fonts = designspace.loadSourceFonts(opener)
939 fonts2 = designspace.loadSourceFonts(opener)
946 designspace = DesignSpaceDocument()
947 designspace.sources.append(SourceDescriptor())
[all …]
/external/fonttools/Doc/source/varLib/
Dindex.rst18 designspace
23 A value which is able to be varied at different points in the designspace:
28 A point in the designspace whose coordinates are the default value of
32 A point in the designspace, specified as a set of coordinates on one or
/external/fonttools/Doc/source/
Dindex.rst52 - ``varLib``: Build a variable font from a designspace file and masters
55 - ``varLib.interpolate_layout``: Interpolate GDEF/GPOS/GSUB tables for a point on a designspace
56 - ``varLib.models``: Normalize locations on a given designspace
73 - :py:mod:`fontTools.designspaceLib`: Read and write designspace files
/external/fonttools/
Dsetup.cfg54 ignore::DeprecationWarning:fontTools.varLib.designspace
DMANIFEST.in40 recursive-include Tests *.xml *.designspace *.bin
DNEWS.rst137 - [varLib] Add designspace lib key for custom feavar feature tag (#2080).
753 - [varLib] Apply HIDDEN flag to fvar axis if designspace axis has attribute
808 instead of a designspace file path. The caller can now set the ``font``
809 attribute of designspace's sources to a TTFont object, thus allowing to
860 attributes are missing in designspace ``<rule>`` (#1366).
904 ``fontTools.varLib.designspace`` module is now deprecated and will be removed
981 designspace document. Bumped ``format`` attribute to ``4.0`` (previously,
1005 - [designspace] Added a new optional ``layer`` attribute to the source element,
1009 implemented in designspace reader/writer yet (#1254).
1039 - [varLib.plot] Added new module to plot a designspace's
[all …]