我可以在Jtext
区域显示印地语,马拉雅拉姆语字体。
但是当我试图显示Burmease字体时,它只显示正方形。有没有要添加的库jar?
答案 0 :(得分:0)
使用的字体是否包含缅甸字符?在这种情况下,您只需要在文本区域中键入Burmese来检查。
// minimumBrightnessRatio between 0 and 1. 1 = all white, 0 = any possible color. Best results would be 0.5.
public int getRandomColor(float minimumBrightnessRatio)
{
Random rndm = new Random();
final int minimumColorValue = (int)(255f * minimumBrightnessRatio);
final int variableColorValue = 255 - minimumColorValue;
final int r = minimumColorValue + rndm.nextInt(variableColorValue);
final int g = minimumColorValue + rndm.nextInt(variableColorValue);
final int b = minimumColorValue + rndm.nextInt(variableColorValue);
return Color.argb(255, r, g, b);
}