Skip to content

Commit 01c9f81

Browse files
committed
fix(ios): prevent some html labels to use Times New Roman font instead of default
1 parent 475f4a7 commit 01c9f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/label.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ export class Label extends LabelBase {
401401
}
402402
const fontWeight = this.style.fontWeight;
403403
const familyName =
404-
this.style.fontFamily || (this.style.fontInternal && this.style.fontInternal.fontFamily) || font?.familyName;
404+
this.style.fontFamily || (this.style.fontInternal && this.style.fontInternal.fontFamily) || undefined;
405405
const result = createNativeAttributedString(
406406
{
407407
text: this.html,

0 commit comments

Comments
 (0)