Comments (5)
It's been a while, but I probably used ImageMagick to convert directly from PDF to PNG, as this gives better results. To set custom fonts you can use the preamble
field for the latex options.
from labella.py.
Hm... even trying https://svgtopng.com/ to convert the .svg to .png results in the same remnants. Its probably not with cairosvg
.
I'm curious to see how you do this.
With the customized font on the textfn
option removed, https://svgtopng.com/ conversion works. But the cairosvg
code does not work.
from labella.py.
Aha...leaving the {\\fontfamily{phv}\\selectfont"
customization off of the textfn
option seems to work.
- Though ideally I'd like to change the font
But, now the width of each timeline event isn't proportional to the text:
-
Also the left margin is cutting off the months of the timeline
- This is fixed with
"margin": {"left": 70, "right": 20, "top": 20, "bottom": 20},
setting
- This is fixed with
-
NOTE: This is only for the .png generated by the code above (
cairosvg
)- The .pdf and the converted .svg-to-.png using svgtopdg.com seem to work ok
from labella.py.
I'll close this issue as it appears to be resolved. Please reopen if that's not the case.
from labella.py.
Right on. I spend a decent amount of time trying to install Wand
/ ImageMagick
on Windows 10. Ew! I wasn't successful. I will try another PDF-PNG conversion.
Thank you!
from labella.py.
Related Issues (15)
- Implement logscale
- textStyle example HOT 4
- borderColor not working HOT 3
- I think I'm missing something in my machine to run it but I don't know what. HOT 9
- Gantt chart HOT 2
- Horizontal Timeline up and down HOT 1
- Latexmk issue within Conda Env HOT 14
- FileNotFoundError: [WinError 2] The system cannot find the file specified
- How to use URL hyperlinks for timeline events? HOT 4
- import error HOT 3
- How to adjust node size and font size? HOT 4
- latexmk issue HOT 4
- OSError: [Errno 22] Invalid argument on dt2milli HOT 2
- Width caluculation - switch to TikZ? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labella.py.