Skip to content

Indic font rendering incorrectly #13010

@neevany

Description

@neevany

Bevy version

11afe16 / master

Relevant system information

SystemInfo { os: "MacOS 14.4.1 ", kernel: "23.4.0", cpu: "Apple M2 Pro"}
AdapterInfo { name: "Apple M2 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

What you did

https://fonts.google.com/noto/specimen/Noto+Sans+Telugu

let text_style = TextStyle {
    font: asset_server.load("fonts/NotoSansTelugu-Medium.ttf"),
    font_size: 60.0,
    ..default()
};
parent.spawn(TextBundle {
  text: Text {
      sections: vec![TextSection::new("రాష్ట్రముల మధ్య", text_style.clone())],
      ..default()
  },
  ..default()
});

What went wrong

the font is not rendering correctly

  • what were you expecting?
    to render font correctly like in the screenshot from google fonts site
Screenshot 2024-04-18 at 8 01 54 AM
  • what actually happened?
    it did not render font correctly like in this screenshot
Screenshot 2024-04-18 at 8 00 53 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TextRendering and layout for charactersC-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions