#12 Line alignment in BlockComposer


Currently, if you add text with multiple fonts / size in a single frame using the BlockComposer, the line of text is aligned to the bottom of each glyph.
I added an enum property to the BlockComposer, named LineAlignment, that allows the user of the class to specify that, for each line of text in the frame, the glyphs should be aligned using one of Top, Bottom, Center, BaseLine. This allows, among others, to align the glyphs using the baseline when multiple fonts or sizes are used on the same line.
I joined the new version of the BlockComposer, along with the LineAlignmentEnum file.


  • Manuel Guilbault

    Modified version of the BlockComposer class

  • Stefano Chizzolini

    Hi Manuel,
    thank you for your contribution, it's really appreciated! I'm enhancing it with inline image support and sub-/super-script alignment. It will be included in 0.1.2 release; I'll notify here when it's committed on the SVN repo.

  • Stefano Chizzolini

    • assigned_to: nobody --> stechio
  • Stefano Chizzolini

    Line alignment on block composition has been added by revision 71 (trunk) on the SVN repo; it will be part of 0.1.2 release.

    thank you

  • Stefano Chizzolini

    • status: open --> closed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks