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

Support all text stroke options #558

Closed
wants to merge 1 commit into from

Conversation

dpashkevich
Copy link

Support all text rendering modes via the stroke parameter. (Spec)
Examples:

doc.text(35, 25, "Octonyan loves jsPDF", {
    stroke: 0 // Fill text
});

doc.text(35, 25, "Octonyan loves jsPDF", {
    stroke: 1 // Stroke text
});

doc.text(35, 25, "Octonyan loves jsPDF", {
    stroke: 2 // Fill, then stroke text
});


doc.text(35, 25, "Octonyan loves jsPDF", {
    stroke: 3 // Neither fill nor stroke text (invisible). 
});

@MrRio
Copy link
Member

MrRio commented Sep 2, 2017

It'd be good if we could pass names into this

{ stroke: 'fill' }

@Uzlopak
Copy link
Collaborator

Uzlopak commented Sep 2, 2017

@MrRio
Close this please, as it is modified by PR #1401

@Uzlopak
Copy link
Collaborator

Uzlopak commented Feb 17, 2018

Will be part of #1433

@Uzlopak Uzlopak closed this Feb 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants