Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#516 closed defect (fixed)

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 (4)

comment:1 by louisewatson, 17 years ago

Owner: changed from Louise Watson to louisewatson
Status: newassigned

comment:2 by louisewatson, 17 years ago

Resolution: fixed
Status: assignedclosed

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.

comment:3 by waltweltonlair, 17 years ago

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

comment:4 by waltweltonlair, 17 years ago

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

Note: See TracTickets for help on using tickets.