mirror of https://github.com/stelzo/typst.git
Fix linebreak fallback tofu (#3123)
This commit is contained in:
parent
155af2318e
commit
28a5069f95
|
|
@ -93,8 +93,8 @@ impl FontBook {
|
|||
variant: FontVariant,
|
||||
text: &str,
|
||||
) -> Option<usize> {
|
||||
// Find the fonts that contain the text's first char ...
|
||||
let c = text.chars().next()?;
|
||||
// Find the fonts that contain the text's first non-space char ...
|
||||
let c = text.chars().find(|c| !c.is_whitespace())?;
|
||||
let ids = self
|
||||
.infos
|
||||
.iter()
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 473 B |
|
|
@ -0,0 +1 @@
|
|||
#linebreak()中文
|
||||
Loading…
Reference in New Issue