santaclose / ImGuiColorTextEdit

Colorizing text editor for ImGui
MIT License
67 stars 18 forks source link

Issue with Text Rendering using External Fonts #21

Open mikay1337 opened 8 months ago

mikay1337 commented 8 months ago

I'm encountering an issue with text rendering when using an external font. The original branch displays the text correctly and functions as expected. However, when I switch to the fork branch, the text alignment appears to be different, causing inconsistencies in the rendering.

Steps to Reproduce:

Switch to the original branch and observe the text rendering with an external font. Switch to the fork branch and compare the text alignment with the original branch. Notice the differences in text alignment between the original and fork branches. Additional Details:

The external font being used: Robotto.ttf Screenshots showcasing the issue on both branches:

santaclose: Capture2

BalazsJako: Capture

This issue affects the consistency and appearance of the text rendering, particularly when using external fonts.

santaclose commented 8 months ago

I decided to stop supporting non monospace fonts for now, as it breaks the whole meaning of columns in the editor. So that's expected.