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

Text-align justify seems not working #4

Closed
pierre-b opened this issue Jan 3, 2012 · 6 comments
Closed

Text-align justify seems not working #4

pierre-b opened this issue Jan 3, 2012 · 6 comments

Comments

@pierre-b
Copy link

pierre-b commented Jan 3, 2012

Hi,

The text-align attribute seems not working. My text is moving well for the RIGHT, LEFT and CENTER values, but doesn't expand for the JUSTIFY.

Any ideas please ?

Thanks.

@psliwa
Copy link
Owner

psliwa commented Jan 3, 2012

What type of document do you generate? Pdf or image? Font type that you use will be also very helpfull.

@pierre-b
Copy link
Author

pierre-b commented Jan 3, 2012

I generate a PDF with the SF2 bundle and using the default fonts file.

@psliwa
Copy link
Owner

psliwa commented Jan 3, 2012

I have checked every standard font and justify works very well. Maby this is cache issue? Stylesheet is cached by default, in development env you should set stylesheet cache off:

#config_dev.yml
ps_pdf:
    use_cache_in_stylesheet: false

For debugging "dump" attribute is very usefull. It generates sicky note with attributes used for rendering:

<p dump="true">some text</p>

Have in mind that every numeric attribute outputed by "dump" attribute has been converted to standard pdf unit (not a pixels).

@pierre-b
Copy link
Author

pierre-b commented Jan 4, 2012

It works, thank you again ;)

@pierre-b pierre-b closed this as completed Jan 4, 2012
@psliwa
Copy link
Owner

psliwa commented Jan 4, 2012

Was it a cache problem?

@pierre-b
Copy link
Author

It was my fault, the justify alignment works on the web only with 2 lines of text, I wanted to justify only one like on Photoshop :)

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