(
left: int,
right: int,
width: int,
ascent: int,
descent: int,
attributes: int = 0,
)
| 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 |
no outgoing calls