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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Text objects in TImageEnVect char spacing

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
wvisser Posted - Dec 27 2011 : 11:37:04
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
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Dec 29 2011 : 02:18:51
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';
.....