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

Padding not generating :( #7

Open
Gander7 opened this issue Nov 14, 2019 · 6 comments
Open

Padding not generating :( #7

Gander7 opened this issue Nov 14, 2019 · 6 comments

Comments

@Gander7
Copy link

Gander7 commented Nov 14, 2019

Silicon works from terminal.
Generates https://gyazo.com/ba12e6d4a824e29814262c5e817fc31d (Expected from vim as well)

vim-plug install worked, but when I generate an image, the image is cropped to the window.

Image generated from :Silicon
https://gyazo.com/27d269b5bc46746b72da8be913dcaf7a

It doesn't seem to be taking into account pad-vert or pad-horiz.
The values match the defaults specified in the readme.
I updated the values to ridiculous values for testing in my .vimrc

let g:silicon={}
let g:silicon["shadow-offset-x"]=400
let g:silicon["shadow-offset-y"]=300
let g:silicon["pad-vert"]=500
let g:silicon["pad-horiz"]=250

Same result as previous export using :Silicon

@segeljakt
Copy link
Owner

Thanks for the issue, I will investigate in the weekend

@segeljakt
Copy link
Owner

Strange, with those settings, I'm getting this output image:
image

What version are you running?

$ silicon --version
silicon 0.2.6

@Gander7
Copy link
Author

Gander7 commented Nov 18, 2019

silicon 0.2.6 :(
I'm running it on Ubuntu 18.04 bionic [Ubuntu on Windows 10]
Are there any other dependencies or configs I can check?

@segeljakt
Copy link
Owner

segeljakt commented Nov 18, 2019

Could you try run this in the terminal:

echo "int main() {}" | silicon --shadow-offset-x 400 --shadow-offset-y 300 --pad-vert 500 --pad-horiz 250 --language c --output test.png

And see how the output looks

@Gander7
Copy link
Author

Gander7 commented Nov 18, 2019

@Gander7
Copy link
Author

Gander7 commented Nov 18, 2019

Could it be something in my .vimrc?

Can be found here. Just updated it this morning.

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

No branches or pull requests

2 participants