Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
a64eacd8
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
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看板
提交
a64eacd8
编写于
2月 19, 2018
作者:
E
Ebrahim Byagowi
提交者:
Behdad Esfahbod
2月 19, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[aat] First dig on 'trak'
上级
0bff6991
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
108 addition
and
4 deletion
+108
-4
src/Makefile.sources
src/Makefile.sources
+2
-1
src/hb-aat-layout-trak-table.hh
src/hb-aat-layout-trak-table.hh
+100
-0
src/hb-aat-layout.cc
src/hb-aat-layout.cc
+2
-1
src/hb-ot-layout-private.hh
src/hb-ot-layout-private.hh
+4
-2
未找到文件。
src/Makefile.sources
浏览文件 @
a64eacd8
...
...
@@ -82,8 +82,9 @@ HB_FALLBACK_sources = \
HB_OT_sources
=
\
hb-aat-layout.cc
\
hb-aat-layout-common-private.hh
\
hb-aat-layout-kerx-table.hh
\
hb-aat-layout-morx-table.hh
\
hb-aat-layout-kerx-table.hh
\
hb-aat-layout-trak-table.hh
\
hb-aat-layout-private.hh
\
hb-ot-font.cc
\
hb-ot-layout.cc
\
...
...
src/hb-aat-layout-trak-table.hh
0 → 100644
浏览文件 @
a64eacd8
/*
* Copyright © 2018 Google, Inc.
* Copyright © 2018 Ebrahim Byagowi
*
* This is part of HarfBuzz, a text shaping library.
*
* Permission is hereby granted, without written agreement and without
* license or royalty fees, to use, copy, modify, and distribute this
* software and its documentation for any purpose, provided that the
* above copyright notice and the following two paragraphs appear in
* all copies of this software.
*
* IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
* DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
* ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
* IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
* DAMAGE.
*
* THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
* FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
* ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
* PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*
* Google Author(s): Behdad Esfahbod
*/
#ifndef HB_AAT_LAYOUT_TRAK_TABLE_HH
#define HB_AAT_LAYOUT_TRAK_TABLE_HH
#include "hb-aat-layout-common-private.hh"
#include "hb-open-type-private.hh"
#define HB_AAT_TAG_trak HB_TAG('t','r','a','k')
namespace
AAT
{
struct
TrackTableEntry
{
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
));
}
protected:
Fixed
track
;
/* Track value for this record. */
HBUINT16
nameIndex
;
/* The 'name' table index for this track */
HBUINT16
offset
;
/* Offset from start of tracking table to per-size tracking values for this track. */
public:
DEFINE_SIZE_MIN
(
8
);
};
struct
TrackData
{
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
));
}
protected:
HBUINT16
nTracks
;
/* Number of separate tracks included in this table. */
HBUINT16
nSizes
;
/* Number of point sizes included in this table. */
OffsetTo
<
UnsizedArrayOf
<
Fixed
>
,
HBUINT32
>
sizeTable
;
TrackTableEntry
trackTable
[
VAR
];
/* Array[nSizes] of size values. */
public:
DEFINE_SIZE_MIN
(
8
);
};
struct
trak
{
static
const
hb_tag_t
tableTag
=
HB_AAT_TAG_trak
;
inline
bool
sanitize
(
hb_sanitize_context_t
*
c
)
const
{
TRACE_SANITIZE
(
this
);
return_trace
(
c
->
check_struct
(
this
));
}
protected:
FixedVersion
<>
version
;
/* Version of the tracking table--currently
* 0x00010000u for version 1.0. */
HBUINT16
format
;
/* Format of the tracking table */
OffsetTo
<
TrackData
,
HBUINT16
>
horizOffset
;
/* TrackData for horizontal text */
OffsetTo
<
TrackData
,
HBUINT16
>
vertOffset
;
/* TrackData for vertical text */
HBUINT16
reserved
;
/* Reserved. Set to 0. */
public:
DEFINE_SIZE_MIN
(
12
);
};
}
/* namespace AAT */
#endif
/* HB_AAT_LAYOUT_TRAK_TABLE_HH */
src/hb-aat-layout.cc
浏览文件 @
a64eacd8
...
...
@@ -30,8 +30,9 @@
#include "hb-ot-layout-gsubgpos-private.hh"
#include "hb-aat-layout-private.hh"
#include "hb-aat-layout-kerx-table.hh"
#include "hb-aat-layout-morx-table.hh"
#include "hb-aat-layout-kerx-table.hh"
#include "hb-aat-layout-trak-table.hh"
/*
* mort/morx
...
...
src/hb-ot-layout-private.hh
浏览文件 @
a64eacd8
...
...
@@ -131,8 +131,9 @@ namespace OT {
}
namespace
AAT
{
struct
kerx
;
struct
morx
;
struct
kerx
;
struct
trak
;
}
struct
hb_ot_layout_lookup_accelerator_t
...
...
@@ -170,8 +171,9 @@ struct hb_ot_layout_t
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
MATH
>
math
;
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
fvar
>
fvar
;
OT
::
hb_lazy_table_loader_t
<
struct
OT
::
avar
>
avar
;
OT
::
hb_lazy_table_loader_t
<
struct
AAT
::
kerx
>
kerx
;
OT
::
hb_lazy_table_loader_t
<
struct
AAT
::
morx
>
morx
;
OT
::
hb_lazy_table_loader_t
<
struct
AAT
::
kerx
>
kerx
;
OT
::
hb_lazy_table_loader_t
<
struct
AAT
::
trak
>
trak
;
unsigned
int
gsub_lookup_count
;
unsigned
int
gpos_lookup_count
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录