问题标签 [harfbuzz]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
harfbuzz - 如何从字体中获取字体脚本类型
我正在使用 harfbuzz 来塑造区域字体,这是我当前的代码。
目前我在代码中手动设置 hb_script_t 值。
我怎样才能得到这个字体的值?
rust - 无法使用 Rust FFI 链接到 harfbuzz 动态库
我想使用 Rust 文件main.rs
来绑定src/c_ffi/myharfbuzz.c
链接动态库的 C 文件(例如hb.h
and hb-ot.h
)。当我用 编译它时cargo run
,它显示错误:
好像ld
找不到动态库hb.h
这是我的文件:
src/main.rs
src/c_ffi/myharfbuzz.c
在我build.rs
的包含路径设置,但ld
发出链接错误:
meson-build - Windows 下的 Harfbuzz 构建失败
当我尝试使用meson build
目录内的说明中指示构建 harfbuzz 时,我将 harfbuzz 克隆到它失败并显示消息
这个错误是怎么发生的?Meson 版本是 0.60.1,Python 版本是 3.10.1
c++ - 我可以在同一个对象上调用 `hb_shape` 两次,而不重置文本内容吗
我对 HarfBuzz 有疑问。我想要:
设置文字内容
重绘时
一个。更新字体大小
湾。塑造文字
但如果文本没有更改,我会收到以下错误:
这是由
设置字符高度时,我会清除所有缓存的结果。这个结构看起来像这样:
因此,它不包含对 HarfBuzz 结构的引用。hb_shape 使文本内容无效是真的吗。如果是这样,在调用hb_shape
.
cmake - Meson / Freetype / Harfbuzz : making Harfbuzz's meson script find freetype in /opt
I am trying to build freetype and harfbuzz. The latter depends on the former. Freetype builds with CMake, which I configured to install it in /opt/ossia-sdk.
I tried this as mentioned in Meson: how to make find_library() works with an unusual path? :
Yet it still gets my system freetype, which I do not want.
meson-log.txt has the following:
Build lines look like:
Any solution must not patch Freetype or harfbuzz's build scripts, I can only call them.