Skip to content

[UGUI] Text scaling with rem is not the same as in web browsers #70

@Muchaszewski

Description

@Muchaszewski

The rem scaling is not as in the web browsers. Generally, the text is too big in ReactUnity.

I will discuss the following text with the only variable as font-size.

<span style="font-size: medium;">Go to src/index.tsx to edit this file</span>

font-size: medium is computed as 1rem which is equal to 16px.

In ReactUnity while using UGUI it's computed as 24px which is too big compared to Chrome.
image

When manually changed to proper 16px they look almost identical.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    browser-renderingIssues where there is an incompatibility between how browser renders the UI and how ReactUnity does

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions