Inkscape Community

Help Using Inkscape => Beyond the Basics => Topic started by: wsdickerson on July 03, 2017, 12:05:40 PM

Title: Problems with text alignment in Inkscape 0.91
Post by: wsdickerson on July 03, 2017, 12:05:40 PM
I never had this problem until I switched from 0.46 to 0.91.

I entered "TEST TEXT" then duplicated.  The top one is aligned left, second is aligned center, third is aligned right and the fourth is justify.  All four were selected and centered on vertical axis using align and distribute.  The anchors are left, center, right and left.  All four have the same X coordinate.

Displaying the SVG in a browser looks the same as in Inkscape.  In Batik, left and justify are still aligned on the vertical axis but center aligned starts at the axis and right aligned is off to the right.

In 0.46 I could use center align and it displayed correctly in Batik.  What changed from 0.46 to 0.91?  Is there a work-around?  I could use left alignment in some cases but not for text that is changed by Java for display.

Thanks
Title: Re: Problems with text alignment in Inkscape 0.91
Post by: brynn on July 03, 2017, 05:26:12 PM
Welcome to the forum!

We'll have to investigate.  I don't know off the top of my head.  Will search and report if I find anything.
Title: Re: Problems with text alignment in Inkscape 0.91
Post by: brynn on July 03, 2017, 05:36:50 PM
Looks like this has already been reported!  https://bugs.launchpad.net/inkscape/+bug/1443540

I didn't read it closely, but the last comment wonders if it might be a bug in batik.

If you have any additional info to add to the report, or any supporting documents or images which might be helpful for developers, you're certainly most welcome to do so.

It sounds like a couple of possible work-arounds are mentioned as well  :)
Title: Re: Problems with text alignment in Inkscape 0.91
Post by: Moini on July 04, 2017, 07:59:14 AM
There have been a *lot* of changes made to Inkscape's text tool since 0.91 (we are currently at 0.92.1). Perhaps you could also test if the current version solves the issue? (or is there a specific reason why you haven't updated to the latest version? We have a ppa, if you're on Ubuntu ;-) )
Title: Re: Problems with text alignment in Inkscape 0.91
Post by: wsdickerson on July 06, 2017, 11:27:34 AM
The bug report looks promising.  Also I'll try the current version.

Thanks!
Title: Re: Problems with text alignment in Inkscape 0.91
Post by: flamingolady on July 08, 2017, 12:58:14 PM
For what it's worth, I've noticed that align in .92 does not act the same as it did in older versions, and I wasn't using Batik.  I tried several fonts, seems that particularly some of the vertical ones don't move anything anymore.  I thought it was just me and I gave up! 
dee
Title: Re: Problems with text alignment in Inkscape 0.91
Post by: wsdickerson on July 25, 2017, 09:04:56 AM
Looks like this has already been reported!  https://bugs.launchpad.net/inkscape/+bug/1443540

Deleting "-inkscape-font-specification:Sans;" per the bug report fixed one instance.  Using 0.92 did not seem to make any difference.
Title: Re: Problems with text alignment in Inkscape 0.91
Post by: brynn on July 25, 2017, 10:12:14 AM
Too bad it only fixed one instance.  Were you able to follow through with the apache issue, which was linked in the last comment of that report?
Title: Re: Problems with text alignment in Inkscape 0.91
Post by: wsdickerson on July 28, 2017, 09:43:41 AM
Too bad it only fixed one instance.  Were you able to follow through with the apache issue, which was linked in the last comment of that report?

I didn't see that.  Moving "-inkscape-font-specification" from the end to the beginning of style broke the alignment, font, etc.  That seems to be the problem.  That explains why I couldn't see any difference between the style written by Inkscape 0.46 vs 0.91.  It was just the position in the style.

Thanks!