32 Commits

Author SHA1 Message Date
Nathan Williis
e5eb053105 Docs: add boilerplate docstrings to table converters. Mostly links to reference specs. 2024-12-04 15:58:46 +00:00
Nikolaus Waxweiler
d584daa8fd Blacken code 2022-12-13 11:26:36 +00:00
Just van Rossum
5fc65d7168
Misc py23 cleanups (#2243)
* Replaced all from ...py23 import * with explicit name imports, or removed completely when possible.
* Replaced tounicode() with tostr()
* Changed all BytesIO ans StringIO imports to from io import ..., replaced all UnicodeIO with StringIO.
* Replaced all unichr() with chr()
* Misc minor tweaks and fixes
2021-03-29 11:45:58 +02:00
Nikolaus Waxweiler
01328213c7 Remove __future__ imports 2019-08-09 12:20:13 +01:00
Cosimo Lupo
bc0480e19e
[sbix] fix TypeError when += str and bytes
Fixes #1145

There's probably more... we'll see once we have some data from chromacheck fonts to proper test this with
2018-01-11 20:15:58 +00:00
Miguel Sousa
883ff5fbdc [sbix] correct __init__ method 2016-04-21 21:32:30 -07:00
Miguel Sousa
a7aef47695 fix "indentation contains mixed spaces and tabs" errors reported by Landscape 2015-08-09 00:33:50 -07:00
Sascha Brawer
5cda3d4e72 Minor fixes to reduce the number of code smells 2015-05-06 19:17:08 +02:00
Behdad Esfahbod
5287b52d22 Whitespace 2015-04-26 00:49:36 -04:00
Jens Kutilek
c3b3fee638 Cleanup 2014-09-24 13:54:25 +03:00
Jens Kutilek
55d1d367c4 Use safeEval for attributes 2014-09-24 13:54:25 +03:00
Jens Kutilek
ad04a9e200 Dump sbix flags as a bit field 2014-09-24 13:54:25 +03:00
Jens Kutilek
5d004eb936 Rename Bitmap to Glyph 2014-09-24 13:54:25 +03:00
Jens Kutilek
141188bd00 Renamed imageFormatTag to graphicType 2014-09-24 13:54:25 +03:00
Jens Kutilek
3c03e75e9f Nicer names 2014-09-24 13:54:24 +03:00
Jens Kutilek
2c4713ad0b Renamed bitmaps to glyphs 2014-09-24 13:54:24 +03:00
Jens Kutilek
2f94365340 Rename self.bitmapSets to self.strikes etc. 2014-09-24 13:54:24 +03:00
Jens Kutilek
cb905522b1 Renamed sbixBitmapSet... to sbixStrike... 2014-09-24 13:54:24 +03:00
Jens Kutilek
473d57bef1 Renamed BitmapOffset to GlyphDataOffset 2014-09-24 13:54:24 +03:00
Jens Kutilek
89e9842d0b Rename size to ppem 2014-09-22 17:20:04 +02:00
Jens Kutilek
590906c7b4 Rename BitmapSet to Strike 2014-09-22 17:07:01 +02:00
Jens Kutilek
20125e16f4 Rename numSets to numStrikes 2014-09-22 16:58:55 +02:00
Jens Kutilek
d06c71932e Rename unknown fields to version, flags (again) 2014-09-22 16:54:43 +02:00
Jens Kutilek
dd69de96cd Fix wrong calculation of offsets for second strike 2014-09-22 15:38:02 +02:00
Jens Kutilek
fe4a723322 Try again 2014-09-19 18:19:28 +02:00
Jens Kutilek
7c99304474 Change unknown header fields to version, flags 2014-09-19 17:51:13 +02:00
Jens Kutilek
2aa0e9e524 Rename imports in _s_b_i_x.py 2014-09-19 16:21:23 +02: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
de85e4599f 2to3 sbix code
This seems to work now.

At some point we should go back and clean up and merge datastructures
between the four different color font formats.
2013-12-06 19:53:28 -05:00
Behdad Esfahbod
1b8cde1b6f Fix imports 2013-12-06 19:41:49 -05:00
Behdad Esfahbod
4801a3ae39 Whitespace 2013-12-06 19:40:00 -05:00
Behdad Esfahbod
f1394f3fdd Initial sbix support from Jens Kutilek 2013-12-06 19:35:09 -05:00