Skip to content

Commit e1914e7

Browse files
author
farfromrefuge
committed
chore: needed for last commits
1 parent e50fbde commit e1914e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ui-canvas/canvas.android.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,13 @@ export class Paint extends ProxyClass<android.graphics.Paint> {
219219
args[3] = createColorParam(args[3]);
220220
}
221221
}
222+
setTextSize(size){}
222223
setFont(font: Font) {
223224
this.mFontInternal = font;
224225
if (this.handlesFont) {
225226
return;
226227
}
227-
this.mNative.setTextSize(font.fontSize);
228+
this.setTextSize(font.fontSize);
228229
this.mNeedsFontUpdate = true;
229230
}
230231
getFont() {
@@ -300,7 +301,7 @@ export class Paint extends ProxyClass<android.graphics.Paint> {
300301
this.mNative.setStyle(value);
301302
}
302303
set textSize(value: number) {
303-
this.mNative.setTextSize(value);
304+
this.setTextSize(value);
304305
}
305306
get textSize() {
306307
return this.getTextSize();

0 commit comments

Comments
 (0)