From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/55665 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Questions regarding simplefonts Date: Tue, 19 Jan 2010 21:15:12 +0100 Message-ID: <4B5612D0.2010501@googlemail.com> References: <51b0095d1001190956q3141f38ao127fbb54ed25cd4@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0581268144==" X-Trace: ger.gmane.org 1263932168 26272 80.91.229.12 (19 Jan 2010 20:16:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Jan 2010 20:16:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 19 21:16:01 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1NXKUa-0001nT-6w for gctc-ntg-context-518@m.gmane.org; Tue, 19 Jan 2010 21:16:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6E078C9CE7; Tue, 19 Jan 2010 21:15:57 +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 vVXpeMyxPqEY; Tue, 19 Jan 2010 21:15:40 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 56F69C9CF2; Tue, 19 Jan 2010 21:15:40 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3B731C9CF2 for ; Tue, 19 Jan 2010 21:15:36 +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 SPC5bG1R064D for ; Tue, 19 Jan 2010 21:15:15 +0100 (CET) Original-Received: from mail-bw0-f220.google.com (mail-bw0-f220.google.com [209.85.218.220]) by balder.ntg.nl (Postfix) with ESMTP id D3D76C9CE7 for ; Tue, 19 Jan 2010 21:15:14 +0100 (CET) Original-Received: by bwz20 with SMTP id 20so3425821bwz.14 for ; Tue, 19 Jan 2010 12:15:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type; bh=UMHn5irFMJEdHa5JQV5tbYecyGXRnzoA4w3RHriybHM=; b=xsmCwM8eKGR1NWhPX2xshrat9LwKytFZGWe7bxQi9DcCjte6OY6PbHhMrpZgEzDpBw Ov7xhsV0re+70rW50zTZjPLFrlCGlVjejjf1NXmXydrR909aXnZOEZqfQKn+UtPnJn6K ahDbb/JmSXS7OpWC361BTJ9YChV+PbBCWJqcc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=VRr24KODa3s0+AqXtZaVksU9lDZSHNyDGW3nCevcCRiHlopoXrdjsEgb5Ur2uaINz4 sk9fRV+Q2lj5IqYG83eKZXeZLW31hRGvCnlgpJ8LirXwqLSi996M2AH98rIsj65VHxcH 4fUPH6zfwxutwaBapZENcdlE2GzxACKIUl+qg= Original-Received: by 10.204.30.208 with SMTP id v16mr4595337bkc.18.1263932114406; Tue, 19 Jan 2010 12:15:14 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B292BAE.dip.t-dialin.net [91.41.43.174]) by mx.google.com with ESMTPS id 13sm1668164bwz.2.2010.01.19.12.15.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 19 Jan 2010 12:15:13 -0800 (PST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 In-Reply-To: <51b0095d1001190956q3141f38ao127fbb54ed25cd4@mail.gmail.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:55665 Archived-At: This is a multi-part message in MIME format. --===============0581268144== Content-Type: multipart/alternative; boundary="------------080802090301030200010807" This is a multi-part message in MIME format. --------------080802090301030200010807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Am 19.01.10 18:56, schrieb Nicolas Girard: > Hi again, > although simplefonts seems very promising and I put the highest hopes > on it, the lack of proper documentation simply prevents me to use it, > which is somewhat frustrating. I try to provide a proper documentation when I release the next version of my module. > Here are some of my unanswered questions about simplefonts ; I'm > willing to update the wiki with any informations this thread could > bring. > > 1) How can I specify that the default font features should enable the > standard ligatures (liga) ? > I blindly tried several possibilities like > \setupsimplefonts[features={liga}] but none worked Ligatures are enabled in ConTeXt default fontfeature and simplefonts applies only the default features to the font, when you don't get them in your document this could be a font problem, in most cases it helps to select a different script. \setupsimplefonts[script=latin] or \setmainfont[...][script=latin] > 2) How can I get \sc to work with a font family whose small caps are > defined as a font feature, rather than dedicated .otf files ? The caps font is loaded by default by the smallcaps fontfeature, if this did not work the problem could be the same as for the ligatures. > 3) How can I get font expansion and protrusion to work using > simplefonts' dedicated keywords ? There again, I spent more than 30 > minutes trying every combination I could think of, unsuccessfully. > I think it would be useful to have a complete example of code > involving simplefonts and expansion/protrusion that people could copy > & paste from the wiki You can use the two keys expamsion ans protrusion, their values are the same as you have e to write in \definefontfeature. \setupsimplefonts[expansion=quality,protrusion=quality] or \setmainfont[...][expansion=quality,protrusion=quality] Examples are available on bitbucket: http://bitbucket.org/wolfs/simplefonts/src/tip/files/ Wolfgang --------------080802090301030200010807 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Am 19.01.10 18:56, schrieb Nicolas Girard:
Hi again,
although simplefonts seems very promising and I put the highest hopes
on it, the lack of proper documentation simply prevents me to use it,
which is somewhat frustrating.
I try to provide a proper documentation when I release the next
version of my module.
Here are some of my unanswered questions about simplefonts ; I'm
willing to update the wiki with any informations this thread could
bring.

1) How can I specify that the default font features should enable the
standard ligatures (liga) ?
I blindly tried several possibilities like
\setupsimplefonts[features={liga}] but none worked
Ligatures are enabled in ConTeXt default fontfeature and simplefonts applies only
the default features to the font, when you don't get them in your document this could
be a font problem, in most cases it helps to select a different script.

\setupsimplefonts[script=latin]

or

\setmainfont[...][script=latin]
2) How can I get \sc to work with a font  family whose small caps are
defined as a font feature, rather than dedicated .otf files ?
The caps font is loaded by default by the smallcaps fontfeature,
if this did not work the problem could be the same as for the ligatures.
3) How can I get font expansion and protrusion to work using
simplefonts' dedicated keywords ? There again, I spent more than 30
minutes trying every combination I could think of, unsuccessfully.
I think it would be useful to have a complete example of code
involving simplefonts and expansion/protrusion that people could copy
& paste from the wiki  

You can use the two keys expamsion ans protrusion, their values are
the same as you have e to write in \definefontfeature.

\setupsimplefonts[expansion=quality,protrusion=quality]


or


\setmainfont[...][expansion=quality,protrusion=quality]

Examples are available on bitbucket:
http://bitbucket.org/wolfs/simplefonts/src/tip/files/


Wolfgang

--------------080802090301030200010807-- --===============0581268144== 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 ___________________________________________________________________________________ --===============0581268144==--