question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request: Text Rotate

See original GitHub issue

Came across Issue #167 on HummusJS (https://github.com/galkahana/HummusJS/issues/167) and chunyenHuang’s implementation for rotating text.

Could we also add this feature to the options in HummusRecipe? Example:

let pdfDoc = new HummusRecipe(...)
          pdfDoc.text(watermark, xOffset, yOffset, {
            color: 'ff0000',
            opacity: 0.3,
            fontSize: 48,
            bold: true,
            font: 'Helvetica',
            align: 'center top',
            rotateText: 90 // 0 - 360 degrees
          })

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:23 (11 by maintainers)

github_iconTop GitHub Comments

4reactions
chunyenHuangcommented, May 29, 2018

Hello @nothingasis @Fiiii You can now test the text rotation in 1.7.0 https://chunyenhuang.github.io/hummusRecipe/Recipe.html#.text

3reactions
danhallidaycommented, Aug 3, 2018

I just added support for arbitrary rotation angles in PR #47. Let me know what you think, or if there are any mistakes!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Rotate text in Word - Microsoft Support
Use any of the rotate commands in the list. Manually rotate the text box by selecting the text box rotation handle and dragging...
Read more >
Text Rotation | CSS-Tricks
If you're just trying to turn some text, you can rotate entire elements like this, which rotates it 90 degrees counterclockwise:
Read more >
How to Rotate Text in Microsoft Word - groovyPost
If you want to turn your text to a slight angle or 90 degrees, we'll walk you through how to rotate text in...
Read more >
How to Rotate Text in Word - Lifewire
Rotate a text box: Go to Insert > Text Box to create a text box. Select the box and drag the rotation handle...
Read more >
text-orientation - CSS: Cascading Style Sheets - MDN Web Docs
The text-orientation CSS property sets the orientation of the text ... never once considering how in the world she was to get out...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found