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
add lots of java APIs needed for Whatsapp
This commit is contained in:
@@ -88,6 +88,8 @@ public class Paint {
|
||||
public float measureText(char[] text, int index, int count) { return 10; }
|
||||
public float measureText(String text, int start, int end) { return 10; }
|
||||
public float measureText(String text) {
|
||||
if (skia_font == 0)
|
||||
skia_font = native_create_font();
|
||||
return native_measure_text(skia_font, text, 0, text.length(), skia_paint);
|
||||
}
|
||||
public float measureText(CharSequence text, int start, int end) { return 10; }
|
||||
|
||||
Reference in New Issue
Block a user