How to change font-size of timestamp in images

Forum for questions and support relating to the 1.27.x releases only.
Locked
grautvornix
Posts: 3
Joined: Thu Jul 24, 2014 8:16 am

How to change font-size of timestamp in images

Post by grautvornix »

Hello,

I just downloaded and installed it; great piece of software.

Only I cannot read the timestamps in the images created; I just can guess the time:
where can I adjust the font and the font-size of it ? Did not find anything neither on
Wikipage nor in the forum.

Any help much appreciated.

Thanks,
Marc
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: How to change font-size of timestamp in images

Post by BiloxiGeek »

grautvornix wrote:Hello,

I just downloaded and installed it; great piece of software.

Only I cannot read the timestamps in the images created; I just can guess the time:
where can I adjust the font and the font-size of it ? Did not find anything neither on
Wikipage nor in the forum.

Any help much appreciated.

Thanks,
Marc
I don't think that's possible. I asked the same question in the Feature Requests forum. http://www.zoneminder.com/forums/viewto ... =8&t=22014
grautvornix
Posts: 3
Joined: Thu Jul 24, 2014 8:16 am

Re: How to change font-size of timestamp in images

Post by grautvornix »

I investigated the code and I think the whole Annotation is done in zm_image.cpp in function Image::Annotate.
There is a define called "CHAR_HEIGHT" and CHAR_WIDTH, which are defined in zm_image.h as 11 resp. 6.

When I double the values (quick try), I get garbage as annotations, so it is not that easy and I think you are right:
the characters are hardcoded, i.e. no standard font is used which means there is definitely no configurationoption
for this font, which has to be improved ;-)

Maybe somebody else knows how to do it...

Thanks anyway,
Marc
Locked