MCPcopy Create free account
hub / github.com/python-pillow/Pillow / append

Method append

src/PIL/PcfFontFile.py:161–174  ·  view source on GitHub ↗
(
            left: int,
            right: int,
            width: int,
            ascent: int,
            descent: int,
            attributes: int = 0,
        )

Source from the content-addressed store, hash-verified

159 fp, format, i16, i32 = self._getformat(PCF_METRICS)
160
161 def append(
162 left: int,
163 right: int,
164 width: int,
165 ascent: int,
166 descent: int,
167 attributes: int = 0,
168 ) -> None:
169 xsize = right - left
170 ysize = ascent + descent
171 Image._decompression_bomb_check((xsize, ysize))
172 metrics.append(
173 (xsize, ysize, left, right, width, ascent, descent, attributes)
174 )
175
176 if (format & 0xFF00) == 0x100:
177 # "compressed" metrics

Callers 15

setup.pyFile · 0.80
_add_directoryFunction · 0.80
_pkg_configFunction · 0.80
build_extensionsMethod · 0.80
run_setupMethod · 0.80
test_dispose2_paletteFunction · 0.80
test_dispose2_diffFunction · 0.80
test_dispose2_backgroundFunction · 0.80
test_palette_save_all_PFunction · 0.80

Calls

no outgoing calls

Tested by 15

test_dispose2_paletteFunction · 0.64
test_dispose2_diffFunction · 0.64
test_dispose2_backgroundFunction · 0.64
test_palette_save_all_PFunction · 0.64
get_imageFunction · 0.64
test_exif_transposeFunction · 0.64
setup_moduleFunction · 0.64
test_exif_equalityMethod · 0.64
test_separate_tablesMethod · 0.64
tableFunction · 0.64