We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ada7078 commit 7ea421aCopy full SHA for 7ea421a
src/ui-canvas/canvas.android.ts
@@ -192,6 +192,9 @@ export class Paint extends ProxyClass<android.graphics.Paint> {
192
super();
193
if (paint) {
194
this.mNative = new android.graphics.Paint(paint.getNative());
195
+ //we need to clone the typeface or it is shared
196
+ const nTypeface = paint.font.getAndroidTypeface();
197
+ this.mNative.setTypeface(nTypeface);
198
} else {
199
this.mNative = new android.graphics.Paint(1); //android.graphics.Paint.ANTI_ALIAS_FLAG
200
}
0 commit comments