Adjust layout_str to use byte coordinates
* Interpret ranges as byte ranges for incoming runs * Return glyphs whose indices are byte offsets
This commit is contained in:
committed by
Antonio Scandurra
parent
a2c36fcdb7
commit
92b938f4a8
@@ -73,7 +73,7 @@ impl Element for Label {
|
||||
.font_cache
|
||||
.select_font(self.family_id, &self.font_properties)
|
||||
.unwrap();
|
||||
let text_len = self.text.chars().count();
|
||||
let text_len = self.text.len();
|
||||
let mut styles;
|
||||
let mut colors;
|
||||
if let Some(highlights) = self.highlights.as_ref() {
|
||||
|
||||
Reference in New Issue
Block a user