Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
fb192c26
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看板
提交
fb192c26
编写于
12月 30, 2015
作者:
K
Khaled Hosny
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[docs] A bit more buffers documentation
上级
8ab797c5
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
60 addition
and
5 deletion
+60
-5
docs/harfbuzz-sections.txt
docs/harfbuzz-sections.txt
+2
-0
src/hb-buffer.cc
src/hb-buffer.cc
+4
-3
src/hb-buffer.h
src/hb-buffer.h
+54
-2
未找到文件。
docs/harfbuzz-sections.txt
浏览文件 @
fb192c26
...
...
@@ -48,6 +48,8 @@ hb_buffer_set_language
hb_buffer_get_language
hb_buffer_set_flags
hb_buffer_get_flags
hb_buffer_set_cluster_level
hb_buffer_get_cluster_level
hb_buffer_set_length
hb_buffer_get_length
hb_buffer_set_segment_properties
...
...
src/hb-buffer.cc
浏览文件 @
fb192c26
...
...
@@ -1111,9 +1111,9 @@ hb_buffer_get_segment_properties (hb_buffer_t *buffer,
/**
* hb_buffer_set_flags:
* @buffer: an #hb_buffer_t.
* @flags:
* @flags:
the buffer flags to set.
*
*
*
Sets @buffer flags to @flags. See #hb_buffer_flags_t.
*
* Since: 0.9.7
**/
...
...
@@ -1131,9 +1131,10 @@ hb_buffer_set_flags (hb_buffer_t *buffer,
* hb_buffer_get_flags:
* @buffer: an #hb_buffer_t.
*
*
*
See hb_buffer_set_flags().
*
* Return value:
* The @buffer flags.
*
* Since: 0.9.7
**/
...
...
src/hb-buffer.h
浏览文件 @
fb192c26
...
...
@@ -40,7 +40,28 @@
HB_BEGIN_DECLS
/**
* hb_glyph_info_t:
* @codepoint: either a Unicode code point (before shaping) or a glyph index
* (after shaping).
* @mask:
* @cluster: the index of the character in the original text that corresponds
* to this #hb_glyph_info_t, or whatever the client passes to
* hb_buffer_add(). More than one #hb_glyph_info_t can have the same
* @cluster value, if they resulted from the same character (e.g. one
* to many glyph substitution), and when more than one character gets
* merged in the same glyph (e.g. many to one glyph substitution) the
* #hb_glyph_info_t will have cluster value corresponding to the
* first of them. By default some characters are merged into the same
* cluster (e.g. combining marks have the same cluster as their
* bases) even if they are separate glyphs,
* hb_buffer_set_cluster_level() allow selecting more fine-grained
* cluster handling.
*
* The #hb_glyph_info_t is the structure that holds informations about the
* glyphs and their relation to input text.
*
*/
typedef
struct
hb_glyph_info_t
{
hb_codepoint_t
codepoint
;
hb_mask_t
mask
;
...
...
@@ -51,6 +72,22 @@ typedef struct hb_glyph_info_t {
hb_var_int_t
var2
;
}
hb_glyph_info_t
;
/**
* hb_glyph_position_t:
* @x_advance: how much the line advances after drawing this glyph when setting
* text in horizontal direction.
* @y_advance: how much the line advances after drawing this glyph when setting
* text in vertical direction.
* @x_offset: how much the glyph moves on the X-axis before drawing it, this
* should not affect how much the line advances.
* @y_offset: how much the glyph moves on the Y-axis before drawing it, this
* should not affect how much the line advances.
*
* The #hb_glyph_position_t is the structure that holds the positions of the
* glyph in both horizontal and vertical directions. All positions in
* #hb_glyph_position_t are relative to the current point.
*
*/
typedef
struct
hb_glyph_position_t
{
hb_position_t
x_advance
;
hb_position_t
y_advance
;
...
...
@@ -176,7 +213,22 @@ HB_EXTERN void
hb_buffer_guess_segment_properties
(
hb_buffer_t
*
buffer
);
/*
/**
* hb_buffer_flags_t:
* @HB_BUFFER_FLAG_DEFAULT: the default buffer flag.
* @HB_BUFFER_FLAG_BOT: flag indicating that special handling of the beginning
* of text can be applied to this buffer. Should usually
* be set unless you are passing to the buffer only part
* of the text without the full context.
* @HB_BUFFER_FLAG_EOT: flag indicating that special handling of the end of text
* can be applied to this buffer, similar to
* @HB_BUFFER_FLAG_EOT.
* @HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES:
* flag indication that character with Default Ignorable
* Unicode property should use the corresponding glyph
* from the font, instead of replacing them with the space
* glyph and zeroing the advance width.
*
* Since: 0.9.20
*/
typedef
enum
{
/*< flags >*/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录