[mapguide-trac] #516: Stylization: Adding support for text justification

MapGuide Open Source trac_mapguide at osgeo.org
Tue Mar 25 14:35:29 EDT 2008


#516: Stylization:  Adding support for text justification
-------------------------------+--------------------------------------------
 Reporter:  louisewatson       |         Owner:  louisewatson
     Type:  defect             |        Status:  closed      
 Priority:  medium             |     Milestone:  2.1         
Component:  Rendering Service  |       Version:              
 Severity:  major              |    Resolution:  fixed       
 Keywords:                     |   External_id:  1017413     
-------------------------------+--------------------------------------------
Changes (by louisewatson):

  * status:  assigned => closed
  * resolution:  => fixed

Comment:

 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.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/516#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list