Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#12 Line alignment in BlockComposer

closed
None
5
2012-01-20
2011-12-09
Manuel Guilbault
No

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.

Discussion

  • LineAlignmentEnum enumeration

     
    Attachments
  • Modified version of the BlockComposer class

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

     
    • assigned_to: nobody --> stechio
     
  • 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

     
    • status: open --> closed