Maybe instead of a hardcoded constant you can use the `android:tag` attribute of your custom view? then, in the java code you can use `View.getTag()` to extract the font face out.