Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-style paragraphs #213

Merged
merged 17 commits into from
Sep 25, 2018
Merged

Multi-style paragraphs #213

merged 17 commits into from
Sep 25, 2018

Conversation

adrg
Copy link
Collaborator

@adrg adrg commented Sep 24, 2018

Add support for multiple styles inside paragraphs by introducing the StyledParagraph component.
This PR is should resolve #200

Copy link
Contributor

@gunnsth gunnsth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few minor comments

pdf/creator/styled_paragraph.go Show resolved Hide resolved
lines [][]TextChunk
}

// NewStyledParagraph create a new styled paragraph.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"creates"

FontSize float64
}

// NewTextStyle create a new text style object which can be used with chunks
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"creates"

}
}

// TextChunk represents a chunk a text along with a particular style.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be "a chunk of text" ?

@adrg
Copy link
Collaborator Author

adrg commented Sep 25, 2018

Corrected the comment typos

@gunnsth gunnsth merged commit f74acfd into unidoc:master Sep 25, 2018
@adrg adrg deleted the paragraph-styles branch September 26, 2018 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants