<div dir="ltr">Best practice is not hardcode, but measure the text and set the font size as needed.<div>You can use Pango to measure the text.</div><div>Example code in Memorize activity:</div><div><br></div><div><a href="https://github.com/godiard/memorize-activity/blob/master/svgcard.py#L303" target="_blank">https://github.com/godiard/memorize-activity/blob/master/svgcard.py#L303</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 24, 2016 at 9:15 AM, Yash Agarwal <span dir="ltr"><<a href="mailto:agrwal.ysh94@gmail.com" target="_blank">agrwal.ysh94@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div>In this <a href="https://lh3.googleusercontent.com/T65HVKfDOZg53ESHmipRMfrLAHAoVJKAqxWPQcGD1ywRNF8YF11B65tW-PuN5mlsDdP5GKUzA5giBfG_66Fv7MNsMsEGAAYF3t6pobEPNXeUNQITv9D-WqzyiY8XGeJcWS_nc48f6X11DzcVvrQBduktjaIGrGZ5F2HYolfbTTmRrfHjFR7fOUSqID3tLOWpIgRxGWAbwoDz4ywCFbl79LDyqUUI1xHg1NRdjO_1q1tUA0Fcq6NfAhSipwMayLL6GBUjmNQB9rjGyN_UQXcbEhoy1x_9X4wZARcLChWp5SrBuWerQIjbBmydloiYGtWLz-rF1JHn43KDA-ctpTfz71yEhQi-e1_iVaghHeEUDTthLJVkFFHGNkF7GWdWZ0H6c2p38_akz2UoI5sWnmZ2uQeOhaApZqUFOv1tjb7iHk77zNWhig7KjjCrjJXg9qTrQxVJ4qYxwNtVowr1sakx_yW0Let3ytvnbOcinGhcdOrsQ84RkmOFxkVcJyCgfu9OMZlxwSQMh0yRIdyMso4BXiSOPuZQ11n4RIO2ZARUDugs1KX35CloKjlYHA99MZs44_KEQlRCAuOk328HwgRu1XU_VBmEkN0Q=w1624-h913-no" target="_blank">pic</a> you can see the font size and the grid below are way too large for the screen of a XO-4, this looked just fine on my laptop(at 1920 x 1080)</div><div><span style="line-height:1.5">Assuming this is a common issue, what is the general way this is handled in a sugar activity or should I just hard code the sizes to  a lower value and not worry about multiple screen sizes?</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">with regards,</span></div><div><span style="line-height:1.5">Yash Agarwal    </span></div></div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" rel="noreferrer" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><table border="0" cellpadding="0" cellspacing="0" width="470" style="color:rgb(136,136,136);font-size:12.8px;font-family:'Times New Roman';width:470px"><tbody><tr valign="top"><td style="padding-left:10px;width:10px;padding-right:10px"><img src="https://s3.amazonaws.com/ucwebapp.wisestamp.com/a2cdffca-bc96-4966-b4fa-c3fa79edb131/12112365_414949315381645_4106803690337175030_n.format_png.resize_120x.png" alt="photo" height=" " width="65" style="border-radius:4px;width:65px;max-width:120px"></td><td style="border-right-width:0px;border-right-style:solid;border-right-color:rgb(69,102,142)"></td><td style="font-family:Arial;text-align:initial;font-stretch:normal;font-size:14px;padding:0px 10px"><div style="color:rgb(100,100,100)"><b>Gonzalo Odiard</b><br>Lider de proyecto</div><div style="font-size:13px;padding:5px 0px"><a href="tel:tel.:+4210-7748" style="color:rgb(141,141,141);text-decoration:none" target="_blank">tel.: </a><span style="font-family:arial,sans-serif;font-size:small;background-color:rgb(255,255,255)"><font color="#666666">2081-6424 y 2082-0312</font></span><font color="#8d8d8d"> | </font><span style="color:rgb(141,141,141);text-align:initial;white-space:nowrap;display:inline-block"><a href="http://www.trinom.io/" style="color:rgb(141,141,141);text-decoration:none" target="_blank">www.trinom.io</a></span><span style="color:rgb(141,141,141);text-align:initial"> </span><span style="color:rgb(141,141,141);text-align:initial"> </span><span style="color:rgb(141,141,141);text-align:initial"> </span><span style="color:rgb(69,102,142);text-align:initial;display:inline-block"></span><span style="color:rgb(141,141,141);text-align:initial"> </span><span style="color:rgb(141,141,141);text-align:initial;display:inline-block">Av Calchaqui 4936· 2do Piso. Quilmes</span></div><div style="color:rgb(100,100,100);margin-top:5px"><a href="http://www.facebook.com/trinomiosrl" target="_blank"><img src="https://s3.amazonaws.com/images.wisestamp.com/icons_32/facebook.png" width="16" style="border-radius:0px;border:0px;width:16px"></a> <a href="https://www.linkedin.com/company/trinom-io" target="_blank"><img src="https://s3.amazonaws.com/images.wisestamp.com/icons_32/linkedin.png" width="16" alt="" style="border-radius:0px;border:0px;width:16px"></a></div><div style="color:rgb(100,100,100)"><br></div></td></tr></tbody></table></div></div></div></div></div>
</div></div>