Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
b42661ee
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看板
提交
b42661ee
编写于
10月 27, 2018
作者:
E
Ebrahim Byagowi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[ot-color] Add some documentation
上级
9435fb24
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
19 deletion
+20
-19
src/hb-ot-color.cc
src/hb-ot-color.cc
+19
-18
src/hb-ot-color.h
src/hb-ot-color.h
+1
-1
未找到文件。
src/hb-ot-color.cc
浏览文件 @
b42661ee
...
...
@@ -132,8 +132,8 @@ hb_ot_color_palette_get_name_id (hb_face_t *face,
/**
* hb_ot_color_palette_color_get_name_id:
* @face: a font face.
* @color_index:
* @face:
a font face.
* @color_index:
palette entry index.
*
* Returns: Name ID associated with a palette entry, e.g. eye color
*
...
...
@@ -148,7 +148,7 @@ hb_ot_color_palette_color_get_name_id (hb_face_t *face,
/**
* hb_ot_color_palette_get_flags:
* @face: a font face
* @face:
a font face
* @palette_index: the index of the color palette whose flags are being requested
*
* Returns: the flags for the requested color palette.
...
...
@@ -217,13 +217,14 @@ hb_ot_color_has_layers (hb_face_t *face)
/**
* hb_ot_color_glyph_get_layers:
* @face: a font face.
* @glyph:
* @start_offset:
* @count: (inout) (optional):
* @layers: (array length=count) (out) (optional):
* @face: a font face.
* @glyph: a layered color glyph id.
* @start_offset: starting offset of layers.
* @count: (inout) (optional): gets number of layers available to be written on buffer
* and returns number of written layers.
* @layers: (array length=count) (out) (optional): layers buffer to buffer.
*
* Returns:
* Returns:
Total number of layers a layered color glyph have.
*
* Since: REPLACEME
*/
...
...
@@ -258,10 +259,10 @@ hb_ot_color_has_svg (hb_face_t *face)
/**
* hb_ot_color_glyph_reference_blob_svg:
* @face:
* @glyph:
* @face:
a font face.
* @glyph:
a svg glyph index.
*
* Returns:
* Returns:
respective svg blob of the glyph, if available.
*
* Since: REPLACEME
*/
...
...
@@ -280,7 +281,7 @@ hb_ot_color_glyph_reference_blob_svg (hb_face_t *face, hb_codepoint_t glyph)
* hb_ot_color_has_png:
* @face: a font face.
*
* Returns: whether
SVG table
is available.
* Returns: whether
either of CBDT or sbix tables
is available.
*
* Since: REPLACEME
*/
...
...
@@ -292,12 +293,14 @@ hb_ot_color_has_png (hb_face_t *face)
/**
* hb_ot_color_glyph_reference_blob_svg:
* @font:
* @glyph:
* @font: a font object, not face. upem should be set on
* that font object if one wants to get optimal png blob, otherwise
* return the biggest one
* @glyph: a glyph index.
* @strike_x_ppem: (out):
* @strike_y_ppem: (out):
*
* Returns:
* Returns:
respective png blob of the glyph, if available.
*
* Since: REPLACEME
*/
...
...
@@ -307,8 +310,6 @@ hb_ot_color_glyph_reference_blob_png (hb_font_t *font,
unsigned
int
*
strike_x_ppem
/* OUT */
,
unsigned
int
*
strike_y_ppem
/* OUT */
)
{
/* TODO: if (hb_options ().aat ()) then call sbix first */
if
(
_get_cbdt
(
font
->
face
).
has_data
())
return
_get_cbdt
(
font
->
face
).
reference_blob_for_glyph
(
glyph
,
font
->
x_ppem
,
font
->
y_ppem
,
strike_x_ppem
,
strike_y_ppem
);
...
...
src/hb-ot-color.h
浏览文件 @
b42661ee
...
...
@@ -94,7 +94,7 @@ HB_EXTERN hb_bool_t
hb_ot_color_has_layers
(
hb_face_t
*
face
);
/**
* hb_ot_color_layer_t:
* hb_ot_color_layer_t:
Pairs of glyph and color index.
*
* Since: REPLACEME
**/
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录