@FONT issue with Hollywood 6 on AROS

Report any Hollywood bugs here
Post Reply
ntromans
Posts: 32
Joined: Fri Jan 11, 2013 12:06 am

@FONT issue with Hollywood 6 on AROS

Post by ntromans » Tue Feb 24, 2015 12:23 am

There seems to be a probelm with the @FONT pre-processor command then compiling a script using the AROS version of Hollywood (Icaros 2); the script compiles, but on execution is throws up a requester saying 'Unknown section in applet!'. This occurs when compiling from AROS for either AROS or OS3 (haven't tried the other platforms). I know it is the @FONT command as if it is commented out from the script it executes. The script worked fine under 5.3 and also works if 'display' is selected instead of 'compile'.

Nigel.

User avatar
airsoftsoftwair
Posts: 3121
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: @FONT issue with Hollywood 6 on AROS

Post by airsoftsoftwair » Tue Feb 24, 2015 4:33 pm

Which font type are you using? Bitmap font or true type font? Should the font be linked to the applet/executable or not?

ntromans
Posts: 32
Joined: Fri Jan 11, 2013 12:06 am

Re: @FONT issue with Hollywood 6 on AROS

Post by ntromans » Thu Feb 26, 2015 12:34 am

Sorry - should have given full details in the first post. it's a true-type fonts I'm trying to link into the program:

@FONT 1,"Bitstream Vera Sans Roman",10,{engine = #FONTENGINE_INBUILT}

Cheers,
Nigel.

User avatar
airsoftsoftwair
Posts: 3121
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: @FONT issue with Hollywood 6 on AROS

Post by airsoftsoftwair » Thu Feb 26, 2015 7:33 pm

Ok, I can confirm this here. It only happens with TrueType fonts. As a workaround, specify the path to the *.ttf file directly, e.g.

Code: Select all

@FONT 1, "FONTS:TrueType/VeraSans.ttf", 10
Then it should work. The issue will be fixed for the next update.

ntromans
Posts: 32
Joined: Fri Jan 11, 2013 12:06 am

Re: @FONT issue with Hollywood 6 on AROS

Post by ntromans » Sat Feb 28, 2015 3:06 pm

With the work-around, that's working fine now.

Many thanks!
Nigel.

User avatar
airsoftsoftwair
Posts: 3121
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: @FONT issue with Hollywood 6 on AROS

Post by airsoftsoftwair » Thu Mar 05, 2015 4:48 pm

This is a very critical bug since it can lead to corrupt executables/applets and it has been fixed now. See here how to update and who should update:
http://forums.hollywood-mal.com/viewtop ... t=30#p4894

Post Reply