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

Multiple format in a single cell #14

Open
jhen913 opened this issue Jul 3, 2014 · 2 comments
Open

Multiple format in a single cell #14

jhen913 opened this issue Jul 3, 2014 · 2 comments

Comments

@jhen913
Copy link

jhen913 commented Jul 3, 2014

Apart from being able to apply different formats per cell, it would be great if we can also apply different formats inside a single cell.

As an example, I want to print "Steve Jobs_", but I want the asterisk (_) to be of different color and size.

(This can be done with pdfkit by using the "continued" key as parameter in .text() method)

Something like this:
doc.fillColor(‘black’)
.fontSize(10)
.text(“Steve Jobs”, {continued: true, width: 50})
.fontSize(18)
.fillColor(‘red’)
.text(“*”);

I hope this can be available soon! 👍 Thank you Nathan!

@birdcone
Copy link

birdcone commented Aug 1, 2016

I second this request!

@beauwest
Copy link
Contributor

We would also use this, we've had instances where we need to create bold text in the middle of a string, for emphasis.

I wonder if, for FRG, some kind of simplified Markdown syntax would be possible. 🤔

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

No branches or pull requests

4 participants