(glyph, path)
| 1838 | var path = _dereq_('./path'); |
| 1839 | |
| 1840 | function getPathDefinition(glyph, path) { |
| 1841 | var _path = path || { commands: [] }; |
| 1842 | return { |
| 1843 | configurable: true, |
| 1844 | |
| 1845 | get: function() { |
| 1846 | if (typeof _path === 'function') { |
| 1847 | _path = _path(); |
| 1848 | } |
| 1849 | |
| 1850 | return _path; |
| 1851 | }, |
| 1852 | |
| 1853 | set: function(p) { |
| 1854 | _path = p; |
| 1855 | } |
| 1856 | }; |
| 1857 | } |
| 1858 | |
| 1859 | // A Glyph is an individual mark that often corresponds to a character. |
| 1860 | // Some glyphs, such as ligatures, are a combination of many characters. |