mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Simplify add_glyph_for_char_index
This commit is contained in:
parent
61be58a87f
commit
e663005ce2
2 changed files with 8 additions and 10 deletions
|
@ -456,7 +456,7 @@ impl Shaper {
|
|||
false,
|
||||
true,
|
||||
true);
|
||||
glyphs.add_glyph_for_char_index(char_idx, Some(character), &data);
|
||||
glyphs.add_glyph_for_char_index(char_idx, character, &data);
|
||||
} else {
|
||||
let shape = glyph_data.entry_for_glyph(glyph_span.begin(), &mut y_pos);
|
||||
let advance = self.advance_for_shaped_glyph(shape.advance, character, options);
|
||||
|
@ -466,7 +466,7 @@ impl Shaper {
|
|||
false,
|
||||
true,
|
||||
true);
|
||||
glyphs.add_glyph_for_char_index(char_idx, Some(character), &data);
|
||||
glyphs.add_glyph_for_char_index(char_idx, character, &data);
|
||||
}
|
||||
} else {
|
||||
// collect all glyphs to be assigned to the first character.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue