-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove invisible glyphs #92
Comments
|
Indeed, setting bool
raqm_set_harfbuzz_buffer_flags (raqm_t *rq,
int flags); |
I’d rather not expose buffer flags directly, for example we set bool
raqm_set_invisible_glyph (raqm_t *rq,
int gid); |
Like this? Maybe a little complex? For solving my problem in the test suite, it would be sufficient if I could call a libraqm function that makes the invisible glyphs disappear by setting /**
* raqm_set_invisible_glyph:
* @rq: a #raqm_t.
* @gid: glyph id to use for invisible glyphs.
*
* If @gid is negative, invisible glyphs will be suppressed from the output.
* This works on all versions of HarfBuzz.
*
* If @gid is zero, invisible glyphs will be rendered as space.
* This works on all versions of HarfBuzz.
*
* If @gid is a positive number, it will be used for invisible glyphs.
* This requires a version of HarfBuzz that has hb_buffer_set_invisible_glyph().
* For older versions, the return value will be %false and the shaping behavior
* does not change.
*
* Return value:
* %true if no errors happened, %false otherwise.
*
* Since: 0.6
*/
bool
raqm_set_invisible_glyph (raqm_t *rq,
int gid) |
Sounds good. Yes, the complexity is expected but I think it is OK. |
Change test harness to check for system requirements, and skip test cases that cannot be run on the current platform. Specifically, if we're running on an old HarfBuzz without `hb_buffer_set_invisible_glyph()`, the test case `invisible_glyph_explicit` is skipped. Fixes #92.
Could libraqm delete invisible glyphs from the returned glyph array when compiled against a recent HarfBuzz version (which has
hb_buffer_set_invisible_glyph
, introduced in harfbuzz/harfbuzz@e42cd58 / harfbuzz/harfbuzz#1216)?In Unicode’s test suite for rendering engine I’m using libraqm. Currently, test case CMAP-1 is failing on the free stack because HarfBuzz inserts an invisible space (by default, HarfBuzz uses
space
as invisible glyph).I can’t just filter out all spaces in my test harness, because the test suite contains checks that look at the shaping of spaces.
The text was updated successfully, but these errors were encountered: