@reify
    def fontscale(self):
        custom_fontscale = environ.get('KIVY_METRICS_FONTSCALE')
        if custom_fontscale:
            return float(custom_fontscale)

        if platform == 'android':
            from jnius import autoclass
            if USE_SDL2:
                PythonActivity = autoclass('org.kivy.android.PythonActivity')
            else:
                PythonActivity = autoclass('org.renpy.android.PythonActivity')
            config = PythonActivity.mActivity.getResources().getConfiguration()
            return config.fontScale

        return 1.0


#: Default instance of :class:`MetricsBase`, used everywhere in the code
#: .. versionadded:: 1.7.0
Test creating a display_image.
dataset/ETHPy150Open kivy/kivy/kivy/metrics.py/MetricsBase.fontscale--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/media/tests/test_models.py/ImageTest.test_create_display_size