提交 aef47390 编写于 作者: P prr

6940890: Java doesn't pick up the correct fontconfig files in latest Solaris Next builds

Reviewed-by: bae, igor
上级 d9301503
...@@ -95,6 +95,22 @@ public abstract class SunGraphicsEnvironment extends GraphicsEnvironment ...@@ -95,6 +95,22 @@ public abstract class SunGraphicsEnvironment extends GraphicsEnvironment
String line = br.readLine(); String line = br.readLine();
if (line.indexOf("OpenSolaris") >= 0) { if (line.indexOf("OpenSolaris") >= 0) {
isOpenSolaris = true; isOpenSolaris = true;
} else {
/* We are using isOpenSolaris as meaning
* we know the Solaris commercial fonts aren't
* present. "Solaris Next" (03/10) did not
* include these even though its was not
* OpenSolaris. Need to revisit how this is
* handled but for now as in 6ux, we'll use
* the test for a standard font resource as
* being an indicator as to whether we need
* to treat this as OpenSolaris from a font
* config perspective.
*/
String courierNew =
"/usr/openwin/lib/X11/fonts/TrueType/CourierNew.ttf";
File courierFile = new File(courierNew);
isOpenSolaris = !courierFile.exists();
} }
fis.close(); fis.close();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册