<div dir="ltr"><div><div><div>Hi all,<br></div>back to the ubuntu font again, I realized that ligatures are not used. I thought it was automatic with OTF type fonts. Is there anything special to add to get the ligatures?<br>
</div>Best,<br></div>F.<br><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 28 January 2014 09:34, Flavien Lambert <span dir="ltr"><<a href="mailto:petit.lepton@gmail.com" target="_blank">petit.lepton@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"><div>Still another question...I managed to have the ubuntu light for both regular and italic as well as greek letters in the text but I am still unable to obtain greek letters in math text. Could you indicate to me the right way?<br>

</div><div>Thanks,<br></div><div>F.<br></div><div><br></div>\definefontfamily [mainface] [sans] [Ubuntu] [regularfont=ubuntulight,,italicfont=ubuntulightitalic,boldfont=ubuntu]<div class="im"><br>\definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:lowercaseitalic,tf=style:light]<br>
</div>
\definefallbackfamily [mainface] [math] [Ubuntu] [preset=range:greek,tf=style:light]<div class="im"><br>\definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:digitsnormal,tf=style:light]<br>\definefontfamily     [mainface] [math] [TeX Gyre Pagella Math]<br>

</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 28 January 2014 08:43, Flavien Lambert <span dir="ltr"><<a href="mailto:petit.lepton@gmail.com" target="_blank">petit.lepton@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"><div><div>Awesome!<br></div>Thanks a lot,<br></div>F.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">

<div><div>On 27 January 2014 19:50, Wolfgang Schuster <span dir="ltr"><<a href="mailto:schuster.wolfgang@gmail.com" target="_blank">schuster.wolfgang@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="word-wrap:break-word"><br><div><div>Am 27.01.2014 um 10:53 schrieb Flavien Lambert <<a href="mailto:petit.lepton@gmail.com" target="_blank">petit.lepton@gmail.com</a>>:</div>


<div><div><br><blockquote type="cite"><div dir="ltr"><div><div>Dear all, <br></div>I would like to use the light version of the Ubuntu font both for text and for text in math environment. The list of fonts is the following<br>


<br><i>mtxrun --script fonts --list --all  | grep ubuntu<br>
ubuntu                               ubuntu                            /home/flavien/.fonts/Ubuntu-R.ttf<br>ubuntubold                           ubuntubold                        /home/flavien/.fonts/Ubuntu-B.ttf<br>ubuntubolditalic                     ubuntubolditalic                  /home/flavien/.fonts/Ubuntu-BI.ttf<br>



ubuntucondensed                      ubuntucondensedregular            /home/flavien/.fonts/Ubuntu-C.ttf<br>ubuntucondensednormal                ubuntucondensedregular            /home/flavien/.fonts/Ubuntu-C.ttf<br>ubuntucondensedregular               ubuntucondensedregular            /home/flavien/.fonts/Ubuntu-C.ttf<br>



ubuntuitalic                         ubuntuitalic                      /home/flavien/.fonts/Ubuntu-RI.ttf<br>ubuntulight                          ubuntulight                       /home/flavien/.fonts/Ubuntu-L.ttf<br>ubuntulightitalic                    ubuntulightitalic                 /home/flavien/.fonts/Ubuntu-LI.ttf<br>



ubuntumedium                         ubuntumedium                      /home/flavien/.fonts/Ubuntu-M.ttf<br>ubuntumediumitalic                   ubuntumediumitalic                /home/flavien/.fonts/Ubuntu-MI.ttf<br>ubuntumono                           ubuntumonoregular                 /home/flavien/.fonts/UbuntuMono-R.ttf<br>



ubuntumonobold                       ubuntumonobold                    /home/flavien/.fonts/UbuntuMono-B.ttf<br>ubuntumonobolditalic                 ubuntumonobolditalic              /home/flavien/.fonts/UbuntuMono-BI.ttf<br>



ubuntumonoitalic                     ubuntumonoitalic                  /home/flavien/.fonts/UbuntuMono-RI.ttf<br>ubuntumononormal                     ubuntumonoregular                 /home/flavien/.fonts/UbuntuMono-R.ttf<br>



ubuntumonoregular                    ubuntumonoregular                 /home/flavien/.fonts/UbuntuMono-R.ttf<br>ubuntunormal                         ubuntu                            /home/flavien/.fonts/Ubuntu-R.ttf<br>


ubunturegular                        ubuntulight                       /home/flavien/.fonts/Ubuntu-L.ttf</i><br>
<br></div>I tried a script that I used before for Maven pro through,<br><div><br><i>\definefontfeature[default][default][script=latin]<br>\definefontfamily[mainface][sans][ubuntulight]<br>\definefallbackfamily [mainface] [math] [ubuntulight] [math:lowercaseitalic] [force=yes]<br>



\definefallbackfamily [mainface] [math] [ubuntulight] [math:digitsnormal]    [force=yes]<br>\definefontfamily     [mainface] [math] [TeX Gyre Pagella Math]<br>\definebodyfontenvironment [11pt][a=12pt,b=14.4pt,c=17.3pt,d=32pt,interlinespace=13pt]<br>



\setupbodyfont[mainface,11pt]</i><br><br></div><div>but it does not work (it is ok if I use ubuntu instead of ubuntulight).<br></div></div></blockquote><br></div></div></div><div>This doesn’t work because the name of the family is still “Ubuntu” and not “Ubuntu Light”,</div>


<div>(you can see in the attached image how the font is listed in my font manager) to use the light</div><div>alternative of the font add “tf=style:light” to \definefontfamily and \definefallbackfamily.</div><div><br></div>


<div><div>\definefontfamily [mainface] [sans] [Ubuntu] [tf=style:light]</div><div><br></div><div>\definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:lowercaseitalic,tf=style:light]</div><div>\definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:digitsnormal,tf=style:light]</div>


<div><div>\definefontfamily     [mainface] [math] [TeX Gyre Pagella Math]</div><div><br></div></div><div>\setupbodyfont[mainface,11pt]</div><div><br></div><div>\starttext</div><div>123 \math{123}</div><div>\stoptext</div>


<div><br></div><div>Wolfgang</div></div><img src="cid:BB28F9EE-AE1D-49D3-8F44-DE483357BFCB@localdomain" height="85" width="64"></div><br></div></div>___________________________________________________________________________________<br>



If your question is of interest to others as well, please add an entry to the Wiki!<br>
<br>
maillist : <a href="mailto:ntg-context@ntg.nl" target="_blank">ntg-context@ntg.nl</a> / <a href="http://www.ntg.nl/mailman/listinfo/ntg-context" target="_blank">http://www.ntg.nl/mailman/listinfo/ntg-context</a><br>
webpage  : <a href="http://www.pragma-ade.nl" target="_blank">http://www.pragma-ade.nl</a> / <a href="http://tex.aanhet.net" target="_blank">http://tex.aanhet.net</a><br>
archive  : <a href="http://foundry.supelec.fr/projects/contextrev/" target="_blank">http://foundry.supelec.fr/projects/contextrev/</a><br>
wiki     : <a href="http://contextgarden.net" target="_blank">http://contextgarden.net</a><br>
___________________________________________________________________________________<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>