From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93301 Path: news.gmane.org!not-for-mail From: massifr@fastwebnet.it Newsgroups: gmane.comp.tex.context Subject: Re: font style query Date: Thu, 14 Jan 2016 15:02:44 +0100 Message-ID: <103773031.EJJjBueDUx@max> References: <3B32A76A-F42A-4CD0-81F3-8556F07B9472@ziggo.nl> Reply-To: massifr@fastwebnet.it, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3394178075301626092==" X-Trace: ger.gmane.org 1452780234 12695 80.91.229.3 (14 Jan 2016 14:03:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jan 2016 14:03:54 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 14 15:03:43 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aJiUv-0004H7-FH for gctc-ntg-context-518@m.gmane.org; Thu, 14 Jan 2016 15:03:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C96976090; Thu, 14 Jan 2016 15:03:11 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CrlmVE8FJ1mY; Thu, 14 Jan 2016 15:03:06 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 31C5A60AA; Thu, 14 Jan 2016 15:03:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0A76A6094 for ; Thu, 14 Jan 2016 15:03:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jDhM9rsXbZqH for ; Thu, 14 Jan 2016 15:02:55 +0100 (CET) Original-Received: from mr004msr.fastwebnet.it (mr004msr.fastwebnet.it [85.18.95.67]) by zapf.ntg.nl (Postfix) with ESMTP id AE41D6090 for ; Thu, 14 Jan 2016 15:02:45 +0100 (CET) Original-Received: from max.localnet (2.225.185.111) by mr004msr.fastwebnet.it (8.5.140.03) (authenticated as massifr) id 5694E2B7002B07C2 for ntg-context@ntg.nl; Thu, 14 Jan 2016 15:02:45 +0100 User-Agent: KMail/4.14.10 (Linux/4.3.0-1-686-pae; KDE/4.14.14; i686; ; ) In-Reply-To: <3B32A76A-F42A-4CD0-81F3-8556F07B9472@ziggo.nl> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:93301 Archived-At: This is a multi-part message in MIME format. --===============3394178075301626092== Content-Type: multipart/alternative; boundary="nextPart2639644.9gYYsZr1DS" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart2639644.9gYYsZr1DS Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" > Some fonts as for example Lucida have a calligraphic style called up with \cg. > If it is not present a default is taken. > However, I would like to take other action in that case, for example switching to another font. > > Thus, how to test on the presence of that calligraphic style in the current font? It depends on the font, whether it has a calligraphic variant. In the case of Lucida, its name is "Lucida Calligraphy". There's also a "Lucida Handwriting". You can use it in ConTeXt because there are some default typescripts mapping that font on the \cg fontstyle. You can look at these files in your ConTeXt distribution: /tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv /tex/texmf-context/tex/context/base/type-imp-lucida-typeone.mkiv If you want to use a different font, for which there's no default typescript, you have to write your own typescripts. You can also mix font families, taking the missing calligraphic variant from a different family with a similar look. Hope it helps, greetings, Massi --nextPart2639644.9gYYsZr1DS Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

> Some fonts as for example Lucida have a calligraphic style called up with \cg.

> If it is not present a default is taken.

> However, I would like to take other action in that case, for example switching to another font.

>

> Thus, how to test on the presence of that calligraphic style in the current font?

 

It depends on the font, whether it has a calligraphic variant.

In the case of Lucida, its name is "Lucida Calligraphy".

There's also a "Lucida Handwriting".

 

You can use it in ConTeXt because there are some default typescripts

mapping that font on the \cg fontstyle.

You can look at these files in your ConTeXt distribution:

/tex/texmf-context/tex/context/base/type-imp-lucida-opentype.mkiv

/tex/texmf-context/tex/context/base/type-imp-lucida-typeone.mkiv

 

If you want to use a different font, for which there's no default typescript,

you have to write your own typescripts.

You can also mix font families, taking the missing calligraphic variant

from a different family with a similar look.

 

Hope it helps,

greetings,

Massi

--nextPart2639644.9gYYsZr1DS-- --===============3394178075301626092== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============3394178075301626092==--