Skip to content

Text baseline & oblique option#585

Merged
alafr merged 12 commits into
foliojs:masterfrom
alafr:Oblique
Feb 2, 2018
Merged

Text baseline & oblique option#585
alafr merged 12 commits into
foliojs:masterfrom
alafr:Oblique

Conversation

@alafr

@alafr alafr commented Nov 20, 2016

Copy link
Copy Markdown
Collaborator

No description provided.

alafr added 11 commits September 6, 2016 23:16
I kept the SVG 'middle' and 'central' values with a 'svg-' prefix to avoid the conflict. The values of the Canvas 'textBaseline' property are now directly available, users who want to use the SVG 'alignment-baseline' values will just need to add something like this in their code:
` value = ({'text-before-edge':'top', 'text-after-edge':'bottom', 'middle':'svg-middle', 'central':'svg-central', 'baseline':'alphabetic'})[value] `
@ArturPrzybysz

Copy link
Copy Markdown

@devongovett Is there any chance of this commit being merged? I would love to see this feature in pdfkit

@alafr alafr merged commit 34cf8d5 into foliojs:master Feb 2, 2018
@alafr alafr deleted the Oblique branch February 2, 2018 17:40
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.

2 participants