You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
android.text.Layout: actually measure text sizes
This commit is contained in:
@@ -69,7 +69,7 @@ public class GskCanvas extends Canvas {
|
||||
|
||||
@Override
|
||||
public void drawText(String text, float x, float y, Paint paint) {
|
||||
native_drawText(snapshot, text, x, y, paint.skia_paint);
|
||||
native_drawText(snapshot, text, x, y, paint.skia_paint, paint.skia_font);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -102,6 +102,6 @@ public class GskCanvas extends Canvas {
|
||||
protected native void native_save(long snapshot);
|
||||
protected native void native_restore(long snapshot);
|
||||
protected native void native_drawLine(long snapshot, float startX, float startY, float stopX, float stopY, long paint);
|
||||
protected native void native_drawText(long snapshot, String text, float x, float y, long paint);
|
||||
protected native void native_drawText(long snapshot, String text, float x, float y, long paint, long font);
|
||||
protected native void native_drawRoundRect(long snapshot, float left, float top, float right, float bottom, float rx, float ry, int color, float strokeWidth);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user