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
 Copyright Font

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
skippix Posted - Sep 30 2012 : 02:24:10
I've been playing around with the Copyright demo, but can't find a way to override the default 'Times New Roman' font. I'm trying to do this near line 350 in the UseObjects procedure. Any ideas? Thanks!
4   L A T E S T    R E P L I E S    (Newest First)
skippix Posted - Oct 01 2012 : 17:26:10
Got it!

By adding the assignment and update at line 517, I save myself a click ;-)

(and that puts me one step closer to being able to turn this into a batch process!)

Thanks again!
skippix Posted - Oct 01 2012 : 17:03:51
Thanks, William, for your reply. I'll try that and let you know how it works out.
w2m Posted - Oct 01 2012 : 16:35:33
To change the copyright font add a TPopupmenu to the form, Add a MenuItem called "Font"1 and give it a caption of "Font", then assign the ImageENVect1.Popupmenu to Popupmenu1, then add this code:

procedure TForm1.Font1Click(Sender: TObject);
begin
  ImageENVect.ObjFontName[-2] := 'Arial'; // 'Times New Roman';
  // the font name can be any valid font name
  ImageENVect.Update;
end;


After adding the copyright to the image scrolldown to the bottom of the image and select the "Copyright Object" and activate the popupmenu with a rightmouseclick and select "Font".

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
klausdoege Posted - Oct 01 2012 : 15:19:51
Hello,

the example perfectly works.
If you would like to change the font,
then by useobjects in line 329 and by useGDI in line 463
the Fontname change.

Klaus
www.klausdoege.de