Inkscape.org
Beginners' Questions Request: Center of mass alignment
  1. #1
    mcandre mcandre @mcandre
    *

    Inkscape, CSS, and office document editors should introduce centering, horizontally and vertically, by center of gravity.

    Asymmetric objects such as logos makes width-height dimensional centering look lopsided, as if the compositional elements are stamped cookie-cutter onto the final canvas, rather than crafted.

    As well, aligning by center of gravity with other types of elements such as text, provides a new aesthetic tool to replace many rectilinear compositions, with flows that reflect natural physics.

    For center of mass calculations, take the 2D physics center of mass formula and apply it to a greyscale clone of the target object.

    Text in particular should include vertical centering relative to the baseline of the text (the bottom of the U in "jungle" not the J).

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Sounds like a reasonable request.

    Feature requests are managed in the tracker: https://inkscape.org/forums/beyond/how-to-report-bugs-or-request-new-features/

    In the meantime, one can find the center of mass using the Extensions>Visualize Path>Measure Path>Center of mass, the snap the object's rotation center to the center of mass and use the rotation center as a anchor.

    AFAIK, the Align dialog has tools for aligning text bast on the baseline anchor.

  3. #3
    inklinea inklinea @inklinea⛰️
    🏆

    As a workaround I wrote this to toggle the centre of rotation between the centre of the bounding box and the centre of mass.

    https://inkscape.org/forums/extensions/rotation-centre/

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Request: Center of mass alignment