# If font type checking possible for Native app

**URL:** <https://discuss.appium.io/t/if-font-type-checking-possible-for-native-app/36989>\
**Category:** Support\
**Created:** [August 5, 2022, 2:03pm UTC](https://discuss.appium.io/t/if-font-type-checking-possible-for-native-app/36989 "2022-08-05T14:03:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Conrad\_Braam](https://discuss.appium.io/user_avatar/discuss.appium.io/conrad_braam/32/7031_2.png) [@Conrad\_Braam](https://discuss.appium.io/u/Conrad_Braam)\
**Post date:** [August 5, 2022, 2:03pm UTC](https://discuss.appium.io/t/if-font-type-checking-possible-for-native-app/36989/1 "2022-08-05T14:03:56Z")

</div>

iOS or Android, either will be helpful. In a native app, is there any way to determine the font for elements? Marketing have a custom font that we use in our Native ios and androdi app. Sometimes the devs forget, just sometimes.

It seems to have been asked a few times over the years, and no answer.

- 2016 [.Is font size checking possible through appium](https://discuss.appium.io/t/is-font-size-checking-possible-through-appium/9851)
- 2017 [Is there a way to get the font size of text in the native view using appium?](https://discuss.appium.io/t/is-there-a-way-to-get-the-font-size-of-text-in-the-native-view-using-appium/17651) and again here [Is there any way to verify text font(bold) for android native apps using appium](https://discuss.appium.io/t/is-there-any-way-to-verify-text-font-bold-for-android-native-apps-using-appium/14759)
- 2021 [Can i test the Device resolution, font size , Orientation in Android and ios apps using test script](https://discuss.appium.io/t/can-i-test-the-device-resolution-font-size-orientation-in-android-and-ios-apps-using-test-script/35282)

Will Appium eyes do this “reliably” without guessing somehow? Or are we all just asking the wrong question.

---

<div class="post-metadata">

**Author:** ![wreed](https://discuss.appium.io/letter_avatar_proxy/v4/letter/w/919ad9/32.png) [@wreed](https://discuss.appium.io/u/wreed)\
**Post date:** [August 5, 2022, 4:17pm UTC](https://discuss.appium.io/t/if-font-type-checking-possible-for-native-app/36989/2 "2022-08-05T16:17:27Z")

</div>

Only way I can think is to compare screenshots. I would think such a test would be very fragile, and you would probably have to use the same device each time you tested.

Probably could use something like [https://imagemagick.org/](https://imagemagick.org/) to cut screenshot down to just the area needed and then mathematically compare the two.

Honestly this seems like it should be a unit test. If dev forgot setting, fail unit test before even building app.

---

<div class="post-metadata">

**Author:** ![mykola-mokhnach](https://discuss.appium.io/user_avatar/discuss.appium.io/mykola-mokhnach/32/4578_2.png) [@mykola-mokhnach](https://discuss.appium.io/u/mykola-mokhnach)\
**Post date:** [August 5, 2022, 8:34pm UTC](https://discuss.appium.io/t/if-font-type-checking-possible-for-native-app/36989/3 "2022-08-05T20:34:00Z")

</div>

I assume it would only be possible with drivers similar to Espresso, which have access to internal app codebase. Accessibility-based drivers, like xcuitest or uia2 only have access to what the accessibility layer exposes to them. Font type does not belong to the list of exposed things though.

---

<div class="post-metadata">

**Author:** ![Conrad\_Braam](https://discuss.appium.io/user_avatar/discuss.appium.io/conrad_braam/32/7031_2.png) [@Conrad\_Braam](https://discuss.appium.io/u/Conrad_Braam)\
**Post date:** [August 8, 2022, 9:29am UTC](https://discuss.appium.io/t/if-font-type-checking-possible-for-native-app/36989/4 "2022-08-08T09:29:31Z")

</div>

Yes. The selenium wire protocol was probably never designed for this class of information, so I’m not expecting platform wrappers for that would soon implement it either. At least not in the medium term. Which is why I’m interested in alternative tools, even some xcuitest undocumented magic might be of value here. Image diff tools I fear might just do their normal thing and only detect regressions, and merely create noise. I’m interested in any tool that can do static analysis on a per screenshot bases perhaps?
