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
 TImageEnView same code produces different sized fonts in different applications
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bpolky

Malaysia
2 Posts

Posted - Oct 31 2025 :  07:37:47  Show Profile  Reply
I have a code library that creates a watermark image.

IV := TImageEnView.Create(Nil);
IV.IEBitmap.Width := 1600;
IV.IEBitmap.Height := 1600;
TextStr := 'Copyright Copyright Copyright Copyright Copyright Copyright Copyright Copyright';
IV.IEBitmap.FillRect(0, 0, IV.IEBitmap.Width, IV.IEBitmap.Height, clBlack);
IV.IEBitmap.Canvas.Font.Name := 'Ariel';
IV.IEBitmap.Canvas.Font.Size := 16;
IV.IEBitmap.Canvas.Font.Color := clWhite;
IV.IEBitmap.Canvas.Font.Style := [];
IV.IEBitmap.Canvas.TextFlags := 0;
IV.IEBitmap.Canvas.Brush.Style := bsClear;
IV.IEBitmap.Canvas.TextOut(XPos, YPos, TextStr);

I call this code from different applications, but the font size produced is quite different.

It is on the same computer, so everything else should be the same.

Is there some default setting for the TImageEnView that could affect the size of the text that could explain this.



Bruce Polkinghorne

xequte

39234 Posts

Posted - Nov 02 2025 :  19:54:16  Show Profile  Reply
Hi

Hmm, a few things...

- Ensure you specify the name correctly or it may substitute, i.e. "Arial"
- Is ImageEnView1.Zoom 100% ?
- Can you save the result to file from these different computers and attach them?

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: