From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72309 Path: news.gmane.org!not-for-mail From: Peter Park Nelson Newsgroups: gmane.comp.tex.context Subject: Fonts in Mk IV -- \definefontalternative documentation? Date: Thu, 10 Nov 2011 22:05:02 -0600 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0116154627==" X-Trace: dough.gmane.org 1320984335 22023 80.91.229.12 (11 Nov 2011 04:05:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 04:05:35 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 11 05:05:31 2011 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.69) (envelope-from ) id 1ROiMr-0001I3-AJ for gctc-ntg-context-518@m.gmane.org; Fri, 11 Nov 2011 05:05:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E459ECB0D3; Fri, 11 Nov 2011 05:05:27 +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 PHr-Zc0AzZzg; Fri, 11 Nov 2011 05:05:25 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3A164CB0D0; Fri, 11 Nov 2011 05:05:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 144DECB0D0 for ; Fri, 11 Nov 2011 05:05:23 +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 2TbUyYqHjfPe for ; Fri, 11 Nov 2011 05:05:11 +0100 (CET) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 1F6F8CB0CD for ; Fri, 11 Nov 2011 05:05:11 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAB4528Z026932 for ; Fri, 11 Nov 2011 05:05:10 +0100 Original-Received: by faas10 with SMTP id s10so1371955faa.14 for ; Thu, 10 Nov 2011 20:05:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=fGyAAxYVdyTdHCRBQmmB7UC0HFa/ZvHMJeuhvLq+t6s=; b=PQVuRfKsfiXrfyC0XO5Ty0KFz+ru2n+G5eihegjex4z6LAhOa9JSkLymuzjYxtV1S1 OJsRSbuEqiVLoEMFcrtqmjskAdJut1Lf/P5aWcZ2bNRNwRnJqg+X04sMkcKtYEc5XQnH Xoamn87sPijdsN22Jpkw8+V1vU8aOFk0tANJY= Original-Received: by 10.223.91.143 with SMTP id n15mr16338110fam.23.1320984302633; Thu, 10 Nov 2011 20:05:02 -0800 (PST) Original-Received: by 10.223.83.2 with HTTP; Thu, 10 Nov 2011 20:05:02 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aFTE52ua - 9d067324a870 - 20111111 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:72309 Archived-At: --===============0116154627== Content-Type: multipart/alternative; boundary=001517447eee1cc4fe04b16da028 --001517447eee1cc4fe04b16da028 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am coming to ConTeXt from LaTeX and have a typescript question. I was searching for information on the mailing list about defining semibold and other font variants, and found the following. Can you tell me if further information is only available in the book "context mkiv -- Fonts" or can I find it somewhere else? I have searched through the revised Fonts chapter of the ConTeXt manual but the \definefontalternative macro and the approach described here are not documented there. The approach below works for me if I adapt it to Adobe Garamond Premier Pro, but I am attempting to build a typescript for that handles optical weights, small caps, etc and I have not been able to make it work yet. Before I try posting a minimal example, I would like to be sure that I am looking at the right documentation. I have looked at the "Fonts in LuaTeX" page on Contextgarden as well, but I don't think I have a full understanding of typescripts using OSFONTDIR fonts yet. If there is something I am missing please let me know. Thanks, PPN ** Based on ideas from the forthcoming book "context mkiv -- Fonts": % note: I have deleted all lines except the relevant ones for defining % the semi bold alternatives \definefontalternative [sb] \definefontalternative [si] \definebodyfont [default] [ss] [sb=SansSemiBold sa 1, si=SansSemiBoldItalic sa 1] \starttypescript [sans] [myriadpro] \definefontsynonym [MyriadPro-SemiBold] [name:myriadprosemibold] \definefontsynonym [MyriadPro-SemiBoldIt][name:myriadprosemiboldit] \stoptypescript \starttypescript [sans] [myriadpro] \definefontsynonym [SansSemiBold] [MyriadPro-SemiBold] [features=default] \definefontsynonym [SansSemiBoldItalic] [MyriadPro-SemiBoldIt] [features=default] \stoptypescript \starttypescript [myriadpro] \definetypeface [myriadpro] [ss] [sans] [myriadpro] [default] \stoptypescript \usetypescript[myriadpro] \starttext \switchtobodyfont[myriadpro,ss] \sb Hello \si Italic \stoptext -- Peter Park Nelson peter.park.nelson@gmail.com --001517447eee1cc4fe04b16da028 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, I am coming to ConTeXt from LaTeX and have a typescript question. I = was searching for information on the mailing list about defining semibold a= nd other font variants, and found the following. Can you tell me if further= information is only available in the book "context mkiv -- Fonts"= ; or can I find it somewhere else? I have searched through the revised Font= s chapter of the ConTeXt manual but the \definefontalternative macro and th= e approach described here are not documented there.

The approach below works for me if I adapt it to Adobe Garamond Premier= Pro, but I am attempting to build a typescript for that handles optical we= ights, small caps, etc and I have not been able to make it work yet.

Before I try posting a minimal example, I would like to be sure that I = am looking at the right documentation. I have looked at the "Fonts in = LuaTeX" page on Contextgarden as well, but I don't think I have a = full understanding of typescripts using OSFONTDIR fonts yet. If there is so= mething I am missing please let me know.

Thanks,
PPN


Based on ideas from the forthcoming book "context mkiv -- Fonts":

% note: I have deleted all lines except the relevant ones for defining
% the semi bold alternatives

\definefontalternative [sb]
\definefontalternative [si]

\definebodyfont [default] [ss]
  [sb=3DSansSemiBold sa 1,
   si=3DSansSemiBoldItalic sa 1]

\starttypescript [sans] [myriadpro]
   \definefontsynonym [MyriadPro-SemiBold]  [name:myriadprosemibold]
   \definefontsynonym [MyriadPro-SemiBoldIt][name:myriadprosemiboldit]
\stoptypescript

\starttypescript [sans] [myriadpro]
   \definefontsynonym [SansSemiBold]         [MyriadPro-SemiBold]
[features=3Ddefault]
   \definefontsynonym [SansSemiBoldItalic]   [MyriadPro-SemiBoldIt]
[features=3Ddefault]
\stoptypescript

\starttypescript [myriadpro]
\definetypeface [myriadpro] [ss] [sans]     [myriadpro] [default]
\stoptypescript

\usetypescript[myriadpro]

\starttext

\switchtobodyfont[myriadpro,ss]

\sb Hello
\si Italic

\stoptext


--
Peter Park Nelson
peter.park.nelson@gmail.com
--001517447eee1cc4fe04b16da028-- --===============0116154627== 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 ___________________________________________________________________________________ --===============0116154627==--