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
 How to write unicode text?

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
aftereffectniko Posted - May 07 2013 : 13:25:29
How to write unicode text.? Help help
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - May 07 2013 : 14:13:17
Are you referring to general unicode support or drawing Unicode text?

If you are referring to general Unicode support, if you are using Delphi 2009 or higher all text (except for ImageEnVect Objects) is already Unicode. The simplest way is to upgrade if you are using Delphi version less than 2009. If you are referring to drawing Unicode text then try this:

procedure TForm1.ImageEnViewMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X,
  Y: Integer);
var
   iLayer: integer;
begin
  if (Text1.Down) and (Shift = [ssLeft]) then
  begin
    { Add fully transparent text layer }
    iLayer := ImageEnView.LayersCreateFromText(cxTextEdit1.Text,
      cxFontNameComboBox1.EditValue, cxFontSize1.EditValue,
      cxFontColorComboBox1.EditValue, AFontStyle,
      cxAddShadow1.EditValue, 4, 4, cxAngle1.EditValue, cxAntialias1.EditValue);
    ImageEnView.Layers[iLayer].Name := AnsiString('Layer ' + IntToStr(ImageEnView.LayersCount -
      1));
    ImageEnView.Update;
  end;
end;
William Miller
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html