Skip to content

Commit

Permalink
Early, early work on Sphinx documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
typesupply committed Mar 25, 2016
1 parent 3c6c30e commit 1afd100
Show file tree
Hide file tree
Showing 22 changed files with 1,231 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
*.pyc
build/*
dist/*

documentation/build/*
49 changes: 32 additions & 17 deletions Lib/fontParts/objects/base/font.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,21 +154,36 @@ def generate(self, format, path=None):
"""
Generate the font to another format.
format defines the file format to output. These are the standard
mactype1 = Mac Type 1 font (generates suitcase and LWFN file)
macttf = Mac TrueType font (generates suitcase)
macttdfont = Mac TrueType font (generates suitcase with resources in data fork)
otfcff = PS OpenType (CFF-based) font (OTF)
otfttf = PC TrueType/TT OpenType font (TTF)
pctype1 = PC Type 1 font (binary/PFB)
pcmm = PC MultipleMaster font (PFB)
pctype1ascii = PC Type 1 font (ASCII/PFA)
pcmmascii = PC MultipleMaster font (ASCII/PFA)
ufo1 = UFO format version 1
ufo2 = UFO format version 2
ufo3 = UFO format version 3
unixascii = UNIX ASCII font (ASCII/PFA)
format defines the file format to output. These are the
standard format identifiers.
+--------------+--------------------------------------------------------------------+
| mactype1 | Mac Type 1 font (generates suitcase and LWFN file) |
+--------------+--------------------------------------------------------------------+
| macttf | Mac TrueType font (generates suitcase) |
+--------------+--------------------------------------------------------------------+
| macttdfont | Mac TrueType font (generates suitcase with resources in data fork) |
+--------------+--------------------------------------------------------------------+
| otfcff | PS OpenType (CFF-based) font (OTF) |
+--------------+--------------------------------------------------------------------+
| otfttf | PC TrueType/TT OpenType font (TTF) |
+--------------+--------------------------------------------------------------------+
| pctype1 | PC Type 1 font (binary/PFB) |
+--------------+--------------------------------------------------------------------+
| pcmm | PC MultipleMaster font (PFB) |
+--------------+--------------------------------------------------------------------+
| pctype1ascii | PC Type 1 font (ASCII/PFA) |
+--------------+--------------------------------------------------------------------+
| pcmmascii | PC MultipleMaster font (ASCII/PFA) |
+--------------+--------------------------------------------------------------------+
| ufo1 | UFO format version 1 |
+--------------+--------------------------------------------------------------------+
| ufo2 | UFO format version 2 |
+--------------+--------------------------------------------------------------------+
| ufo3 | UFO format version 3 |
+--------------+--------------------------------------------------------------------+
| unixascii | UNIX ASCII font (ASCII/PFA) |
+--------------+--------------------------------------------------------------------+
Environments are not required to support all of these.
Environments may define their own format types.
Expand Down Expand Up @@ -361,8 +376,6 @@ def _setFontInLayer(self, layer):
if layer.font is None:
layer.font = self

defaultLayer = dynamicProperty("base_defaultLayer", "The name of the font's default layer.")

def _get_base_defaultLayer(self):
value = self._get_defaultLayer()
value = validators.validateDefaultLayer(value, self)
Expand All @@ -388,6 +401,8 @@ def _set_defaultLayer(self, value, **kwargs):
"""
self.raiseNotImplementedError()

defaultLayer = dynamicProperty("base_defaultLayer", "The name of the font's default layer.")

# get

def getLayer(self, name):
Expand Down

0 comments on commit 1afd100

Please sign in to comment.