ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.76k stars 821 forks source link

Potthead Zombies - Missing fonts on upgrade screen. #17809

Open TomFulp opened 2 months ago

TomFulp commented 2 months ago

Describe the bug

In Potthead Zombies, complete Wave 1 to see the upgrade screen. Enjoy the music on your way!

In the Ruffle version, a lot of the fonts are missing on the upgrade screen.

Ruffe Version: Screenshot 2024-09-07 141458

Flash Player Version: Screenshot 2024-09-07 141626

Expected behavior

The fonts are expected to be visible in the Ruffle version.

Content Location

https://www.newgrounds.com/portal/view/574397/format/flash?emulate=flash

Affected platform

Self-hosted version

Operating system

Windows 11

Browser

Google Chrome Version 127.0.6533.119 (Official Build) (64-bit)

Additional information

No response

evilpie commented 2 months ago
2024-09-08T08:46:58.053454Z ERROR ruffle_core::avm2::events: Error dispatching event EventObject(EventObject { type: "render", class: flash.events::Event, ptr: 0x5607a52f53b0 }) to handler FunctionObject(FunctionObject { ptr: 0x5607a1fd41d0, name: Ok("fl.text::TLFTextField/http://ns.adobe.com/textLayout/internal/2008::repaint()") }) : TypeError: Error #1009: Cannot access a property or method of a null object reference. (accessing field: http://ns.adobe.com/textLayout/internal/2008::getEffectiveLineHeight)
    at flashx.textLayout.compose::TextFlowLine/http://ns.adobe.com/textLayout/internal/2008::getLineLeading()
    at flashx.textLayout.compose::BaseCompose/calculateLeadingParameters()
    at flashx.textLayout.compose::BaseCompose/finishComposeLine()
    at flashx.textLayout.compose::BaseCompose/fitLineToParcel()
    at flashx.textLayout.compose::SimpleCompose/composeNextLine()
    at flashx.textLayout.compose::BaseCompose/composeParagraphElementIntoLines()
    at flashx.textLayout.compose::BaseCompose/composeParagraphElement()
    at flashx.textLayout.compose::BaseCompose/composeBlockElement()
    at flashx.textLayout.compose::BaseCompose/composeInternal()
    at flashx.textLayout.compose::BaseCompose/composeTextFlow()
    at flashx.textLayout.compose::SimpleCompose/composeTextFlow()
    at flashx.textLayout.factory::FactoryDisplayComposer/http://ns.adobe.com/textLayout/internal/2008::callTheComposer()
    at flashx.textLayout.compose::StandardFlowComposer/internalCompose()
    at flashx.textLayout.compose::StandardFlowComposer/compose()
    at flashx.textLayout.factory::StringTextLineFactory/createTextLinesInternal()
    at flashx.textLayout.factory::StringTextLineFactory/createTextLines()
    at flashx.textLayout.container::TextContainerManager/compose()
    at flashx.textLayout.container::TextContainerManager/updateContainer()
    at fl.text::SingleTextContainerManager/update()
    at fl.text::TLFTextField/http://ns.adobe.com/textLayout/internal/2008::repaint()