Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
c8380bd3
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
1 年多 前同步成功
通知
0
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c8380bd3
编写于
10月 28, 2018
作者:
B
Behdad Esfahbod
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[color] Remove more dump-emoji cruft
上级
68f2c832
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
66 deletion
+0
-66
src/hb-ot-color-cbdt-table.hh
src/hb-ot-color-cbdt-table.hh
+0
-53
src/hb-ot-color-sbix-table.hh
src/hb-ot-color-sbix-table.hh
+0
-13
未找到文件。
src/hb-ot-color-cbdt-table.hh
浏览文件 @
c8380bd3
...
...
@@ -451,59 +451,6 @@ struct CBDT
return
true
;
}
inline
void
dump
(
void
(
*
callback
)
(
const
uint8_t
*
data
,
unsigned
int
length
,
unsigned
int
group
,
unsigned
int
gid
))
const
{
if
(
!
cblc
)
return
;
// Not a color bitmap font.
for
(
unsigned
int
i
=
0
;
i
<
cblc
->
sizeTables
.
len
;
++
i
)
{
const
BitmapSizeTable
&
sizeTable
=
cblc
->
sizeTables
[
i
];
const
IndexSubtableArray
&
subtable_array
=
cblc
+
sizeTable
.
indexSubtableArrayOffset
;
for
(
unsigned
int
j
=
0
;
j
<
sizeTable
.
numberOfIndexSubtables
;
++
j
)
{
const
IndexSubtableRecord
&
subtable_record
=
subtable_array
.
indexSubtablesZ
[
j
];
for
(
unsigned
int
gid
=
subtable_record
.
firstGlyphIndex
;
gid
<=
subtable_record
.
lastGlyphIndex
;
++
gid
)
{
unsigned
int
image_offset
=
0
,
image_length
=
0
,
image_format
=
0
;
if
(
!
subtable_record
.
get_image_data
(
gid
,
&
subtable_array
,
&
image_offset
,
&
image_length
,
&
image_format
))
continue
;
switch
(
image_format
)
{
case
17
:
{
const
GlyphBitmapDataFormat17
&
glyphFormat17
=
StructAtOffset
<
GlyphBitmapDataFormat17
>
(
this
->
cbdt
,
image_offset
);
callback
((
const
uint8_t
*
)
&
glyphFormat17
.
data
.
arrayZ
,
glyphFormat17
.
data
.
len
,
i
,
gid
);
}
break
;
case
18
:
{
const
GlyphBitmapDataFormat18
&
glyphFormat18
=
StructAtOffset
<
GlyphBitmapDataFormat18
>
(
this
->
cbdt
,
image_offset
);
callback
((
const
uint8_t
*
)
&
glyphFormat18
.
data
.
arrayZ
,
glyphFormat18
.
data
.
len
,
i
,
gid
);
}
break
;
case
19
:
{
const
GlyphBitmapDataFormat19
&
glyphFormat19
=
StructAtOffset
<
GlyphBitmapDataFormat19
>
(
this
->
cbdt
,
image_offset
);
callback
((
const
uint8_t
*
)
&
glyphFormat19
.
data
.
arrayZ
,
glyphFormat19
.
data
.
len
,
i
,
gid
);
}
break
;
default:
continue
;
}
}
}
}
}
inline
hb_blob_t
*
reference_png
(
hb_codepoint_t
glyph_id
,
unsigned
int
x_ppem
,
unsigned
int
y_ppem
)
const
...
...
src/hb-ot-color-sbix-table.hh
浏览文件 @
c8380bd3
...
...
@@ -161,19 +161,6 @@ struct sbix
inline
bool
has_data
()
const
{
return
sbix_len
;
}
/* only to support dump-emoji, don't use it anywhere else */
inline
unsigned
int
*
get_available_ppems
(
unsigned
int
*
length
)
{
if
(
unlikely
(
table
->
strikes
.
len
==
0
))
return
nullptr
;
*
length
=
table
->
strikes
.
len
;
unsigned
int
*
result
;
result
=
(
unsigned
int
*
)
malloc
(
sizeof
(
unsigned
int
)
*
table
->
strikes
.
len
);
for
(
unsigned
int
i
=
0
;
i
<
table
->
strikes
.
len
;
i
++
)
result
[
i
]
=
(
table
+
table
->
strikes
[
i
]).
get_ppem
();
return
result
;
}
inline
bool
get_extents
(
hb_font_t
*
font
,
hb_codepoint_t
glyph
,
hb_glyph_extents_t
*
extents
)
const
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录