changeset 2332 | 351abbbb12f3 |
parent 2292 | 87af4ad0ec98 |
child 2376 | ece7b87f1334 |
2331:e4941a7986d6 | 2332:351abbbb12f3 |
---|---|
726 |
726 |
727 numLines:= 0; |
727 numLines:= 0; |
728 |
728 |
729 if length(s) = 0 then s:= '...'; |
729 if length(s) = 0 then s:= '...'; |
730 TTF_SizeUTF8(Fontz[font].Handle, Str2PChar(s), w, h); |
730 TTF_SizeUTF8(Fontz[font].Handle, Str2PChar(s), w, h); |
731 if w<8 then w:= 8; |
|
731 j:= 0; |
732 j:= 0; |
732 if (length(s) > 20) then |
733 if (length(s) > 20) then |
733 begin |
734 begin |
734 w:= 0; |
735 w:= 0; |
735 i:= round(Sqrt(length(s)) * 2); |
736 i:= round(Sqrt(length(s)) * 2); |