ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Text objects in TImageEnVect char spacing
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

wvisser

Netherlands
8 Posts

Posted - Dec 27 2011 :  11:37:04  Show Profile  Reply
Hi,

I am using text objects in TImageEnVect.
I think I found a bug:
When applying italic style, the character interspacing is incorrect and due to the characters becoming wider, they overlap and the right part is sliced off the character every time. THis happend also in the online demo. See attached foto.


48.07 KB
Can this be fixed? or how to avoid it?

regards, WIlfried

wpjvisser

fab

1310 Posts

Posted - Dec 29 2011 :  02:18:51  Show Profile  Reply
There is a bug in the demo. In "Tfmain.btnAddTextClick" method insert this code:
ImageEnVect1.ObjMemoCharsBrushStyle[-1] := bsClear;


It must be inserted in:

.....
  if btnAddText.Down then
  begin
    ImageEnVect1.MouseInteractVt:=[miPutMemo];
    ImageEnVect1.ObjFontLocked[-1]:=false;
    ImageEnVect1.ObjMemoBorderStyle[-1]:=psClear;
    ImageEnVect1.ObjMemoCharsBrushStyle[-1] := bsClear;    // <<<< INSERT THIS
    tmpFont:=TFont.Create;
    tmpFont.Color:=clRed;
    tmpFont.Size:=14;
    tmpFont.Name:='Arial';
.....
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: