diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-03-31 18:51:49 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-03-31 18:51:49 +0000 |
commit | 02a5f1e78c4b1b2ed412593f39612f50bbd624bd (patch) | |
tree | 98d81cb66669c50af608fd8a844e22039a00f5ae /Lib/fontTools/ttLib/sfnt.py | |
parent | ec30550b149d3ba5c81fc88f2f90dd171b3f4013 (diff) | |
parent | 29956f91d34a6e7e114e9e04c4c22296e20b80c8 (diff) | |
download | fonttools-02a5f1e78c4b1b2ed412593f39612f50bbd624bd.tar.gz |
Snap for 8389696 from 29956f91d34a6e7e114e9e04c4c22296e20b80c8 to tm-d2-releaseandroid-13.0.0_r55android13-d2-release
Change-Id: Ia7295471df01d224f7e034f9ea778aca269e4f86
Diffstat (limited to 'Lib/fontTools/ttLib/sfnt.py')
-rw-r--r-- | Lib/fontTools/ttLib/sfnt.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/fontTools/ttLib/sfnt.py b/Lib/fontTools/ttLib/sfnt.py index d609dc51..e7c06337 100644 --- a/Lib/fontTools/ttLib/sfnt.py +++ b/Lib/fontTools/ttLib/sfnt.py @@ -8,13 +8,13 @@ Defines two public classes: used automatically by ttLib.TTFont.) The reading and writing of sfnt files is separated in two distinct -classes, since whenever to number of tables changes or whenever -a table's length chages you need to rewrite the whole file anyway. +classes, since whenever the number of tables changes or whenever +a table's length changes you need to rewrite the whole file anyway. """ from io import BytesIO from types import SimpleNamespace -from fontTools.misc.py23 import Tag +from fontTools.misc.textTools import Tag from fontTools.misc import sstruct from fontTools.ttLib import TTLibError import struct @@ -571,9 +571,6 @@ class WOFFFlavorData(): def calcChecksum(data): """Calculate the checksum for an arbitrary block of data. - Optionally takes a 'start' argument, which allows you to - calculate a checksum in chunks by feeding it a previous - result. If the data length is not a multiple of four, it assumes it is to be padded with null byte. |