On 07.04.2010, at 10:34, MacArthur, Ian (SELEX GALILEO, UK) wrote: > > >> Rectangular selections pose a real problem. > > Bah! It never worked well anyway...
Can I kicck it out? Can I, can I? Pleeaaase? :-P >> And constantly recalculating character widths is just much too >> expensive. > > Yup - though the "easy" fix of caching the glyph widths doesn't work > either, since most latin / greek / cyrillic fonts will be kerned > differently depending on what glyphs they are adjacent to, and the > situation with many other languages is even worse, where the actual > shape of the glyph may change completely depending on what it is next > to... > > So, we possibly have to form whole words, then measure them, as > measuring individual glyphs probably will not work. > > It is a Hard Thing. > >> But nevertheless, we will get ths widget rolling again ;-) >> >> Never say die! > > Brave... Lazy. Maybe a redesign around the old API is the better approach? I'll rip the rectangle selection out first which will greatly reduce the number of lines of code. I'll refactor the re-occuring code which should get us 50% there. Then the only real issue left would be efficient rendering of a line of text which must be rewritten. - Matthias _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
