Skip to content

unbreakableRule doesn't work #1

Description

@zheyizhifeng

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.`
            }
          ]
        }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions