"The top image is the editor screen, and the bottom one is the preview screen. The part marked in red is where I wrote
[font=fontname]times[/font] to editor screen.
Putting aside the weird quirks—like having to remove hyphens (“-”) from the resource name for it to be recognized, and having to remove spaces inside the font=fontname tag even if the actual resource name has them—the main issue is that the BBText is failing to load the font when running the game."
this is first BBtext
this is second BBtext
check the console by pressing control shift i, and tell me what it says when you run the game.
(also, are you using the web version or desktop version?)
can i have the project to see if i can reproduce it?
here. and I repeatedly changed the name of the resource in [font=] to ‘ttf’, the change did not take effect immediately; I had to delete the instance and summon it again for the text to appear. It seemed that [font=] should not contain ‘.ttf’ or a full stop (‘.’).
https://drive.google.com/file/d/1tZtBw67fTezlnqocrrWYvz2B6YgPJS5i/view?usp=sharing
Whats the intended (or expected) result when i run this?
This event code doesn’t serve any particular purpose. I was just testing it out using any old platformer preset.
doesnt matter. i mean what should i see?
you see the ‘BB Text’ fields for the field objects and the resource .ttf named ‘font name’ and The object names are “New BBtext” and “New BBtext2”. The .ttf names are the font names.
If you look at the section labelled ‘time’ in New BBtext2, you’ll see that the font is applied in the editor but not in the preview.
If the font for the ‘times’ section also appears as ‘Normal’ in the editor, please remove the space from the ‘font name’->“fontname” on the resources page, then delete and re-create the BBtext2 object.
it looks like this to me…
go to resources page and changed name “font name” → “fontname” remove space
and remove BBtext2. and recreate BBtext.
and put in the BBcord text
bold italic [size=15]smaller[/size] [font=fontname]times[/font] font
[spacing=12]spaced out[/spacing]
[outline=yellow]outlined[/outline] [shadow=red]DropShadow[/shadow]
you see the text “times” is changed in editor page.
but play preview game, there is just Normal “times”
Wrap this in “`” so i can copy it better
’ bold italic [size=15]smaller[/size] [font=fontname]times[/font] font
[spacing=12]spaced out[/spacing]
[outline=yellow]outlined[/outline] [shadow=red]DropShadow[/shadow]’
surround it with the character within the quotes i said, not the quotes itself.
lol whatever
yeah it does it, this is probably a bug
Since this issue occurred, the font remains in place even if the name is changed to ‘font name’ on the Resources page.
strange… however the gdevelop editor has always been really weird with resources, you might need to restart gdevelop and it would replace