Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
25d5fc7a
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看板
提交
25d5fc7a
编写于
9月 15, 2018
作者:
D
dmarkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8201801: RTL language (Hebrew) is presented from left to right
Reviewed-by: prr, psadhukhan
上级
1b17beb7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
1 deletion
+17
-1
src/share/classes/sun/font/SunLayoutEngine.java
src/share/classes/sun/font/SunLayoutEngine.java
+16
-1
src/share/classes/sun/font/TrueTypeFont.java
src/share/classes/sun/font/TrueTypeFont.java
+1
-0
未找到文件。
src/share/classes/sun/font/SunLayoutEngine.java
浏览文件 @
25d5fc7a
...
@@ -149,12 +149,27 @@ public final class SunLayoutEngine implements LayoutEngine, LayoutEngineFactory
...
@@ -149,12 +149,27 @@ public final class SunLayoutEngine implements LayoutEngine, LayoutEngineFactory
this
.
key
=
key
;
this
.
key
=
key
;
}
}
private
boolean
isAAT
(
Font2D
font
)
{
if
(
font
instanceof
TrueTypeFont
)
{
TrueTypeFont
ttf
=
(
TrueTypeFont
)
font
;
return
ttf
.
getDirectoryEntry
(
TrueTypeFont
.
morxTag
)
!=
null
||
ttf
.
getDirectoryEntry
(
TrueTypeFont
.
mortTag
)
!=
null
;
}
else
if
(
font
instanceof
PhysicalFont
)
{
PhysicalFont
pf
=
(
PhysicalFont
)
font
;
return
pf
.
getTableBytes
(
TrueTypeFont
.
morxTag
)
!=
null
||
pf
.
getTableBytes
(
TrueTypeFont
.
mortTag
)
!=
null
;
}
return
false
;
}
public
void
layout
(
FontStrikeDesc
desc
,
float
[]
mat
,
int
gmask
,
public
void
layout
(
FontStrikeDesc
desc
,
float
[]
mat
,
int
gmask
,
int
baseIndex
,
TextRecord
tr
,
int
typo_flags
,
int
baseIndex
,
TextRecord
tr
,
int
typo_flags
,
Point2D
.
Float
pt
,
GVData
data
)
{
Point2D
.
Float
pt
,
GVData
data
)
{
Font2D
font
=
key
.
font
();
Font2D
font
=
key
.
font
();
FontStrike
strike
=
font
.
getStrike
(
desc
);
FontStrike
strike
=
font
.
getStrike
(
desc
);
long
layoutTables
=
font
.
getLayoutTableCache
();
// Ignore layout tables for RTL AAT fonts due to lack of support in ICU
long
layoutTables
=
(((
typo_flags
&
0x80000000
)
!=
0
)
&&
isAAT
(
font
))
?
0
:
font
.
getLayoutTableCache
();
nativeLayout
(
font
,
strike
,
mat
,
gmask
,
baseIndex
,
nativeLayout
(
font
,
strike
,
mat
,
gmask
,
baseIndex
,
tr
.
text
,
tr
.
start
,
tr
.
limit
,
tr
.
min
,
tr
.
max
,
tr
.
text
,
tr
.
start
,
tr
.
limit
,
tr
.
min
,
tr
.
max
,
key
.
script
(),
key
.
lang
(),
typo_flags
,
pt
,
data
,
key
.
script
(),
key
.
lang
(),
typo_flags
,
pt
,
data
,
...
...
src/share/classes/sun/font/TrueTypeFont.java
浏览文件 @
25d5fc7a
...
@@ -79,6 +79,7 @@ public class TrueTypeFont extends FileFont {
...
@@ -79,6 +79,7 @@ public class TrueTypeFont extends FileFont {
public
static
final
int
GPOSTag
=
0x47504F53
;
// 'GPOS'
public
static
final
int
GPOSTag
=
0x47504F53
;
// 'GPOS'
public
static
final
int
GSUBTag
=
0x47535542
;
// 'GSUB'
public
static
final
int
GSUBTag
=
0x47535542
;
// 'GSUB'
public
static
final
int
mortTag
=
0x6D6F7274
;
// 'mort'
public
static
final
int
mortTag
=
0x6D6F7274
;
// 'mort'
public
static
final
int
morxTag
=
0x6D6F7278
;
// 'morx'
/* -- Tags for non-standard tables */
/* -- Tags for non-standard tables */
public
static
final
int
fdscTag
=
0x66647363
;
// 'fdsc' - gxFont descriptor
public
static
final
int
fdscTag
=
0x66647363
;
// 'fdsc' - gxFont descriptor
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录