#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 , 17 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:3 by , 17 years ago
Louise fixed this with submission https://trac.osgeo.org/mapguide/changeset/3109.
comment:4 by , 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.
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.