From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86136 Path: news.gmane.org!not-for-mail From: Flavien Lambert Newsgroups: gmane.comp.tex.context Subject: Re: Ubuntu Light font Date: Thu, 30 Jan 2014 13:36:18 +0800 Message-ID: References: <02B86748-0A8B-46A2-96DD-55C732517DB7@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0212851126==" X-Trace: ger.gmane.org 1391060222 20357 80.91.229.3 (30 Jan 2014 05:37:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 05:37:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 30 06:37:11 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8kJI-00088q-Tg for gctc-ntg-context-518@m.gmane.org; Thu, 30 Jan 2014 06:37:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE946101F1; Thu, 30 Jan 2014 06:37:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id U5pGCmxbyfLC; Thu, 30 Jan 2014 06:37:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BAE5C101E6; Thu, 30 Jan 2014 06:37:04 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 66208101E6 for ; Thu, 30 Jan 2014 06:37:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id N5BEon38bA8b for ; Thu, 30 Jan 2014 06:36:58 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 36F91101E1 for ; Thu, 30 Jan 2014 06:36:58 +0100 (CET) Original-Received: from mail-qa0-x233.google.com (mail-qa0-x233.google.com [IPv6:2607:f8b0:400d:c00::233]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0U5atF3015304 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 30 Jan 2014 06:36:56 +0100 Original-Received: by mail-qa0-f51.google.com with SMTP id f11so3865945qae.10 for ; Wed, 29 Jan 2014 21:36:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mr9B5vmoMUU2EB9xjYL4M561R1TE4XbYk3dkDjgusmk=; b=n0FBj+JUvhSccyhHs1hdxyBSxWK/V1gytweJpe7W0qgi1ZCo6jKOGVochT93Wppn4z YwLxFAV+PKMhufStGfRGrOgxefczgTgWODqxK8N2n33ideLnodVSjKNBPmmAsH3LiLAM t+XvDnMj3IWNEZv9wV/b5ZZJTYB1HMaQce5DllaceEnEzYgEo9QQRm89eKFSGP1URZm0 mksRk4aGtpHHFHJO8nlbZNcZlyXzis+hcfVx++77GhxBJMKYClErI8guYZL4cJM2X/Y/ v2VjoxTZ8snc+IBhGWZEK+ou1oRAxcvXS6HWrINfne8rmA036PqxcGTI3rVZm4Q1yRFq Jq7A== X-Received: by 10.140.86.116 with SMTP id o107mr17468700qgd.67.1391060178777; Wed, 29 Jan 2014 21:36:18 -0800 (PST) Original-Received: by 10.96.43.234 with HTTP; Wed, 29 Jan 2014 21:36:18 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c00::233; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TLk5AU5i - ab61f96f5781 - 20140130 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86136 Archived-At: --===============0212851126== Content-Type: multipart/alternative; boundary=001a11c13f08d153dc04f1296f65 --001a11c13f08d153dc04f1296f65 Content-Type: text/plain; charset=ISO-8859-1 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 wrote: > > Am 28.01.2014 um 02:34 schrieb Flavien Lambert : > > > 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 > > ___________________________________________________________________________________ > --001a11c13f08d153dc04f1296f65 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
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 r= egular and italic as well as greek letters in the text but I am still unabl= e to obtain greek letters in math text. Could you indicate to me the right = way?
> Thanks,
> F.
>
> \definefontfamily [mainface] [sans] [Ubuntu] [regularfont=3Dubuntuligh= t,,italicfont=3Dubuntulightitalic,boldfont=3Dubuntu]
> \definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Dmath:lowerc= aseitalic,tf=3Dstyle:light]
> \definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Drange:greek= ,tf=3Dstyle:light]
> \definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Dmath:digits= normal,tf=3Dstyle:light]
> \definefontfamily     [mainface] [math] [TeX Gyre Pagella Ma= th]

You tried “range:greek” but this is wrong because the pre= set 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=3Dstyle:light]

\definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Dmath:lowercaseit= alic,tf=3Dstyle:light]
\definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Dmath:digitsnorma= l,tf=3Dstyle:light]
\definefallbackfamily [mainface] [math] [Ubuntu] [preset=3Dmath:lower= casegreekitalic,tf=3Dname: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 t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >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
___________________________________________________________________________= ________

--001a11c13f08d153dc04f1296f65-- --===============0212851126== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0212851126==--