Font Size Based on Screen Density in Mobile

I know how to determine screen size and platform based on compiler directive and Component information.

I want to determine screen density so that I can properly set some of the default text font sizes, which can appear especially small on devices such as the Android Nexus 7" tablets.

Unfortunately, I cannot globally increase the text size for large screen resolution becuase that would also affect large desktop implementations that have large size and low density.

Do you know how to choose text size based on all of the available factors?

Any ideas?