Font size too large to fit in cache

It is really a bug in the Android OS inside the Hardware Acceleration modules. I think that the best way is to ask the system to avoid HW acceleration on TextViews that contain large size text. To do so, just add in the code: TextView bigText = (TextView) findViewById(R.id.bigtext); bigText.setLayerType(View.LAYER_TYPE_SOFTWARE, null);

Android Studio/Emulator on macOS with ARM CPU M1

Good news ! Edit on 28 th of July 2021 🎉 🌈 Apple Silicon Support Now, there is an arm64 release version available for Android Studio Arctic Fox (2020.3.1) You can download it from here https://developer.android.com/studio#downloads Easy fix to use right architecture Tools -> SDK Manager -> SDK Tools (tab) -> Deselect ‘Android Emulator’ -> … Read more

Work around Canvas.clipPath() that is not supported in android any more

clipPath with hardware acceleration is only supported in API level 18 and higher, on API levels from 11 to 17 it needs to be turned off. The article you’ve mentioned contains a clue: If your application is affected by any of these missing features or limitations, you can turn off hardware acceleration for just the … Read more

Software rendering mode – WPF

Here’s what we did: private void Window_Loaded(object sender, RoutedEventArgs e) { if (ForceSoftwareRendering) { HwndSource hwndSource = PresentationSource.FromVisual(this) as HwndSource; HwndTarget hwndTarget = hwndSource.CompositionTarget; hwndTarget.RenderMode = RenderMode.SoftwareOnly; } } It worked OK for us, EXCEPT… This needs to be done for every Window. In .NET 3.5 there was no way to make the setting take … Read more