mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Use specific assertion for gfx text shaping harfbuzz
This commit is contained in:
parent
11cedc7b94
commit
1a6154197b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ impl ShapedGlyphData {
|
||||||
let mut pos_count = 0;
|
let mut pos_count = 0;
|
||||||
let pos_infos = hb_buffer_get_glyph_positions(buffer, &mut pos_count);
|
let pos_infos = hb_buffer_get_glyph_positions(buffer, &mut pos_count);
|
||||||
assert!(!pos_infos.is_null());
|
assert!(!pos_infos.is_null());
|
||||||
assert!(glyph_count == pos_count);
|
assert_eq!(glyph_count, pos_count);
|
||||||
|
|
||||||
ShapedGlyphData {
|
ShapedGlyphData {
|
||||||
count: glyph_count as usize,
|
count: glyph_count as usize,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue