We are facing font issue in our java swing application in linux. Kindly help to solve issue. In our application we are explicity setting font as 'Arial' for labels and others in swing Application. Since Arial is not available in linux so it picks 'Lucida Sans Regular' as default font of java due to font fallback mechanism. But as we upgrade our jdk version from 1.5 to 1.7, we are facing the issue with display in our application. It is now picking up 'Deja vu' as default font. Due to this our application is not displaying correctly in linux.
Can somebody help to set font from specific directory. I am planning to put font in one of our application directory so that it will pick font from directory. I don't want to modify all java files where we need to replace all instance of 'Arial' to 'Lucida Sans Regular'. There might be some way in java application to set its own font fall back mechanism.