Author Topic: Problems with text alignment in Inkscape 0.91  (Read 3400 times)

July 03, 2017, 12:05:40 PM
Read 3400 times

wsdickerson

  • Sr. Newbie

  • Offline
  • **

  • 4
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

July 03, 2017, 05:26:12 PM
Reply #1

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 03, 2017, 05:36:50 PM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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  :)
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 04, 2017, 07:59:14 AM
Reply #3

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
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 ;-) )

July 06, 2017, 11:27:34 AM
Reply #4

wsdickerson

  • Sr. Newbie

  • Offline
  • **

  • 4
The bug report looks promising.  Also I'll try the current version.

Thanks!

July 08, 2017, 12:58:14 PM
Reply #5

flamingolady

  • IC Mentor

  • Offline
  • ******
  • Flamingo Lady

  • 154
  • Gender
    Female

    Female
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

July 25, 2017, 09:04:56 AM
Reply #6

wsdickerson

  • Sr. Newbie

  • Offline
  • **

  • 4
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.

July 25, 2017, 10:12:14 AM
Reply #7

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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?
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

July 28, 2017, 09:43:41 AM
Reply #8

wsdickerson

  • Sr. Newbie

  • Offline
  • **

  • 4
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!