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
|