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
 Getting/setting annotation font size in points?

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
stuartclennett@gmail.com Posted - Jan 23 2017 : 05:19:20
Hi,

I'm wondering if there's a way to set the font size of an annotation in points (i.e. the Font.Size) property as well as the ObjFontHeight[idx] ?

When I retrieve the ObjfontHeight of an object is often returns -16, indicating that there's a size property available?

Thanks
Stuart

Stuart Clennett
Delphi Berlin 10.1
4   L A T E S T    R E P L I E S    (Newest First)
stuartclennett@gmail.com Posted - Jan 24 2017 : 04:37:13
Thanks Nigel - I realise I spoke before searching. I will look at that link thanks.

I also found this in case anyone else is wondering:

http://stackoverflow.com/questions/2944149/converting-logfont-height-to-font-size-in-points

Cheers
Stu

Stuart Clennett
Delphi Berlin 10.1
xequte Posted - Jan 24 2017 : 04:31:21
Please see:

https://msdn.microsoft.com/en-us/library/windows/desktop/dd145037(v=vs.85).aspx

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
stuartclennett@gmail.com Posted - Jan 24 2017 : 04:27:44
Hi Nigel,

I'm just trying to hook up a spin edit to show and set the font height of the selected object. When I select an object, I usually get -16 in the spin edit.

I'm not familiar with a "logfont lfHeight" -- is there some formula to convert to a recognisable "point size" ?

Cheers

Stuart Clennett
Delphi Berlin 10.1
xequte Posted - Jan 23 2017 : 20:08:28
Hi Stuart

ObjFontHeight simply points to a Logfont lfHeight, so negative values should be supported. What issues do you encounter when doing so?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com