Page 1 of 1

Invalid font file after updating from 1.34 to 1.36

Posted: Mon Jun 05, 2023 11:55 am
by Sciti
After updating to 1.36 log spams

Code: Select all

	Invalid font location: /usr/share/zoneminder/www/fonts/default.zmfnt 
then i just wget default.zmfnt from github into this folder. Now log spams "Invalid font file". But fonts on web page looks ok, didn't see any occurrences of broken font on web pages.
Tried to turn on verbose logging, but no additional info was printed. What can i do with that?

Re: Invalid font file after updating from 1.34 to 1.36

Posted: Mon Jun 05, 2023 12:17 pm
by Magic919
Check FONT_FILE_LOCATION in config.

Make sure the font file is there.

Mine is /usr/share/zoneminder/fonts/ ,so slightly different.

Re: Invalid font file after updating from 1.34 to 1.36

Posted: Mon Jun 05, 2023 12:35 pm
by Sciti
Magic919 wrote: Mon Jun 05, 2023 12:17 pm Check FONT_FILE_LOCATION in config.

Make sure the font file is there.

Mine is /usr/share/zoneminder/fonts/ ,so slightly different.
Thanks, found default.zmfnt at share/zoneminder/fonts/, changed FONT_FILE_LOCATION from zoneminder/www/fonts to just zoneminder/fonts, now it works. But something wrong with this github font...

Re: Invalid font file after updating from 1.34 to 1.36

Posted: Mon Jun 05, 2023 1:47 pm
by Magic919
It's probably the method you used to acquire the file from GitHub. You likely grabbed a web page.

Re: Invalid font file after updating from 1.34 to 1.36

Posted: Fri Jun 09, 2023 9:02 am
by Sciti
Magic919 wrote: Mon Jun 05, 2023 1:47 pm It's probably the method you used to acquire the file from GitHub. You likely grabbed a web page.
Nope, i see zmfnt file in folder

Re: Invalid font file after updating from 1.34 to 1.36

Posted: Fri Jun 09, 2023 9:18 am
by Magic919
Of course it's a file. It's a question of what it contains.

Run the file command on it and see what it reports.

Code: Select all

file  /usr/share/zoneminder/fonts/default.zmfnt

Re: Invalid font file after updating from 1.34 to 1.36

Posted: Tue Jun 13, 2023 5:46 am
by Sciti
Magic919 wrote: Fri Jun 09, 2023 9:18 am Of course it's a file. It's a question of what it contains.

Run the file command on it and see what it reports.

Code: Select all

file  /usr/share/zoneminder/fonts/default.zmfnt
Yeah, that was it! Didn't even thought about that, thanks

Re: Invalid font file after updating from 1.34 to 1.36

Posted: Fri Oct 13, 2023 8:46 am
by lbm
Magic919 wrote: Mon Jun 05, 2023 12:17 pm Check FONT_FILE_LOCATION in config.

Make sure the font file is there.

Mine is /usr/share/zoneminder/fonts/ ,so slightly different.
Thanks for the tip. Fixed it for me. My location is now "/usr/share/zoneminder/www/fonts/default.zmfnt". (This happened after I've updated from Debian11 to Debian12)