Erik van Blokland
04e27a3cca
MarginPen now pays attention to the transformation set for components.
...
git-svn-id: http://svn.robofab.com/trunk@92 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-28 23:21:29 +00:00
Erik van Blokland
6083cfc404
Token checkin to see if it works. Ignore.
...
git-svn-id: http://svn.robofab.com/trunk@91 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-14 20:14:50 +00:00
Erik van Blokland
fe77241d92
Fix for ticket #4
...
git-svn-id: http://svn.robofab.com/trunk@90 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-07-14 20:12:00 +00:00
Erik van Blokland
dc76c06826
Add method getAll() which returns a sorted list of unique slice values.
...
git-svn-id: http://svn.robofab.com/trunk@89 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 17:52:38 +00:00
Erik van Blokland
689472553a
Handle components. Handle self overlapping bezier segments with any number of intersections.
...
git-svn-id: http://svn.robofab.com/trunk@88 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 09:47:54 +00:00
Erik van Blokland
2093fcbad2
Removed print statements.
...
git-svn-id: http://svn.robofab.com/trunk@87 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 08:18:23 +00:00
Erik van Blokland
ac33952df5
Pen to calculate the horizontal margins of a glyph at any given height by intersecting the shape with a horizontal line. Results can be obtained for the whole glyph with pen.getMargins() or for each individual contour with pen.getCounterMargins().
...
git-svn-id: http://svn.robofab.com/trunk@86 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-30 07:49:39 +00:00
Erik van Blokland
3950975a77
AngledMarginPen calculates the left and right side-bearings of a glyph, relative to slanted margins. The angle is taken from font.info.italicAngle. Curves are approximated. This also contains 5 convenience functions to set and get individual margins and to center the glyph.
...
The approximation can be improved upon, perhaps taking the size of the bezier into account and so on. Also the italic offset, as it was used in RoboFog is missing, and could perhaps be taken into account.
git-svn-id: http://svn.robofab.com/trunk@85 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-05-27 09:00:58 +00:00
Erik van Blokland
fb0943ff96
Remove unnecessary print.
...
git-svn-id: http://svn.robofab.com/trunk@84 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-28 15:51:53 +00:00
Erik van Blokland
d7bd6f0ace
These have been renamed.
...
git-svn-id: http://svn.robofab.com/trunk@83 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-20 10:45:50 +00:00
Erik van Blokland
34ef397f91
Standardised script names on import or export.
...
git-svn-id: http://svn.robofab.com/trunk@82 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-20 10:45:06 +00:00
Erik van Blokland
d36721f978
Couple of tweaks to existing import / export scripts. Couple more import and export options.
...
git-svn-id: http://svn.robofab.com/trunk@81 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-20 10:40:28 +00:00
Erik van Blokland
630b06cf57
Remove 2 SVG scripts. They're not working and should not have been checked in.
...
git-svn-id: http://svn.robofab.com/trunk@80 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-20 10:19:09 +00:00
Erik van Blokland
9ec254f80c
New folder for contributed robofab packages.
...
git-svn-id: http://svn.robofab.com/trunk@79 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-20 10:01:52 +00:00
Erik van Blokland
0cab92633e
A change to a RoboFab/FontLab glif to ufo export script. Handle "Cancel" nicer.
...
git-svn-id: http://svn.robofab.com/trunk@78 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-04-04 09:51:40 +00:00
Tal Leming
79e74dfafd
Whitespace change to test checkin permissions.
...
git-svn-id: http://svn.robofab.com/trunk@77 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-12 15:07:49 +00:00
Erik van Blokland
f9a8c11922
Doc files can be generated with "makeDocumentation.py" - the docfiles themselves don't need to be in svn. Goodbye.
...
git-svn-id: http://svn.robofab.com/trunk@76 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 12:26:02 +00:00
Erik van Blokland
b3bdbecd98
Remove the old website. It has a better searchable version on robofab.com.
...
git-svn-id: http://svn.robofab.com/trunk@75 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 12:19:01 +00:00
Erik van Blokland
13d1160e24
A license.
...
git-svn-id: http://svn.robofab.com/trunk@74 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 11:38:13 +00:00
Erik van Blokland
0207cd7227
Demo of pshint data object.
...
git-svn-id: http://svn.robofab.com/trunk@73 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 11:37:38 +00:00
Erik van Blokland
60185e1a37
Upped the version for the new installer.
...
git-svn-id: http://svn.robofab.com/trunk@72 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 10:23:11 +00:00
Just van Rossum
ba0f821bd5
back out attempt to expose svn rev number
...
git-svn-id: http://svn.robofab.com/trunk@71 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:50:04 +00:00
Just van Rossum
652e2926e0
set property for Revision substitution
...
git-svn-id: http://svn.robofab.com/trunk@70 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:42:58 +00:00
Just van Rossum
824225ceb7
try to get the svn rev number in the source
...
git-svn-id: http://svn.robofab.com/trunk@69 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:39:16 +00:00
Just van Rossum
773a7f7e5d
This folder is no longer used.
...
git-svn-id: http://svn.robofab.com/trunk@68 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:19:59 +00:00
Just van Rossum
feb0046176
Moved Data, Lib and install.py one level down the tree
...
git-svn-id: http://svn.robofab.com/trunk@67 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:18:32 +00:00
Erik van Blokland
b1ca648372
Remove GlyphConstuction.txt. The data now lives in tools/glyphConstruction.py
...
git-svn-id: http://svn.robofab.com/trunk@66 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 09:06:07 +00:00
Erik van Blokland
b849ad8d8e
Don't read GlyphConstructions.txt but rather robofab.tools.glyphConstruction.
...
git-svn-id: http://svn.robofab.com/trunk@65 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 08:57:37 +00:00
Erik van Blokland
8bd5dcb7e7
Name change.
...
git-svn-id: http://svn.robofab.com/trunk@64 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 08:55:43 +00:00
Erik van Blokland
c841804847
A new place for the glyphconstructions info. Just the text as a long string, following the fontTools agl example. This data needs to be accessible, but the Data/ folder isn't always present.
...
git-svn-id: http://svn.robofab.com/trunk@63 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-11 08:32:21 +00:00
Just van Rossum
b6fb65a7fa
old stuff
...
git-svn-id: http://svn.robofab.com/trunk@62 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-03 19:46:41 +00:00
Just van Rossum
06da8efea4
these shouldn't be in svn
...
git-svn-id: http://svn.robofab.com/trunk@61 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-03 19:44:25 +00:00
Erik van Blokland
0c11984e3c
This sets a default value for the RInfo.createdBy attribute. Setters and getters for this attribute were already in place, no idea why this was missed. But here it is.
...
git-svn-id: http://svn.robofab.com/trunk@60 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-03-02 10:05:19 +00:00
Erik van Blokland
a1c092af26
_processMathOne does not need factor processing. Copy/paste error.
...
git-svn-id: http://svn.robofab.com/trunk@59 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-26 09:33:18 +00:00
Erik van Blokland
380513b3c2
Fixes a traceback in FL when importing a UFO without hints.
...
git-svn-id: http://svn.robofab.com/trunk@58 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 14:53:25 +00:00
Erik van Blokland
6ce7a4c64b
Check if the psHints are None before processing.
...
git-svn-id: http://svn.robofab.com/trunk@57 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 14:37:20 +00:00
Erik van Blokland
72dc3fecae
Add test for glyph.copy() and font.insertGlyph()
...
git-svn-id: http://svn.robofab.com/trunk@56 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 13:25:00 +00:00
Erik van Blokland
bee4e0c152
Fix
...
git-svn-id: http://svn.robofab.com/trunk@55 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 13:22:11 +00:00
Erik van Blokland
e9a403fec1
PostScriptGlyphHintValues reads from data argument if there is one.
...
git-svn-id: http://svn.robofab.com/trunk@54 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 12:55:29 +00:00
Erik van Blokland
5d3393baab
Add a clear() method to the psHint base object.
...
git-svn-id: http://svn.robofab.com/trunk@53 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 12:52:26 +00:00
Erik van Blokland
92f1b1c979
New argument for writeUFO: doHints if the glyph hints need to be exported. Default set to False. New argument for readUFO: doHints: if the hints need to be imported. Defaults set to True. font._supportHints is set to True so at least internally hints are supported.
...
git-svn-id: http://svn.robofab.com/trunk@52 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 12:51:13 +00:00
Erik van Blokland
47e7af1af8
This adds support for glyph.psHints in objectsFL.RGlyph. The psHints object is in this case a wrapper for FontLab's glyph hint objects. Hints are represented as simple [position, width] pairs, but they're converted to FL Hint objects when writing back to the font. Some changes to the way the hints are written to the font.lib upon export to UFO: hints used to be written as a list of {"position":100, "width":20} dicts. This is now just a list of lists [[100, 20], ]. The names of the entries now match the robofabInterCapSpellingRule, so hHint and vHint rather than hhint and vhint. This also applies to hLink, vLink and replaceTable.
...
git-svn-id: http://svn.robofab.com/trunk@51 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:35:12 +00:00
Erik van Blokland
119c1534ba
This adds support for glyph.psHints in objectsRF.RGlyph. Read from glyph.lib if present. Write to glyph.lib if not empty. It stores in the .glif through the glyph.lib.
...
git-svn-id: http://svn.robofab.com/trunk@50 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:28:46 +00:00
Erik van Blokland
89a3dcd1a6
psHint object for glyphs. Support for math. Support for (x,y) factors for multiplication and division. Math operations on glyph take psHints into account. Refer to robofab/test/test_psHints.py
...
git-svn-id: http://svn.robofab.com/trunk@49 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:26:38 +00:00
Erik van Blokland
bb9b773615
Test data. Same as the test data from earlier releases. It had not been committed into svn.
...
git-svn-id: http://svn.robofab.com/trunk@48 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:23:57 +00:00
Erik van Blokland
8893f73410
doc test for the psHints attributes of glyph and font. Various math operations ad tests.
...
git-svn-id: http://svn.robofab.com/trunk@47 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-25 11:22:03 +00:00
Erik van Blokland
c52a8690ab
objectsRF.RFont object now makes an empty PostScriptFontHintValues object when initialised. psHints data is always saved to UFO, not just when font._supportHints is on.
...
git-svn-id: http://svn.robofab.com/trunk@46 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-24 11:40:36 +00:00
Erik van Blokland
9b132cd124
Div rather than mul.
...
git-svn-id: http://svn.robofab.com/trunk@45 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 21:22:40 +00:00
Erik van Blokland
10b720b45d
This implements add, sub, mul, rmul, div and rdiv for psHints. With a tip of the hat to Tal's fontMath for some ideas. This also includes a round() method which does some appropriate rounding and integerifying of the zone and stems.
...
git-svn-id: http://svn.robofab.com/trunk@44 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 19:44:09 +00:00
Erik van Blokland
a1d2ca7469
psHints, allow initialisation of the object with data.
...
git-svn-id: http://svn.robofab.com/trunk@43 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 19:40:49 +00:00