Hi jules,
I am using text editor with different font size, somehow word wrap doesnt seem to work as expected. If a word has different font size eg: Software, it split the word to next line.
Another small bug in cursor, if current font size is smaller than previous the cursor position is not proper ie, its drawing from height of the line instead it should be lineHeight - cursorHeight.
Hi,
I checked out the latest code from SVN, still bug is there.
Here is what i have done,
1) In Juce demo, void FontAndTextDemo::updatePreviewBoxText() i changed textBox->applyFontToAllText (font); to textBox->setFont(font);
2) Then i typed a word in which each character is of different font size.
Below image may give the clear picture of what is going wrong.
[url]http://picasaweb.google.co.uk/pnbalakumar/Public/photo#5185380283948879378[/url]
When i type word which is too big, it gives access violation while wrapping the word to next line (function wrapCurrentAtom() atom is NULL). Happens only if the first word needs to be wrapped to next line.
If there is word where font size is different for each character, while wrapping the text to next line it doesnt trim the space in front of that word.
I have implemented Text alignment feature in text editor by changing iterator class, i dont know if this is right way to implement. U can check the code here
Hi jules,
A small bug in class TextAtom, in function getTrimmedText () whole atomText is return instead it has to be trimmed. Bcoz of this sometimes same character is drawn in two lines.