| Summary: | Maximum line width is often wrong | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mihai Sucan <mihai.sucan> |
| Component: | Editor | Assignee: | Felipe Heidrich <eclipse.felipe> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclipse.felipe, mihai.sucan, Silenio_Quarti |
| Version: | unspecified | ||
| Target Milestone: | 0.4 M1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Mihai Sucan
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=b7b034162fb2d0680e9eeb37621ef37950d67f19 Thanks for the investigation Mihai! Thanks for the quick fix! Silenio's solution is less radical. I like that. :) (In reply to comment #2) > Thanks for the quick fix! Silenio's solution is less radical. I like that. :) Basically the same solution we used in StyledText (SWT). Note that using line char count to measure a line has several problems: - fails for multi font - fails for proportional font - fails for international text (specially bad for CJK) - fails for tab expansions (In reply to comment #3) > (In reply to comment #2) > > Thanks for the quick fix! Silenio's solution is less radical. I like that. :) > > Basically the same solution we used in StyledText (SWT). > > Note that using line char count to measure a line has several problems: > - fails for multi font > - fails for proportional font > - fails for international text (specially bad for CJK) > - fails for tab expansions I did think of tab expansions, and that's something (hopefully) easy to fix. Is TextView supposed to work with multiple fonts and proportional fonts? (in the future) (In reply to comment #4) > Is TextView supposed to work with multiple fonts and proportional fonts? (in > the future) proportional fonts: Yes, that said, we never tested it much. Note that this is important for unicode text. We can't expected JP characters to have the same width as EN characters. multiple fonts: Yes, as long as the fonts all have the same height (in other words, all lines have the same height - if you set a font to a line that makes it taller than the other lines it will fail). We tested for regular/italic/bold/bold-italic. We should have this fully working when Bug 334910 is fixed. |