mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Auto merge of #7799 - mbrubeck:glyph-cleanup, r=pcwalton
Misc. code cleanup in gfx::text::glyph. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7799) <!-- Reviewable:end -->
This commit is contained in:
commit
ac448cacba
3 changed files with 36 additions and 65 deletions
|
@ -1792,7 +1792,7 @@ impl ScaledFontExtensionMethods for ScaledFont {
|
|||
azglyphs.reserve(range.length().to_usize());
|
||||
|
||||
for slice in run.natural_word_slices_in_visual_order(range) {
|
||||
for (_i, glyph) in slice.glyphs.iter_glyphs_for_char_range(&slice.range) {
|
||||
for glyph in slice.glyphs.iter_glyphs_for_char_range(&slice.range) {
|
||||
let glyph_advance = glyph.advance();
|
||||
let glyph_offset = glyph.offset().unwrap_or(Point2D::zero());
|
||||
let azglyph = struct__AzGlyph {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue