We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3834a6e commit 17883caCopy full SHA for 17883ca
crates/krilla/src/content.rs
@@ -1174,10 +1174,8 @@ where
1174
// to have a valid codepoint mapping. So in this case, we still add the codepoints
1175
// to each glyph in the cluster, this will result in worse copy-pasting in viewers
1176
// that don't support `ActualText`.
1177
- if !incompatible_codepoint {
1178
- if previous_range != Some(range.clone()) || forbid_invalid_codepoints {
1179
- pdf_font.set_codepoints(pdf_glyph, text.to_string());
1180
- }
+ if !incompatible_codepoint && (previous_range != Some(range.clone()) || forbid_invalid_codepoints) {
+ pdf_font.set_codepoints(pdf_glyph, text.to_string());
1181
}
1182
1183
(range, incompatible_codepoint)
0 commit comments