Ticket #516 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Stylization: Adding support for text justification

Reported by: louisewatson Owned by: louisewatson
Priority: medium Milestone: 2.1
Component: Rendering Service Version:
Severity: major Keywords:
Cc: External ID: 1017413

Description

The justification text attribute was not implemented for either plain text or mtext.

Change History

Changed 4 years ago by louisewatson

  • owner changed from Louise Watson to louisewatson
  • status changed from new to assigned

Changed 4 years ago by louisewatson

  • status changed from assigned to closed
  • resolution set to fixed

This submission adds code to the font engine to process justification settings.

Small changes were made to RS_FontEngine for the plain text case. Text alignment adjustments are made for justification and then horizontal alignment is used to position the entire text block.

A bit of RichTextEngine? was reworked to support justification. Here the code needed to consider that the text might contain local justification changes; eg. stack fractions (\S). This required a change to the way the text run data is stored. Now the code organizes the data in blocks. Blocks consist of lines which may themselves contain other blocks.

Finally, while in the font engine, a problem with the \S mtext op-code was fixed. Now a code in the form of "\Sa;" works. That is, a stack fraction without a denominator evaluates correctly.

Changed 4 years ago by waltweltonlair

Louise fixed this with submission  https://trac.osgeo.org/mapguide/changeset/3109.

Changed 4 years ago by waltweltonlair

Merged fix into branch stream with submission  https://trac.osgeo.org/mapguide/changeset/3134.

Note: See TracTickets for help on using tickets.