summaryrefslogtreecommitdiff
path: root/src/layout
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-30 00:52:50 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-30 00:52:50 +0200
commit1c43d8af12a8d318fb681713d0e66eb754485589 (patch)
tree5f0046c0a178a19e162403fde5d061feb4c9e4ee /src/layout
parentd5d2b80699a002594f429e30f5f1ca0ca58d3412 (diff)
Bump dependencies
Diffstat (limited to 'src/layout')
-rw-r--r--src/layout/shaping.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/layout/shaping.rs b/src/layout/shaping.rs
index d8901471..021e9ecc 100644
--- a/src/layout/shaping.rs
+++ b/src/layout/shaping.rs
@@ -275,12 +275,12 @@ fn shape_segment<'a>(
let info = &infos[i];
let cluster = info.cluster as usize;
- if info.codepoint != 0 || !fallback {
+ if info.glyph_id != 0 || !fallback {
// Add the glyph to the shaped output.
// TODO: Don't ignore y_advance and y_offset.
glyphs.push(ShapedGlyph {
face_id,
- glyph_id: info.codepoint as u16,
+ glyph_id: info.glyph_id as u16,
x_advance: face.to_em(pos[i].x_advance).to_length(state.size),
x_offset: face.to_em(pos[i].x_offset).to_length(state.size),
text_index: base + cluster,
@@ -291,7 +291,7 @@ fn shape_segment<'a>(
let range = {
// First, search for the end of the tofu sequence.
let k = i;
- while infos.get(i + 1).map_or(false, |info| info.codepoint == 0) {
+ while infos.get(i + 1).map_or(false, |info| info.glyph_id == 0) {
i += 1;
}