Can I detect if a device has the "High-contrast fonts" system setting enabled?
Background:
Some of my users reported that icons were not working correctly in my app, and I eventually discovered that they had turned on the Android "High-contrast fonts" accessibility setting. That feature changes text from a custom color to outlined black or white to make it more readable.
I use the Material and FontAwesome fonts to render icons in various colors, so this messed up my app.
I have now replaced those font icons with corresponding bitmaps (rendered on the fly), and that fixes things on some phones, but other phones (either newer Android versions or Samsung phones, haven't determined which yet) still convert those icon bitmaps to black or white, which is really annoying (and beyond the stated "high-contrast fonts" meaning).
Not sure if I can work around that, so I'm thinking that if I can detect the "high-contrast fonts" settings, I can at least inform users of the problem, and they can then decide if they want to turn it off themselves.
Any thoughts? Thanks!
Background:
Some of my users reported that icons were not working correctly in my app, and I eventually discovered that they had turned on the Android "High-contrast fonts" accessibility setting. That feature changes text from a custom color to outlined black or white to make it more readable.
I use the Material and FontAwesome fonts to render icons in various colors, so this messed up my app.
I have now replaced those font icons with corresponding bitmaps (rendered on the fly), and that fixes things on some phones, but other phones (either newer Android versions or Samsung phones, haven't determined which yet) still convert those icon bitmaps to black or white, which is really annoying (and beyond the stated "high-contrast fonts" meaning).
Not sure if I can work around that, so I'm thinking that if I can detect the "high-contrast fonts" settings, I can at least inform users of the problem, and they can then decide if they want to turn it off themselves.
Any thoughts? Thanks!