Fix compute_width_for_char (#9643)

Release Notes:

- N/A
This commit is contained in:
张小白 2024-03-22 16:10:42 +08:00 committed by GitHub
parent 6d5787cfdc
commit ae6f138b6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,7 @@ impl LineWrapper {
buffer,
self.font_size,
&[FontRun {
len: 1,
len: buffer.len(),
font_id: self.font_id,
}],
)