What are the advantages/problems when using ImageView/ImageButton with TextView using custom made icon fonts in-app layouts.
There are many online services where we can upload images and create custom fonts, so instead of keeping different density drawable
, we only need a custom font, Is there any problem with this solution or any tweaks needed?
To apply custom fonts we can use createFromAsset method
Typeface font = Typeface.createFromAsset(getAssets(), "icons.ttf");
or use library like Calligraphy
NOTE: my question is about explanations/issues related to replacing ImageView/ImageButton icons with icon fonts using TextView Typeface.
The framework certainly favors the use of drawable rather than a custom font.
contentDescription
feature will be not available, and hence will cause accessibility problems.background
option required, usingcustom font
is not an option.