Blender Git Commit Log
Git Commits -> Revision 8e65e38
Revision 8e65e38 by Dalai Felinto (master) November 26, 2018, 23:47 (GMT) |
Font textbox overflow: Different methods Sometimes the text doesn't fit. What to do in this case? * Overflow: The default behaviour still is to overflow the text. * Truncated: If any text box is defined we can also not draw the text that goes outside the text boxes. * Scale to Fit: For single-text box texts we can scale down the text until it fits. To support textboxes we are bisecting the scale until we find a good match. Right now the hardcoded iteration limit is 20, and the threshold 0.0001f. An alternative in the future would be to tackle this by integrating existing layout engines such as HarfBuzz. Note: Scale to fit won't work for multiple text-boxes if any of them has either width or height as zero. Reviewers: campbellbarton Differential Revision: https://developer.blender.org/D3874 Feature development sponsored by Viddyoze. |
Commit Details:
Full Hash: 8e65e38649f4a926e3c08cb414ff4789454d0f07
Parent Commit: 63db89b
Lines Changed: +295, -58
5 Modified Paths:
/release/scripts/startup/bl_ui/properties_data_curve.py (+1, -0) (Diff)
/source/blender/blenkernel/intern/font.c (+264, -54) (Diff)
/source/blender/draw/modes/edit_text_mode.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+14, -3) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+15, -0) (Diff)
/source/blender/blenkernel/intern/font.c (+264, -54) (Diff)
/source/blender/draw/modes/edit_text_mode.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+14, -3) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+15, -0) (Diff)