[Konsole-devel] [Bug 156071] Thai Support for Konsole

Robert Knight robertknight at gmail.com
Sat Jan 19 04:49:59 UTC 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=156071         




------- Additional Comments From robertknight gmail com  2008-01-19 05:49 -------
"OTOH, Konsole is a strict display grid, where cells are rendered separately
from one another."

Konsole actually renders text in batches of equally formatted text.  So if you have a plain line of text all with default formatting, it will be dispatched to QPainter::drawText() in one go.  This means that you can actually use proportional fonts with Konsole under KDE 4, if you modify the code that creates the font selector dialog so that it doesn't restrict the user to monospace fonts.  The only problem is that the decision about where to draw to start drawing a particular block of text on a line is based on (average latin character width * number of columns drawn so far), so if you have several blocks of text with different formatting on a line, the blocks might overlap or have gaps between them if a proportional font is used.  That is not unfixable though.   

"But I have no idea yet whether this should be application-specific feature or a toolkit provision." 

The more of this that can be handled automatically by the toolkit the better.  Text input. processing and rendering is a complex subject.  Hence Trolltech have at least one employee dedicated to it.  Application authors such as myself who work in their spare time will generally know very little about it.



More information about the konsole-devel mailing list