Problem with TextRect lazarus / 1-Linux ---------------------------------------------------------------------- dav999 · 2009-07-10 06:16 Hello, i have a problem with textrect routine, the printer print same as textout, i can't get my text in the rect, his print all text in same line. my code : rect.left := 0; rect.top := 0; rect.right := 30; rect.bottom := 30; print.canvas.textrect(rect,100,100,'A text volontary too long for only 1 line for my printer'); Ubuntu - fpc 2.2.2 -  lazarus 0.9.26-4 - gtk2 Thanks David ps : excuse for my poor english but if anyone speak french ---------------------------------------------------------------------- theo · 2009-07-10 08:04 Where is the Style? Code: [Select]var Style:TTextStyle; ... FillChar(Style, sizeof(Style), 0); Style.Wordbreak:=true; print.canvas.textrect(rect,20,20,'A text volontary too long for only 1 line for my printer',Style);  Maybe also related: http://bugs.freepascal.org/view.php?id=13826 ---------------------------------------------------------------------- dav999 · 2009-07-10 18:41 Hello i have add the style but have the same problem for the patch i must take the psclip1.patch in /usr/lib/lazarus/lcl/, but after ? the official lazarus patch file aren't .diff ? Thanks David