How can I prevent changing the font in the application from the system. The client has installed a different system font and this affects the program. The program has a third-party font that is loaded into Assets and the font is specified for each TextView via the TypeFace class. enter image description here

  • five
    If the font is installed by force, using the root of the law, then this can not be avoided. If the user wants all applications to be displayed in his own font, who are you to deny it? - Vladyslav Matviienko
  • one
    Here's a rather perverted solution: You can try to override the TextView methods that respond to the use of a particular typeface , and substitute your own. You can also override the draw() method from the normal View , and manually draw text on the outline with the type of your choice. But personally, I would send the customer to a well-known recess, since it is not in his (your) competence - to force the user to use a specific font - Vladyslav Matviienko

0