Skip to content

Enable text tool to draw debug outlines of text shapes in view

Alvin Wong requested to merge alvinwong/krita:alvin/text-tool-debug into master

This debug function can be enabled by setting the environment variable KRITA_DEBUG_TEXTTOOL. When enabled, selecting a text shape with the text tool will draw the bounding boxes of the characters in the shape. The boxes are drawn on the view, allowing the subpixel positioning to be visualized when zoomed in.

Also added showing the character index in the debug output.

Screenshots

At 200% zoom, note that the debug output is crisp:
圖片

Showing subpixel positioning in high zoom level:
圖片

@dkazakov and @woltherav wdyt?

Edited by Alvin Wong

Merge request reports