Invalid font file after updating from 1.34 to 1.36

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
Sciti
Posts: 4
Joined: Mon Jun 05, 2023 11:04 am

Invalid font file after updating from 1.34 to 1.36

Post 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?
Attachments
Screenshot from 2023-06-05 14-52-21.png
Screenshot from 2023-06-05 14-52-21.png (101.14 KiB) Viewed 1301 times
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Invalid font file after updating from 1.34 to 1.36

Post by Magic919 »

Check FONT_FILE_LOCATION in config.

Make sure the font file is there.

Mine is /usr/share/zoneminder/fonts/ ,so slightly different.
-
Sciti
Posts: 4
Joined: Mon Jun 05, 2023 11:04 am

Re: Invalid font file after updating from 1.34 to 1.36

Post 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...
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Invalid font file after updating from 1.34 to 1.36

Post by Magic919 »

It's probably the method you used to acquire the file from GitHub. You likely grabbed a web page.
-
Sciti
Posts: 4
Joined: Mon Jun 05, 2023 11:04 am

Re: Invalid font file after updating from 1.34 to 1.36

Post 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
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: Invalid font file after updating from 1.34 to 1.36

Post 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
-
Sciti
Posts: 4
Joined: Mon Jun 05, 2023 11:04 am

Re: Invalid font file after updating from 1.34 to 1.36

Post 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
lbm
Posts: 87
Joined: Mon Mar 26, 2018 7:44 pm

Re: Invalid font file after updating from 1.34 to 1.36

Post 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)
Post Reply