18 Commits

Author SHA1 Message Date
Nikolaus Waxweiler
01328213c7 Remove __future__ imports 2019-08-09 12:20:13 +01:00
Cosimo Lupo
d8c40583d1
[agl] ensure AGL glyph names are 'str' type
We are using unicode_literals in this module since 329261b.
Because of that, on py27 sometimes a TTFont glyphOrder may end up with
a mix of `str` and `unicode` glyph names.
While I'd love to change every single 'text' string to unicode, maybe
in this case it makes sense to use the native `str` type (`bytes` on
py2, unicode string on py3) for the UV2AGL and AGL2UV dictionaries, as
glyph names can only contain ascii characters anyway.

See https://github.com/fonttools/fonttools/pull/774#discussion_r98327429
2017-01-28 11:48:51 +00:00
Sascha Brawer
3b6648e725 [agl] Add link to GitHub issue for details about TODO comment
https://github.com/fonttools/fonttools/issues/775
2016-12-19 15:42:39 +01:00
Sascha Brawer
428636cfaf Map AGL glyph names to Unicode (#774)
Implements the mapping algorithm from the [Adobe Glyph List specification](
https://github.com/adobe-type-tools/agl-specification#2-the-mapping).

Currently, the implementation only recognizes glyph names from the
Adobe Glyph List for New Fonts (AGLFN), not the legacy AGL which is a
superset. If there is interest, it would be easy to support the legacy AGL
as well, preferrably in a follow-up change.

https://github.com/googlei18n/glyphsLib/issues/88#issuecomment-267408215
2016-12-19 15:34:44 +01:00
Behdad Esfahbod
df2906b0ad Fix a few issues found by landscape.io 2015-04-26 02:17:13 -04:00
Behdad Esfahbod
b30e12ae00 More whitespace 2015-04-26 02:01:01 -04:00
Behdad Esfahbod
1ae29591ef from __future__ import absolute_import
Such that our Python 2 is closer to Python 3.

Part of https://github.com/behdad/fonttools/issues/77
2014-01-14 15:07:50 +08:00
Behdad Esfahbod
32c10eecff py23 from __future__ import division and adjust divisions 2013-11-28 17:32:42 -05:00
Behdad Esfahbod
30e691edd0 py23 from __future__ import print_function 2013-11-27 17:27:45 -05:00
Behdad Esfahbod
cd5aad92f2 2to3 --fix=raise 2013-11-27 02:42:28 -05:00
Behdad Esfahbod
bc5e1cb195 2to3 --fix=has_key 2013-11-27 02:33:03 -05:00
Behdad Esfahbod
db0b1b8a34 Update to AGLFN version 1.7
Patch from Miguel Sousa.

Fixes https://github.com/behdad/fonttools/pull/18
2013-11-14 22:35:26 -05:00
jvr
2f3f24afd3 updated to aglfn 1.6
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@555 4cde692c-a291-49d1-8350-778aa11640f8
2008-05-16 17:33:56 +00:00
jvr
39c1918939 "Downgraded" AGL list to the "Adobe Glyph List For New Fonts", which is
most appropriate here. There may be a use for the "big" AGL, but that will
have to become a new module.


git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@466 4cde692c-a291-49d1-8350-778aa11640f8
2004-09-25 08:12:50 +00:00
Just
a063f8b0f6 Roozbeh Pournader found a working version to one of the broken URLs in the Adobe document.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@106 4cde692c-a291-49d1-8350-778aa11640f8
2000-05-26 13:08:10 +00:00
Just
9c3744ad92 Added note about the incorrect old URL in the Adobe text, and reverted the text to what it was: it still is the latest officially released document, and I'd rather include it as-is.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@80 4cde692c-a291-49d1-8350-778aa11640f8
2000-02-04 19:19:18 +00:00
Erik
76a9dd25d9 new URL for adobe's glyphlist doco
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@79 4cde692c-a291-49d1-8350-778aa11640f8
2000-02-04 18:58:59 +00:00
Just
7842e56b97 Created a new library directory called "FreeLib". All OpenSource RFMKII components will reside there, fontTools being the flagship.
git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@2 4cde692c-a291-49d1-8350-778aa11640f8
1999-12-16 21:34:53 +00:00