Skip to content

Span does not support font-weight style correctly #6014

@atheros

Description

@atheros

Platform: Android
tns-core-modules: 4.1.0
nativescript-angular: ~6.0.0
tns-android: 4.0.1
tns cli: 4.0.1

font-weight style seems to be ignored in . It works on simple labels.
NativeScript Playground link: https://play.nativescript.org/?template=play-ng&id=2XWIuG

The above link demonstrate the problem, font-weights 700 and 800 are interpreted as bold, all others are interpreted as normal.

<Label><FormattedString><Span text="Font Weight 100" style="font-weight: 100"></Span></FormattedString></Label>
<Label><FormattedString><Span text="Font Weight 200" style="font-weight: 200"></Span></FormattedString></Label>
<Label><FormattedString><Span text="Font Weight 300" style="font-weight: 300"></Span></FormattedString></Label>
<Label><FormattedString><Span text="Font Weight 400" style="font-weight: 400"></Span></FormattedString></Label>
<Label><FormattedString><Span text="Font Weight 500" style="font-weight: 500"></Span></FormattedString></Label>
<Label><FormattedString><Span text="Font Weight 600" style="font-weight: 600"></Span></FormattedString></Label>
<Label><FormattedString><Span text="Font Weight 700" style="font-weight: 700"></Span></FormattedString></Label>
<Label><FormattedString><Span text="Font Weight 800" style="font-weight: 800"></Span></FormattedString></Label>

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions