Multi Commander > Feature Requests and Suggestions

Word Wrap not Working (MC Built-in TextViewer) !

<< < (2/2)

Mathias (Author):
It just have to be able to draw the font. Then windows will report how big the area it was drawn on. So the size can be calculated so it know to wrap it or not.
So my bet is on WindowBinds. becuse they to some tricky hack. and if the scrollbar is not standard width, I can see program miss out of the size of the scrollbar and some calculation goes wrong


All encoding should be wrapped. except maybe binary. wrapping does not depend on what encoding there is. it depends on how long the text is when rendered

Mathias (Author):
Actually. You might be right about the font. or combination of both, It uses the average character width, and based the calculation on that.

That is becuse it is the fastest way. The TextViewer is very optimized to be able to handle very large files. And for files that are changed all the time. like when viewing live logfiles. For that I want it to be as fast as possible.
Not sure i want to change that. Hmmm If I do anything about it it will be an option to switch to more exact measurement, but that would be an opt-in option in that case.

total_annihilation00:
It's alright then, I understand. Besides, on 80 characters Fixed Width it works fine !  :D

total_annihilation00:
Thank you for the updates !!  8)

Navigation

[0] Message Index

[*] Previous page

Go to full version