ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Ubuntu Light font
@ 2014-01-27  9:53 Flavien Lambert
  2014-01-27 11:50 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Flavien Lambert @ 2014-01-27  9:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2121 bytes --]

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
ubuntuubuntu
ubuntu
/home/flavien/.fonts/Ubuntu-R.ttfubuntubold
ubuntubold
/home/flavien/.fonts/Ubuntu-B.ttfubuntubolditalic
ubuntubolditalic
/home/flavien/.fonts/Ubuntu-BI.ttfubuntucondensed
ubuntucondensedregular
/home/flavien/.fonts/Ubuntu-C.ttfubuntucondensednormal
ubuntucondensedregular
/home/flavien/.fonts/Ubuntu-C.ttfubuntucondensedregular
ubuntucondensedregular
/home/flavien/.fonts/Ubuntu-C.ttfubuntuitalic
ubuntuitalic
/home/flavien/.fonts/Ubuntu-RI.ttfubuntulight
ubuntulight
/home/flavien/.fonts/Ubuntu-L.ttfubuntulightitalic
ubuntulightitalic
/home/flavien/.fonts/Ubuntu-LI.ttfubuntumedium
ubuntumedium
/home/flavien/.fonts/Ubuntu-M.ttfubuntumediumitalic
ubuntumediumitalic
/home/flavien/.fonts/Ubuntu-MI.ttfubuntumono
ubuntumonoregular
/home/flavien/.fonts/UbuntuMono-R.ttfubuntumonobold
ubuntumonobold
/home/flavien/.fonts/UbuntuMono-B.ttfubuntumonobolditalic
ubuntumonobolditalic
/home/flavien/.fonts/UbuntuMono-BI.ttfubuntumonoitalic
ubuntumonoitalic
/home/flavien/.fonts/UbuntuMono-RI.ttfubuntumononormal
ubuntumonoregular
/home/flavien/.fonts/UbuntuMono-R.ttfubuntumonoregular
ubuntumonoregular
/home/flavien/.fonts/UbuntuMono-R.ttfubuntunormal
ubuntu
/home/flavien/.fonts/Ubuntu-R.ttfubunturegular
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).
Thanks for your help,
F.

[-- Attachment #1.2: Type: text/html, Size: 3077 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ubuntu Light font
  2014-01-27  9:53 Ubuntu Light font Flavien Lambert
@ 2014-01-27 11:50 ` Wolfgang Schuster
  2014-01-28  0:43   ` Flavien Lambert
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-01-27 11:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 3690 bytes --]


Am 27.01.2014 um 10:53 schrieb Flavien Lambert <petit.lepton@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.ttf
> ubuntubold                           ubuntubold                        /home/flavien/.fonts/Ubuntu-B.ttf
> ubuntubolditalic                     ubuntubolditalic                  /home/flavien/.fonts/Ubuntu-BI.ttf
> ubuntucondensed                      ubuntucondensedregular            /home/flavien/.fonts/Ubuntu-C.ttf
> ubuntucondensednormal                ubuntucondensedregular            /home/flavien/.fonts/Ubuntu-C.ttf
> ubuntucondensedregular               ubuntucondensedregular            /home/flavien/.fonts/Ubuntu-C.ttf
> ubuntuitalic                         ubuntuitalic                      /home/flavien/.fonts/Ubuntu-RI.ttf
> ubuntulight                          ubuntulight                       /home/flavien/.fonts/Ubuntu-L.ttf
> ubuntulightitalic                    ubuntulightitalic                 /home/flavien/.fonts/Ubuntu-LI.ttf
> ubuntumedium                         ubuntumedium                      /home/flavien/.fonts/Ubuntu-M.ttf
> ubuntumediumitalic                   ubuntumediumitalic                /home/flavien/.fonts/Ubuntu-MI.ttf
> ubuntumono                           ubuntumonoregular                 /home/flavien/.fonts/UbuntuMono-R.ttf
> ubuntumonobold                       ubuntumonobold                    /home/flavien/.fonts/UbuntuMono-B.ttf
> ubuntumonobolditalic                 ubuntumonobolditalic              /home/flavien/.fonts/UbuntuMono-BI.ttf
> ubuntumonoitalic                     ubuntumonoitalic                  /home/flavien/.fonts/UbuntuMono-RI.ttf
> ubuntumononormal                     ubuntumonoregular                 /home/flavien/.fonts/UbuntuMono-R.ttf
> ubuntumonoregular                    ubuntumonoregular                 /home/flavien/.fonts/UbuntuMono-R.ttf
> ubuntunormal                         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

