-
Notifications
You must be signed in to change notification settings - Fork 87
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
Conversation
There was a problem hiding this 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
Outdated
lines [][]TextChunk | ||
} | ||
|
||
// NewStyledParagraph create a new styled paragraph. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"creates"
pdf/creator/text_style.go
Outdated
FontSize float64 | ||
} | ||
|
||
// NewTextStyle create a new text style object which can be used with chunks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"creates"
pdf/creator/text_style.go
Outdated
} | ||
} | ||
|
||
// TextChunk represents a chunk a text along with a particular style. |
There was a problem hiding this comment.
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" ?
Corrected the comment typos |
Add support for multiple styles inside paragraphs by introducing the StyledParagraph component.
This PR is should resolve #200