hi, thx for your project, i'm testing on your demo linkhttps://mattuylee.github.io/text-frame/zh/example.html, but something doesn't work. in the code below, the first line "Photo Daily" will always break line, I use unbreakableRule: /.\s+/, but it doesn't work.
options = {
viewWidth: 300,
viewHeight: 360,
fontSize: 16,
margin: 16,
fragments: [
{
color: 'green',
fontSize: 20,
margin: 0,
textAlign: 'start',
text: "title"
},
{
textIndent: 0,
fontFamily: 'serif',
margin: { bottom: 0 },
marginCollapse: true,
textAlign: 'left',
text: `Photo Daily. Graduates of universities on the mainland have been enjoying a rise in their job prospects over the past decade, with it now listed as the fifth-most report.`
}
]
}
hi, thx for your project, i'm testing on your demo linkhttps://mattuylee.github.io/text-frame/zh/example.html, but something doesn't work. in the code below, the first line "Photo Daily" will always break line, I use unbreakableRule:
/.\s+/, but it doesn't work.