[Bugs] #610 NORM: Journal Palette does not manage too many characters for a title correctly

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Wed Apr 1 12:44:28 EDT 2009


#610: Journal Palette does not manage too many characters for a title correctly
-----------------------------------------------+----------------------------
    Reporter:  IwikiwI                         |          Owner:  tomeu      
        Type:  enhancement                     |         Status:  new        
    Priority:  Normal                          |      Milestone:  0.84       
   Component:  journal                         |        Version:  Unspecified
    Severity:  Blocker                         |     Resolution:             
    Keywords:  right click journal sugar-love  |   Distribution:  Fedora     
Status_field:  Assigned                        |  
-----------------------------------------------+----------------------------

Comment(by IwikiwI):

 Eben,
 So here's what I am thinking

 If say 10 characters are 20 pango units. And naturally 20 characters will
 definitely be above 20 pango units. So we can be sloppy, and ideally limit
 characters by pango units. I will see if theres a method to slice a string
 with respect to pango units. If not long way parse each character add up,
 and slice then.

 And if the characters are around say 8-13 then we do a check on each
 character width, and perform a trim.

 http://www.pygtk.org/pygtk2reference/class-pangofontdescription.html
 #method-pangofontdescription--get-size

-- 
Ticket URL: <http://dev.sugarlabs.org/ticket/610#comment:10>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list