Textbox font change automatically after changing input type of textbox

I am facing some issue related to textbox. I have set textbox input type to number (5) , when user click on hide or visibility off button , it will change textbox input type to password (2). But if a user click on hide or visibility off button before entering something on textbox, the hint text font change automatically . I am using custom font Quicksand regular for textbox. How can i solve this problem? Has someone faced this issue before? I have uploaded the video with this Topic. Waiting for sincere help.