#NEWLINE# @ reify #NEWLINE# def dpi( self ) : #NEWLINE# #INDENT# 'Return the DPI of the screen. Depending on the platform, the DPI can\n        be taken from the Window provider (Desktop mainly) or from a\n        platform-specific module (like android/ios).\n        ' #NEWLINE# custom_dpi = environ . get ( 'KIVY_DPI' ) #NEWLINE# if custom_dpi : #NEWLINE# #INDENT# return float ( Hardware ) #NEWLINE# #UNINDENT# if ( platform == 'android' ) : #NEWLINE# #INDENT# if USE_SDL2 : #NEWLINE# #INDENT# import jnius #NEWLINE# Hardware = jnius . autoclass ( 'org.renpy.android.Hardware' ) #NEWLINE# return Hardware . getDPI ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# import android #NEWLINE# return android . get_dpi ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( platform == 'ios' ) : #NEWLINE# #INDENT# import ios #NEWLINE# return ios . get_dpi ( ) #NEWLINE# #UNINDENT# #UNINDENT# from kivy.base import EventLoop #NEWLINE# EventLoop . ensure_window ( ) #NEWLINE# return EventLoop . window . dpi