12141 Commits

Author SHA1 Message Date
pabs3
e307d81d4b Update changelog
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@520 4cde692c-a291-49d1-8350-778aa11640f8
2008-01-28 07:11:06 +00:00
pabs3
67584d842d Woops, missed a version number
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@519 4cde692c-a291-49d1-8350-778aa11640f8
2008-01-28 07:09:27 +00:00
pabs3
043d41f2c6 Add a MANIFEST file so that we don't forget files in the source distribution
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@518 4cde692c-a291-49d1-8350-778aa11640f8
2008-01-28 04:59:14 +00:00
pabs3
af37f54e52 Update the changelog from the CVS history
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@517 4cde692c-a291-49d1-8350-778aa11640f8
2008-01-28 04:22:26 +00:00
pabs3
d80c13e389 Get ready to release version 2.1
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@516 4cde692c-a291-49d1-8350-778aa11640f8
2008-01-28 04:19:40 +00:00
pabs3
fb8e53bfcf Just use fonttools as the tarball name.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@515 4cde692c-a291-49d1-8350-778aa11640f8
2008-01-28 04:00:14 +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
pabs3
9728601b44 Fix 1762552: traceback on amd64 with DejaVuSans.ttf
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@514 4cde692c-a291-49d1-8350-778aa11640f8
2007-11-14 07:06:39 +00:00
jvr
4acb76de2e added 'support' for OS/2 version 4: can anyone verify this is correct? I can't seem to find an OS/2 v4 spec...
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@513 4cde692c-a291-49d1-8350-778aa11640f8
2007-10-22 09:31:02 +00:00
pabs3
26a46b7fce Patch #1296028 from Tomasz Wegrzanowski: improve performance with CJK fonts
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@512 4cde692c-a291-49d1-8350-778aa11640f8
2007-08-25 06:19:37 +00:00
jvr
823f8cd15f Misc patches from rroberts:
fontTools/ttx.py
  # support virtual GIDs, support handling some GSUB offset overflows.

fontTools/ttlib/__init__.py
# 1) make getReverseGlyphMap  a public function; I find a reverse map
to often be useful
# 2) support virtual glyphs, e.g. references to GID's that are not in the font.
# Added the TTFont argument allowVID (default 0) to turn this off and on;
# added the arg requireReal ( default 0) so as to get the obvious
default behaviour when
# allowVID is 0 or 1, but to allow requiring a true GID when allowVID is 1.

fontTools/ttlib/tables/otBase.py
fontTools/ttlib/tables/otConverters.py
fontTools/ttlib/tables/otData.py
fontTools/ttlib/tables/otTables.py
# 1) speed optimization
# - collapse for loops
# - do not decompile extension lookups until a record is requested
from within the lookup.
# 2) handling offset overflows
# 3) support of extension lookups
# 4) Fixed FetauresParam converter class def so as to survive a font
that has this offset non-NULL.
# This fixes a stack dump.
# The data will now just get ignored


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@511 4cde692c-a291-49d1-8350-778aa11640f8
2006-10-21 14:12:38 +00:00
jvr
d299b55d14 patches from rroberts:
# 1) Switched to using Numeric module arrays rather than array modules arrays,
#  because of a memory leak in array.array when handling elements > 1 byte.
# 2) speed optimizations:
# -  For loops are collapsed when possible
# - the data for a subtable is parsed only if a mapping value is requested
# - if two subtables share the same data offset, then on
decompilation, they will
# share the same cmap dict, and not get decompiled twice. Same for compiling.
# - as before, two tables with the same contents will get compiled to a single
# data block in the font.
# 3) added  (self.platformID, self.platEncID) == (3, 10) to the list
of subtables that
# get Unicode comments.
# 4) allow item reference by GID as well as by name. I did this when
experimenting to see if using GID references only would speed the
compile; it didn't but it seemed useful enough to leave in.
# 5) Fixed compile to/from XML: for cmap type unknown ( aka cmap
format 10, in practice.)


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@510 4cde692c-a291-49d1-8350-778aa11640f8
2006-10-21 13:54:30 +00:00
jvr
c60a44fa03 Some edits from rroberts:
# 1) speed optimizations
# 2) fixed parseCharset0 to support CFF-CID fonts.
# 3) fixed CharsetConverter.read to work a font that actually has one
of the pre-canned encodings.
# This fixes a stack dump.
# I did not try to support using these encodings when writing a font,
# as the cases will be so rare as to not justify the processing
overhead for all other fonts.

