Skip to content

[Impeller] testFontRenderingWhenSuppliedWithBogusFont scenario test fails with impeller turned on, does not render bogus font as system font #113250

@jmagman

Description

@jmagman

testFontRenderingWhenSuppliedWithBogusFont is failing with impeller turned on.

The test "tries to draw some text in a bogus font. Should end up drawing in the system default font."

    final ParagraphBuilder paragraphBuilder =
        ParagraphBuilder(ParagraphStyle(fontFamily: "some font that doesn't exist"))
          ..pushStyle(TextStyle(fontSize: 80))
          ..addText('One more thing...')
          ..pop();
    final Paragraph paragraph = paragraphBuilder.build();

https://github.com/flutter/engine/blob/05ff95d4496fa5f4bc1591fdbd06bfb1bcc249fe/testing/scenario_app/lib/src/bogus_font_text.dart#L12

$ ./flutter/tools/gn --no-goma --unoptimized --ios --simulator && ninja -C out/ios_debug_sim_unopt scenario_app
$ open out/ios_debug_sim_unopt/scenario_app/Scenarios/Scenarios.xcodeproj

Add FLTEnableImpeller => YES to ios_debug_sim_unopt/scenario_app/Scenarios/Scenarios/Info.plist.

Run -[BogusFontTextTest testFontRenderingWhenSuppliedWithBogusFont]
Should look like this:

but with impeller on shows a black screen:

See flutter/engine#22033 and #60013

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions