mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Everywhere: Limit layout text fragments to use one font for all glyphs
The ChunkIterator now limits a chunk to using only one font (before, it was possible to have a chunk with >1 font, when `unicode-range` CSS property is used). This change allows us to reduce some complexity in the text shaping and painting code and makes us compatible with the APIs in Skia and HarfBuzz.
This commit is contained in:
committed by
Alexander Kalenik
parent
b95c05b611
commit
7181c3f2ea
@@ -37,7 +37,6 @@ DrawGlyphOrEmoji prepare_draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIter
|
||||
return DrawGlyph {
|
||||
.position = point,
|
||||
.code_point = code_point,
|
||||
.font = font,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -46,7 +45,6 @@ DrawGlyphOrEmoji prepare_draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIter
|
||||
return DrawEmoji {
|
||||
.position = point,
|
||||
.emoji = emoji,
|
||||
.font = font,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -55,7 +53,6 @@ DrawGlyphOrEmoji prepare_draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIter
|
||||
return DrawGlyph {
|
||||
.position = point,
|
||||
.code_point = code_point,
|
||||
.font = font,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -64,7 +61,6 @@ DrawGlyphOrEmoji prepare_draw_glyph_or_emoji(FloatPoint point, Utf8CodePointIter
|
||||
return DrawGlyph {
|
||||
.position = point,
|
||||
.code_point = 0xFFFD,
|
||||
.font = font,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user