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
Erik van Blokland
afe98e771e
Reimplements the maximum items for the bluesvalues. New copy() method fo the FL flavored psHints object.
...
git-svn-id: http://svn.robofab.com/trunk@42 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 19:40:07 +00:00
Erik van Blokland
026f9d336f
Rather than a list of tuples, the zone information is now returned and accepted as a list of lists. It won't make any difference in the way the data is handled, but it makes it possible to compare results in FL with results from UFO. (the pairs are stored as lists in the UFO, not tuples). Two internal method names are updated as well as they're no longer making tuples.
...
git-svn-id: http://svn.robofab.com/trunk@41 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 13:22:35 +00:00
Erik van Blokland
0192232fbe
Fix: if a psHintValues object is initialised without a parent, it should not try to load the lib.
...
git-svn-id: http://svn.robofab.com/trunk@40 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-23 13:17:21 +00:00
Erik van Blokland
fdae4fcb4b
Represent blues values as lists of tuples rather than a list of integers. Represent forceBold as a Bool. Do some sorting on blues values.
...
git-svn-id: http://svn.robofab.com/trunk@39 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-22 10:12:19 +00:00
Erik van Blokland
20aadad26c
Script with examples of the new RFont.psHints attribute. Setting and getting values.
...
git-svn-id: http://svn.robofab.com/trunk@38 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-22 10:09:52 +00:00
Erik van Blokland
a8d74c1c88
GlyphHints thingy doesn't exist yet, so can't be imported.
...
git-svn-id: http://svn.robofab.com/trunk@37 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-22 08:40:00 +00:00
Erik van Blokland
a0f4ff8ba7
Support for font level postscript hints, mirroring the support in objectsFL. RFont.psHints attribute gives access to blues values and stems and so on. This is just a simple representation of the data that's already in the UFO. This object should actually do some sanity checking of the entered values, keep them to their allowed maximum number of entries and sort them. Also, it would be nice if the zones could respond to math operations. But that's a different project.
...
git-svn-id: http://svn.robofab.com/trunk@36 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-21 17:42:34 +00:00
Erik van Blokland
1015f090d4
Support for font level postscript hints. RFont.psHints attribute gives access to blues values and stems and so on. When exporting to UFO, font._supportHints needs to be True. When exporting to UFO, font level hint data is stored in the font.lib under key "org.robofab.postScriptHintData". Glyph level hint data is stored in the .glif, also under key "org.robofab.postScriptHintData". Note that glyph hints were stored under a different key before. Note, these are new features and still require some testing. The rest of the objects should not be affected by this.
...
git-svn-id: http://svn.robofab.com/trunk@35 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-21 17:37:39 +00:00
Erik van Blokland
5a8c896278
Base object for font level postscript hint data such as the blue values and stems. See RF and FL modules for actual implementation.
...
git-svn-id: http://svn.robofab.com/trunk@34 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-21 17:17:22 +00:00
Erik van Blokland
e940853ff2
When a font was saved to a new location, the kerning did not copy in some cases. This forces the kerning to always copy when a save as happens.
...
git-svn-id: http://svn.robofab.com/trunk@33 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-21 16:56:53 +00:00
Erik van Blokland
702d133861
A fix for ticket http://code.robofab.com/ticket/2
...
When the feature order is present, it does not mean the features are still in tact, they might have been edited by an earlier version of robofab. Now it checks if a feature is present before adding it to the list of things to add.
git-svn-id: http://svn.robofab.com/trunk@32 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-21 07:46:17 +00:00
Erik van Blokland
c0e527a2a1
Remove unnecessary print statement.
...
git-svn-id: http://svn.robofab.com/trunk@31 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-05 10:04:25 +00:00
Erik van Blokland
6a3236b291
This fixes glyph rotation around an arbitrary center point. The return-to-base translation was missing.
...
git-svn-id: http://svn.robofab.com/trunk@30 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-05 09:46:47 +00:00
Erik van Blokland
3069538f34
Removes unnecessary print statement.
...
git-svn-id: http://svn.robofab.com/trunk@29 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-04 20:09:55 +00:00
Erik van Blokland
2b446bb01c
os.name on mac can also be "posix". This caused a problem with FLS 5 on OSX, which would then return glyph.note as latin-1 rather than macroman, which would cause the wrong string to be written in UFO. Tip of the hat to Kai Bernau for reporting.
...
git-svn-id: http://svn.robofab.com/trunk@28 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-02 12:40:17 +00:00
Erik van Blokland
0045ab5862
Change to writing the glyph.note. Strings are encoded as utf-8 before handing them to the xmlwriter.
...
git-svn-id: http://svn.robofab.com/trunk@27 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-02-02 12:37:51 +00:00
Erik van Blokland
cd92c4599b
Change to the way the transformation tuple of a component is added to the digest. Values which can be ints (int(a) == a) are added as int, rather than float. This solves a problem comparing digests in UFO and VFB.
...
git-svn-id: http://svn.robofab.com/trunk@26 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-22 11:28:22 +00:00
Erik van Blokland
d7fca1c1e5
Added >>> for the benefit of the doctests.
...
git-svn-id: http://svn.robofab.com/trunk@25 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-19 12:09:29 +00:00
Erik van Blokland
fda0359bb3
Contributed script by Antonio Cavedoni. Tokenize FontLab’s preview/metrics text into single characters respecting escaped glyph names (eg. “/A.smcp”) and providing a lossless reverse function.
...
git-svn-id: http://svn.robofab.com/trunk@24 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-17 06:20:03 +00:00
Erik van Blokland
36bff8e8ff
A place for contributed scripts.
...
git-svn-id: http://svn.robofab.com/trunk@23 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-16 08:15:51 +00:00
Erik van Blokland
617945dcf1
The scripts folder for FontLab as they shipped with Fab 1.1.1.
...
git-svn-id: http://svn.robofab.com/trunk@22 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-16 08:14:00 +00:00
Erik van Blokland
a80c6d2c8a
Some URLs in the code have been updated. Some old crud removed. Install.py moved to the right directory, it was initially checked into the wrong place.
...
git-svn-id: http://svn.robofab.com/trunk@21 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-09 08:53:25 +00:00
Erik van Blokland
2f35645fbe
Odd stray misplaced character. Sorry.
...
git-svn-id: http://svn.robofab.com/trunk@20 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-08 20:23:26 +00:00
Erik van Blokland
03fa850d2c
This removes the class magic based AllFonts. The AllFonts available in FL relies on actual font indices of open fonts. In RF, AllFonts will raise a NonImplementedError. The class should not be responsible for knowing which fonts are open, it's really up to the application to keep track of these things.
...
git-svn-id: http://svn.robofab.com/trunk@19 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-08 19:18:06 +00:00
Erik van Blokland
df38921713
Removes a couple of prints.
...
git-svn-id: http://svn.robofab.com/trunk@18 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-08 19:16:31 +00:00
Erik van Blokland
4fc6c418e3
Dummy AllFonts function added which will raise a NonImplementedError. AllFonts really only works in FL. This removes some bad magic which never really did work.
...
git-svn-id: http://svn.robofab.com/trunk@17 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-08 19:14:51 +00:00
Erik van Blokland
b4e57dc4e0
Removing getAllFonts() from objectsBase. It's unreliable and tries to implement something in RF which can't really be implemented.
...
git-svn-id: http://svn.robofab.com/trunk@16 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-08 19:13:43 +00:00
Erik van Blokland
d7b493a3cc
initial import was at the wrong place
...
git-svn-id: http://svn.robofab.com/trunk@15 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-08 18:41:55 +00:00
Erik van Blokland
f570f123fa
license for robofab
...
git-svn-id: http://svn.robofab.com/trunk@14 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-08 10:55:20 +00:00
Erik van Blokland
fe3133926a
Upped the version number to 1.1.2 so there is no confusing with the installer-release 1.1.1. The svn version has a couple of changes already.
...
git-svn-id: http://svn.robofab.com/trunk@13 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-08 07:21:03 +00:00
Erik van Blokland
93f57733fc
Basic fab objects for use in FontForge. Not at all ready, but functional in parts.
...
git-svn-id: http://svn.robofab.com/trunk@12 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 21:12:34 +00:00
Erik van Blokland
3ce28a5c17
All the changes that sat around. Some fixes involving FontIndex. A fix for weightValue not accepting floats. An addition for feature exports and imports: it now stores the order in which the features are stored in fontlab. While this works for evb, note there might be conflicts with the changes in your own personal objectsFL.
...
git-svn-id: http://svn.robofab.com/trunk@11 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 21:05:52 +00:00
Erik van Blokland
e397d6495e
more cleaning
...
git-svn-id: http://svn.robofab.com/trunk@10 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:36:45 +00:00
Erik van Blokland
6afe101a71
more cleaning
...
git-svn-id: http://svn.robofab.com/trunk@9 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:36:03 +00:00
Erik van Blokland
713ce3b9f2
more cleaning
...
git-svn-id: http://svn.robofab.com/trunk@8 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:34:31 +00:00
Erik van Blokland
b6f7c1c1b9
more cleaning
...
git-svn-id: http://svn.robofab.com/trunk@7 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:29:56 +00:00
Erik van Blokland
05819ef629
more cleaning
...
git-svn-id: http://svn.robofab.com/trunk@6 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:27:40 +00:00
Erik van Blokland
10c63c548e
more cleaning
...
git-svn-id: http://svn.robofab.com/trunk@5 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:25:28 +00:00
Erik van Blokland
13cd62a0f1
more cleaning
...
git-svn-id: http://svn.robofab.com/trunk@4 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:19:18 +00:00
Erik van Blokland
79e668f9e2
more cleaning
...
git-svn-id: http://svn.robofab.com/trunk@3 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:15:29 +00:00
Erik van Blokland
f5a6541439
removing old CVS dir
...
git-svn-id: http://svn.robofab.com/trunk@2 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 20:14:25 +00:00
Erik van Blokland
3646055ea2
initial import
...
git-svn-id: http://svn.robofab.com/trunk@1 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
2008-01-07 17:40:34 +00:00