Font Drawing Types (blf.types)

This module provides access to font drawing types.

class blf.types.BLFImBufContext

Context manager returned by blf.bind_imbuf() that binds an image buffer as the destination for text drawing.

Special Methods
__enter__()
Return type:

BLFImBufContext

__exit__(exc_type, exc_value, traceback)
Parameters:
  • exc_type (type | None) – Exception type, or None.

  • exc_value (BaseException | None) – Exception instance, or None.

  • traceback (BaseException | None) – Traceback object, or None.

Return type:

bool