[NTG-context] Ubuntu Light font

Flavien Lambert petit.lepton at gmail.com
Wed Jan 29 09:04:40 CET 2014


Hi all,
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?
Best,
F.


On 28 January 2014 09:34, Flavien Lambert <petit.lepton at gmail.com> wrote:

> 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?
> Thanks,
> F.
>
> \definefontfamily [mainface] [sans] [Ubuntu]
> [regularfont=ubuntulight,,italicfont=ubuntulightitalic,boldfont=ubuntu]
>
> \definefallbackfamily [mainface] [math] [Ubuntu]
> [preset=math:lowercaseitalic,tf=style:light]
> \definefallbackfamily [mainface] [math] [Ubuntu]
> [preset=range:greek,tf=style:light]
>
> \definefallbackfamily [mainface] [math] [Ubuntu]
> [preset=math:digitsnormal,tf=style:light]
> \definefontfamily     [mainface] [math] [TeX Gyre Pagella Math]
>
>
> On 28 January 2014 08:43, Flavien Lambert <petit.lepton at gmail.com> wrote:
>
>> Awesome!
>> Thanks a lot,
>> F.
>>
>>
>> On 27 January 2014 19:50, Wolfgang Schuster <schuster.wolfgang at gmail.com>wrote:
>>
>>>
>>> Am 27.01.2014 um 10:53 schrieb Flavien Lambert <petit.lepton at gmail.com>:
>>>
>>> Dear all,
>>> 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
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *mtxrun --script fonts --list --all  | grep ubuntu
>>> ubuntu                               ubuntu
>>> /home/flavien/.fonts/Ubuntu-R.ttfubuntubold
>>> ubuntubold
>>> /home/flavien/.fonts/Ubuntu-B.ttfubuntubolditalic
>>> ubuntubolditalic                  /home/flavien/.fonts/Ubuntu-BI.ttf
>>> ubuntucondensed                      ubuntucondensedregular
>>> /home/flavien/.fonts/Ubuntu-C.ttfubuntucondensednormal
>>> ubuntucondensedregular
>>> /home/flavien/.fonts/Ubuntu-C.ttfubuntucondensedregular
>>> ubuntucondensedregular            /home/flavien/.fonts/Ubuntu-C.ttf
>>> ubuntuitalic                         ubuntuitalic
>>> /home/flavien/.fonts/Ubuntu-RI.ttfubuntulight
>>> ubuntulight
>>> /home/flavien/.fonts/Ubuntu-L.ttfubuntulightitalic
>>> ubuntulightitalic                 /home/flavien/.fonts/Ubuntu-LI.ttf
>>> ubuntumedium                         ubuntumedium
>>> /home/flavien/.fonts/Ubuntu-M.ttfubuntumediumitalic
>>> ubuntumediumitalic
>>> /home/flavien/.fonts/Ubuntu-MI.ttfubuntumono
>>> ubuntumonoregular                 /home/flavien/.fonts/UbuntuMono-R.ttf
>>> ubuntumonobold                       ubuntumonobold
>>> /home/flavien/.fonts/UbuntuMono-B.ttfubuntumonobolditalic
>>> ubuntumonobolditalic              /home/flavien/.fonts/UbuntuMono-BI.ttf
>>> ubuntumonoitalic                     ubuntumonoitalic
>>> /home/flavien/.fonts/UbuntuMono-RI.ttfubuntumononormal
>>> ubuntumonoregular                 /home/flavien/.fonts/UbuntuMono-R.ttf
>>> ubuntumonoregular                    ubuntumonoregular
>>> /home/flavien/.fonts/UbuntuMono-R.ttfubuntunormal
>>> ubuntu                            /home/flavien/.fonts/Ubuntu-R.ttf
>>> ubunturegular                        ubuntulight
>>> /home/flavien/.fonts/Ubuntu-L.ttf*
>>>
>>> I tried a script that I used before for Maven pro through,
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *\definefontfeature[default][default][script=latin]\definefontfamily[mainface][sans][ubuntulight]\definefallbackfamily
>>> [mainface] [math] [ubuntulight] [math:lowercaseitalic] [force=yes]
>>> \definefallbackfamily [mainface] [math] [ubuntulight]
>>> [math:digitsnormal]    [force=yes]\definefontfamily     [mainface] [math]
>>> [TeX Gyre Pagella Math]\definebodyfontenvironment
>>> [11pt][a=12pt,b=14.4pt,c=17.3pt,d=32pt,interlinespace=13pt]
>>> \setupbodyfont[mainface,11pt]*
>>>
>>> but it does not work (it is ok if I use ubuntu instead of ubuntulight).
>>>
>>>
>>> This doesn't work because the name of the family is still "Ubuntu" and
>>> not "Ubuntu Light",
>>> (you can see in the attached image how the font is listed in my font
>>> manager) to use the light
>>> alternative of the font add "tf=style:light" to \definefontfamily and
>>> \definefallbackfamily.
>>>
>>> \definefontfamily [mainface] [sans] [Ubuntu] [tf=style:light]
>>>
>>> \definefallbackfamily [mainface] [math] [Ubuntu]
>>> [preset=math:lowercaseitalic,tf=style:light]
>>> \definefallbackfamily [mainface] [math] [Ubuntu]
>>> [preset=math:digitsnormal,tf=style:light]
>>> \definefontfamily     [mainface] [math] [TeX Gyre Pagella Math]
>>>
>>> \setupbodyfont[mainface,11pt]
>>>
>>> \starttext
>>> 123 \math{123}
>>> \stoptext
>>>
>>> Wolfgang
>>>
>>>
>>> ___________________________________________________________________________________
>>> If your question is of interest to others as well, please add an entry
>>> to the Wiki!
>>>
>>> maillist : ntg-context at ntg.nl /
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>>> archive  : http://foundry.supelec.fr/projects/contextrev/
>>> wiki     : http://contextgarden.net
>>>
>>> ___________________________________________________________________________________
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140129/52ee078d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ubuntu.jpg
Type: image/jpg
Size: 65980 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20140129/52ee078d/attachment-0001.jpg>


More information about the ntg-context mailing list