Files
test2/doc/python_api/examples
Campbell Barton c3e5a35ecd PyAPI: add blf.bind_imbuf(..) context manager
Add support for using BLF to draw into an ImBuf image buffer.
Once the imbuf context has been set, draw calls for that font_id will draw into the image.

This works by binding an imbuf to BLF which is then used as the target when drawing.
```
with blf.bind_imbuf(font_id, imbuf):
    blf.draw_buffer(font_id, text)
```
See the example in the Python API documentation for reference.

The following BLF API's have been added to support a Python context manager.

- `BLF_buffer_state_push`.
- `BLF_buffer_state_pop`
- `BLF_buffer_state_free`

Ref !135772
2025-03-15 11:00:51 +11:00
..
2021-09-18 19:28:55 +02:00
2025-02-02 13:58:34 +11:00
2021-07-06 12:05:27 +10:00
2019-11-01 10:53:47 +11:00
2019-11-01 10:53:47 +11:00
2019-11-01 10:53:47 +11:00
2019-11-01 10:53:47 +11:00
2021-07-06 12:05:27 +10:00
2019-03-22 00:07:06 +11:00
2019-03-22 00:07:06 +11:00
2023-08-24 11:37:29 +10:00
2024-06-12 17:43:44 +02:00
2022-05-11 11:02:01 +10:00
2019-03-17 21:00:56 +11:00
2024-07-23 15:58:21 +10:00