[-- Attachment #1.2.1: Type: text/html, Size: 8297 bytes --]

[-- Attachment #1.2.2: ubuntu.jpg --]
[-- Type: image/jpg, Size: 65980 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ubuntu Light font
  2014-01-27 11:50 ` Wolfgang Schuster
@ 2014-01-28  0:43   ` Flavien Lambert
  2014-01-28  1:34     ` Flavien Lambert
  0 siblings, 1 reply; 8+ messages in thread
From: Flavien Lambert @ 2014-01-28  0:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1.1: Type: text/plain, Size: 4006 bytes --]

Awesome!
Thanks a lot,
F.


On 27 January 2014 19:50, Wolfgang Schuster <schuster.wolfgang@gmail.com>wrote:

>
> Am 27.01.2014 um 10:53 schrieb Flavien Lambert <petit.lepton@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.ttfubunturegular
> 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@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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.1.2: Type: text/html, Size: 5649 bytes --]

[-- Attachment #1.2: ubuntu.jpg --]
[-- Type: image/jpg, Size: 65980 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ubuntu Light font
  2014-01-28  0:43   ` Flavien Lambert
@ 2014-01-28  1:34     ` Flavien Lambert
  2014-01-29  8:04       ` Flavien Lambert
  2014-01-29 12:31       ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Flavien Lambert @ 2014-01-28  1:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1.1: Type: text/plain, Size: 4951 bytes --]

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@gmail.com> wrote:

> Awesome!
> Thanks a lot,
> F.
>
>
> On 27 January 2014 19:50, Wolfgang Schuster <schuster.wolfgang@gmail.com>wrote:
>
>>
>> Am 27.01.2014 um 10:53 schrieb Flavien Lambert <petit.lepton@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@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
>>
>> ___________________________________________________________________________________
>>
>
>

[-- Attachment #1.1.2: Type: text/html, Size: 6888 bytes --]

[-- Attachment #1.2: ubuntu.jpg --]
[-- Type: image/jpg, Size: 65980 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ubuntu Light font
  2014-01-28  1:34     ` Flavien Lambert
@ 2014-01-29  8:04       ` Flavien Lambert
  2014-01-30 12:22         ` Wolfgang Schuster
  2014-01-29 12:31       ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: Flavien Lambert @ 2014-01-29  8:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1.1: Type: text/plain, Size: 5241 bytes --]

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@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@gmail.com> wrote:
>
>> Awesome!
>> Thanks a lot,
>> F.
>>
>>
>> On 27 January 2014 19:50, Wolfgang Schuster <schuster.wolfgang@gmail.com>wrote:
>>
>>>
>>> Am 27.01.2014 um 10:53 schrieb Flavien Lambert <petit.lepton@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@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
>>>
>>> ___________________________________________________________________________________
>>>
>>
>>
>

[-- Attachment #1.1.2: Type: text/html, Size: 11507 bytes --]

[-- Attachment #1.2: ubuntu.jpg --]
[-- Type: image/jpg, Size: 65980 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ubuntu Light font
  2014-01-28  1:34     ` Flavien Lambert
  2014-01-29  8:04       ` Flavien Lambert
@ 2014-01-29 12:31       ` Wolfgang Schuster
  2014-01-30  5:36         ` Flavien Lambert
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2014-01-29 12:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.01.2014 um 02:34 schrieb Flavien Lambert <petit.lepton@gmail.com>:

> 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]

You tried “range:greek” but this is wrong because the preset can only be used for normal greek text, in math mode you have to choose one of the following presets:

- math:lowercasegreeknormal
- math:lowercasegreekitalic
- math:uppercasegreeknormal
- math:uppercasegreekitalic
- math:lowercasegreekbold
- math:lowercasegreekbolditalic
- math:uppercasegreekbold
- math:uppercasegreekbolditalic

To use the lightitalic style of the ubuntu font you have to use the name of file methods because there is no lightitalic pattern for the style method (but I try add it).

\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]
\definefallbackfamily [mainface] [math] [Ubuntu] [preset=math:lowercasegreekitalic,tf=name:ubuntulightitalic]

\definefontfamily     [mainface] [math] [TeX Gyre Pagella Math]

\setupbodyfont[mainface,11pt]

\starttext
123 \math{123 \alpha\beta\gamma}
\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ubuntu Light font
  2014-01-29 12:31       ` Wolfgang Schuster
@ 2014-01-30  5:36         ` Flavien Lambert
  0 siblings, 0 replies; 8+ messages in thread
From: Flavien Lambert @ 2014-01-30  5:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2672 bytes --]

Thanks Wolfgang, it works really well! Let me be very annoying and ask you
about the ligatures...
Thanks again,
F.


On 29 January 2014 20:31, Wolfgang Schuster <schuster.wolfgang@gmail.com>wrote:

>
> Am 28.01.2014 um 02:34 schrieb Flavien Lambert <petit.lepton@gmail.com>:
>
> > 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]
>
> You tried "range:greek" but this is wrong because the preset can only be
> used for normal greek text, in math mode you have to choose one of the
> following presets:
>
> - math:lowercasegreeknormal
> - math:lowercasegreekitalic
> - math:uppercasegreeknormal
> - math:uppercasegreekitalic
> - math:lowercasegreekbold
> - math:lowercasegreekbolditalic
> - math:uppercasegreekbold
> - math:uppercasegreekbolditalic
>
> To use the lightitalic style of the ubuntu font you have to use the name
> of file methods because there is no lightitalic pattern for the style
> method (but I try add it).
>
> \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]
> \definefallbackfamily [mainface] [math] [Ubuntu]
> [preset=math:lowercasegreekitalic,tf=name:ubuntulightitalic]
>
> \definefontfamily     [mainface] [math] [TeX Gyre Pagella Math]
>
> \setupbodyfont[mainface,11pt]
>
> \starttext
> 123 \math{123 \alpha\beta\gamma}
> \stoptext
>
> Wolfgang
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3793 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Ubuntu Light font
  2014-01-29  8:04       ` Flavien Lambert
@ 2014-01-30 12:22         ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2014-01-30 12:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 29.01.2014 um 09:04 schrieb Flavien Lambert <petit.lepton@gmail.com>:

> 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?

Ligatures are used for the font but the difference between the characters without ligatures is minimal. When you process the following document you can see the difference between the f-combinations without (top picture) and with (bottom picture) ligatures.

\define[2]\Test
  {\startTEXpage[offset=1ex]
     \vbox\bgroup \offinterlineskip
       \ruledhbox{\definedfont[file:#1*none    sa 10]#2}
       \ruledhbox{\definedfont[file:#1*default sa 10]#2}
     \egroup
   \stopTEXpage}

\starttext

% TeX Gyre Termes Regular

%\Test{texgyretermesregular}{fi}

% Ubuntu Regular

\Test{ubuntur}{ff}
\Test{ubuntur}{fi}
\Test{ubuntur}{fl}
\Test{ubuntur}{ffi}
\Test{ubuntur}{ffl}

% Ubuntu Light

\Test{ubuntul}{ff}
\Test{ubuntul}{fi}
\Test{ubuntul}{fl}
\Test{ubuntul}{ffi}
\Test{ubuntul}{ffl}

\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-01-30 12:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-27  9:53 Ubuntu Light font Flavien Lambert
2014-01-27 11:50 ` Wolfgang Schuster
2014-01-28  0:43   ` Flavien Lambert
2014-01-28  1:34     ` Flavien Lambert
2014-01-29  8:04       ` Flavien Lambert
2014-01-30 12:22         ` Wolfgang Schuster
2014-01-29 12:31       ` Wolfgang Schuster
2014-01-30  5:36         ` Flavien Lambert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).