[Bugs] #282 NORM: Sugar UI fonts are extremely small (SoaS1 running off XO nand) at certain locations

SugarLabs Bugs bugtracker-noreply at sugarlabs.org
Sat Feb 28 05:42:22 EST 2009


#282: Sugar UI fonts are extremely small (SoaS1 running off XO nand) at certain
locations
----------------------------+-----------------------------------------------
    Reporter:  garycmartin  |          Owner:  marcopg                    
        Type:  defect       |         Status:  new                        
    Priority:  Normal       |      Milestone:  Unspecified by Release Team
   Component:  SoaS         |        Version:  0.83.x                     
    Severity:  Major        |     Resolution:                             
    Keywords:               |   Distribution:  SoaS                       
Status_field:  New          |  
----------------------------+-----------------------------------------------

Comment(by tomeu):

 Ok, so tested this approach on an eeepc and a XO and seems to work fine.
 Gtk/pango calculates correctly the default font size so it's a matter of
 setting the correct SUGAR_SCALING values for icon sizes, etc

 What needs to be done is:

 - Remove any font sizes from sugar/data/gtkrc.em

 - Remove any font sizes from sugar-toolkit/src/sugar/graphics/style.py

 - Remove any font sizes from terminal-activity/terminal.py (Monospace 8)

 - Change the kickstart file to generate a .Xclients file that will guess
 the correct SUGAR_SCALING value from xdpyinfo:

 {{{
 xsetroot -def

 RESOLUTION=$(xdpyinfo | grep resolution | sed "s/.*
 \\([0-9][0-9]*\\)x.*/\\1/")

 if [ "$RESOLUTION" -gt 150 ]; then
     SUGAR_SCALING=100
 else
     SUGAR_SCALING=72
 fi

 SUGAR_SCALING=$SUGAR_SCALING sugar

 }}}

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


More information about the Bugs mailing list