This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/blenkernel
Campbell Barton f2341f8296 BLF: initial word-wrap support
- Adds support for word wrapping to Blender's BLF font library.
- Splits lines when width limit is reached or on explicit \n newlines.

Details:

- Word wrapping is used when `BLF_WORD_WRAP` flag is enabled.
- There is a single loop to handle line wrapping,
  this runs callback, passing in a substring,
  this way we can avoid code-duplication for all word-wrapped
  versions of functions... OR... avoid having to add support
  for word-wrapping directly into each function.
- The `ResultBLF` struct was added to be able to get the number
  of wrapped lines, when calling otherwise unrelated functions
  such as `BLF_draw/BLF_width/BLF_boundbox`,
  which can be passed as the last argument to `BLF_*_ex()` functions.
- The `ResultBLF` struct is used to store the result of drawing
  (currently only the number of lines wrapped, and the width).
2015-09-18 20:43:52 +10:00
..
2015-09-18 20:43:52 +10:00
2015-06-13 03:24:07 +10:00
2015-05-11 12:39:39 +10:00
2015-05-06 11:13:42 +10:00
2015-09-18 00:10:19 +10:00
2015-04-06 10:40:12 -03:00
2015-08-06 13:03:07 +10:00
2015-07-25 07:44:25 +10:00
2015-08-01 12:37:52 +10:00
2015-03-30 21:18:49 +11:00
2015-07-13 13:58:17 +02:00
2015-06-08 19:52:04 +10:00
2015-04-04 15:19:24 +11:00
2015-07-20 05:30:08 +10:00
2015-04-16 01:12:22 +10:00
2015-07-29 10:49:34 +10:00
2015-06-05 11:46:01 +10:00
2015-04-06 10:40:12 -03:00
2015-04-06 10:40:12 -03:00
2015-04-07 08:46:48 +10:00