It is currently Sun Oct 25, 2020 2:28 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: [PB5.7.2] Loadfont returns correct even without correct font
PostPosted: Thu Oct 08, 2020 2:40 pm 
Offline
Enthusiast
Enthusiast

Joined: Tue May 20, 2008 2:12 am
Posts: 667
Location: Cologne, Germany
Please try

Code:
Debug LoadFont(0,"test",20)


with test being a small file with this content:

Code:
var data = [{"a":"b"}];


I get a non-zero handle on macOS Catalina, which is not correct, I assume.

Code:
Debug IsFont(0)


returns a non-zero value as well, which is not correct, I assume.

Code:
Debug IsFont(FontID(0))


Will return "0", which is correct.

_________________
Regards,
JamiroKwai


Top
 Profile  
Reply with quote  
 Post subject: Re: [PB5.7.2] Loadfont returns correct even without correct
PostPosted: Sun Oct 11, 2020 7:02 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Aug 07, 2003 7:01 pm
Posts: 3156
Location: United Kingdom
I think Windows does something similar. It's like it finds an alternative font and always loads 'correctly'. It would be good if there was a command to check if the real font loaded or if an alternative was used.

_________________
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye