add lots of java APIs needed for Whatsapp

This commit is contained in:
Julian Winkler
2024-06-15 22:32:01 +02:00
parent b81f53e4b2
commit bb50bbfa91
61 changed files with 383 additions and 71 deletions

View File

@@ -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; }