From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Ubuntu Light font
Date: Mon, 27 Jan 2014 12:50:52 +0100 [thread overview]
Message-ID: <02B86748-0A8B-46A2-96DD-55C732517DB7@gmail.com> (raw)
In-Reply-To: <CAK=1gbpqs5SAmFHX8U3WvXohyTnx_TN6mrxAOPt3kO3YU+WL6w@mail.gmail.com>
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-01-27 11:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-27 9:53 Flavien Lambert
2014-01-27 11:50 ` Wolfgang Schuster [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=02B86748-0A8B-46A2-96DD-55C732517DB7@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).