Skip to content

Commit 896aa1e

Browse files
committed
fix: ios fix
1 parent 772d692 commit 896aa1e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/label.ios.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ export class Label extends LabelBase {
137137
fontSize = this.style.fontInternal.fontSize;
138138
}
139139
}
140-
console.log('span', fontFamily, fontSize);
140+
// console.log('span', fontFamily, fontSize);
141141

142-
htmlString = `<span style="font-family: ${fontFamily}}; font-size:${fontSize};">${htmlString}</span>`;
142+
htmlString = `<span style="font-family: ${fontFamily}; font-size:${fontSize};">${htmlString}</span>`;
143143
const nsString = NSString.stringWithString(htmlString);
144-
console.log('updateHTMLString1', htmlString);
144+
// console.log('updateHTMLString1', htmlString);
145145
const nsData = nsString.dataUsingEncoding(NSUTF8StringEncoding);
146146
const options = {
147147
[DTDefaultTextAlignment]: kCTLeftTextAlignment,
148148
// [NSTextSizeMultiplierDocumentOption]: 1,
149149
// [DTIgnoreLinkStyleOption]: false,
150-
[DTDefaultFontFamily]: fontFamily,
150+
// [DTDefaultFontFamily]: fontFamily,
151151
// [NSFontAttributeName]: fontFamily,
152152
[NSTextSizeMultiplierDocumentOption]: 17 / 12.0,
153153
[DTUseiOS6Attributes]: true,

0 commit comments

Comments
 (0)