(Read: I took out some of your loop optimizations since I believe they
made the code a lot less clear. I also have my doubts whether they were
actually performance improvements.)


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@509 4cde692c-a291-49d1-8350-778aa11640f8
2006-10-21 13:41:18 +00:00
jvr
bc6e55b31e Speed optimizations from rroberts
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@508 4cde692c-a291-49d1-8350-778aa11640f8
2006-10-21 13:29:47 +00:00
jvr
4cc0051c08 Some non-official OT tables from rrboerts. He wrote:
There are also some new files, for SING glyphlet support, that you
may or may not want to add, because they are not in the OpenType spec.

M_E_T_A_.py # SING glyphlet meta data table. see
'http://partners.adobe.com/public/developer/opentype/gdk/topic.html"
S_I_N_G_.py # SING glyphlet basic info. See same web site as for META
data table.

G_M_A_P_.py # Summary of sing glyphlet info that has been stuck into
a parent font. Not documented anywhere yet.
G_P_K_G_.py # Opaque wrapper for SING glyphlet info; travels with
application document. Is also stuck into augmented parent font. Not
documented anywhere yet


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@507 4cde692c-a291-49d1-8350-778aa11640f8
2006-10-21 13:27:25 +00:00
jvr
192655c661 make this module work with semi-recent MacPython
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@506 4cde692c-a291-49d1-8350-778aa11640f8
2006-10-21 13:16:51 +00:00
jvr
7099f4c0f9 support the deprecated dotsection T2 operator
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@505 4cde692c-a291-49d1-8350-778aa11640f8
2006-02-25 21:39:33 +00:00
fcoiffie
3a3721cb1c In some bad fonts, kern table is incomplete (it only contains a version number). In this case, the code accept a table without kernTables.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@504 4cde692c-a291-49d1-8350-778aa11640f8
2006-01-25 15:24:37 +00:00
fcoiffie
dc66e7e118 LTSH length can be different of numGlyphs as the table length must be 4-bytes aligned (assertion changed to (len(data) % numGlyphs) < 4)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@503 4cde692c-a291-49d1-8350-778aa11640f8
2006-01-25 15:21:22 +00:00
fcoiffie
83f069d66c The dates are stored in 8-bytes fields (Microsoft reference document) but Macintosh dates are only coded with 4-bytes. In some fonts, these date fields are badly coded and 8-bytes are used. So, a ValueError occurs.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@502 4cde692c-a291-49d1-8350-778aa11640f8
2006-01-25 15:12:14 +00:00
fcoiffie
04985bfdde Unsigned long data field must be packed with "L" instead of "l" (sometimes an OverflowError can occur)
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@501 4cde692c-a291-49d1-8350-778aa11640f8
2006-01-12 14:04:40 +00:00
jvr
e895dce25d Hmm, fondLib has been broken on Python.framework for a while: I used
the native struct alignment, which is different on OSX. Changed all
struct calls to explicitly use big endian (ready for x86...), which
also fixes the alignment issue.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@500 4cde692c-a291-49d1-8350-778aa11640f8
2005-06-24 09:35:16 +00:00
jvr
d4561ec1b4 some flex hint fixes from rroberts
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@499 4cde692c-a291-49d1-8350-778aa11640f8
2005-05-07 08:41:12 +00:00
jvr
a5c92986dd avoid glyphSet.get(): not all glyphsets in use implement it.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@498 4cde692c-a291-49d1-8350-778aa11640f8
2005-04-10 13:18:42 +00:00
jvr
2e4cc02ca3 BasePen should not fail if a base glyph does not exist in the glyph set; added get() method to _TTGlyphSet class
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@497 4cde692c-a291-49d1-8350-778aa11640f8
2005-03-08 09:50:56 +00:00