Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
6a8ec843
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6a8ec843
编写于
6月 29, 2010
作者:
P
prr
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6943487: NPE in makeMultiCharsetString while printing on linux
Reviewed-by: igor, jgodinez
上级
da5f5b43
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
17 deletion
+5
-17
src/share/classes/sun/awt/PlatformFont.java
src/share/classes/sun/awt/PlatformFont.java
+4
-4
src/share/classes/sun/java2d/HeadlessGraphicsEnvironment.java
...share/classes/sun/java2d/HeadlessGraphicsEnvironment.java
+1
-13
未找到文件。
src/share/classes/sun/awt/PlatformFont.java
浏览文件 @
6a8ec843
...
...
@@ -25,10 +25,10 @@
package
sun.awt
;
import
java.awt.GraphicsEnvironment
;
import
java.awt.peer.FontPeer
;
import
java.util.Locale
;
import
java.util.Vector
;
import
sun.font.SunFontManager
;
import
sun.java2d.FontSupport
;
import
java.nio.CharBuffer
;
import
java.nio.ByteBuffer
;
...
...
@@ -57,9 +57,9 @@ public abstract class PlatformFont implements FontPeer {
protected
static
String
osVersion
;
public
PlatformFont
(
String
name
,
int
style
){
GraphicsEnvironment
ge
=
GraphicsEnvironment
.
getLocalGraphicsEnvironment
();
if
(
ge
instanceof
FontSupport
)
{
fontConfig
=
((
FontSupport
)
ge
).
getFontConfiguration
();
SunFontManager
sfm
=
SunFontManager
.
getInstance
();
if
(
sfm
instanceof
FontSupport
)
{
fontConfig
=
((
FontSupport
)
sfm
).
getFontConfiguration
();
}
if
(
fontConfig
==
null
)
{
return
;
...
...
src/share/classes/sun/java2d/HeadlessGraphicsEnvironment.java
浏览文件 @
6a8ec843
...
...
@@ -59,17 +59,12 @@ import java.awt.Rectangle;
* Headless decorator implementation of a SunGraphicsEnvironment
*/
public
class
HeadlessGraphicsEnvironment
extends
GraphicsEnvironment
implements
FontSupport
{
public
class
HeadlessGraphicsEnvironment
extends
GraphicsEnvironment
{
private
GraphicsEnvironment
ge
;
private
FontSupport
fontSupport
;
public
HeadlessGraphicsEnvironment
(
GraphicsEnvironment
ge
)
{
this
.
ge
=
ge
;
if
(
ge
instanceof
FontSupport
)
{
fontSupport
=
(
FontSupport
)
ge
;
}
}
public
GraphicsDevice
[]
getScreenDevices
()
...
...
@@ -101,13 +96,6 @@ public class HeadlessGraphicsEnvironment extends GraphicsEnvironment
public
String
[]
getAvailableFontFamilyNames
(
Locale
l
)
{
return
ge
.
getAvailableFontFamilyNames
(
l
);
}
public
FontConfiguration
getFontConfiguration
()
{
if
(
fontSupport
!=
null
)
{
return
fontSupport
.
getFontConfiguration
();
}
return
null
;
}
/* Used by FontManager : internal API */
public
GraphicsEnvironment
getSunGraphicsEnvironment
()
{
return
ge
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录