From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93295 Path: news.gmane.org!not-for-mail From: massifr@fastwebnet.it Newsgroups: gmane.comp.tex.context Subject: Re: fontname Date: Thu, 14 Jan 2016 12:28:23 +0100 Message-ID: <2796810.5s6BR7nD50@max> References: <62F5EBF7-B2E8-4943-921D-36C33FB97C11@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="===============4865505213938968276==" X-Trace: ger.gmane.org 1452771324 26460 80.91.229.3 (14 Jan 2016 11:35:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jan 2016 11:35:24 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 14 12:35:12 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 1aJgBM-0004uo-5G for gctc-ntg-context-518@m.gmane.org; Thu, 14 Jan 2016 12:35:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 55EC360B0; Thu, 14 Jan 2016 12:34:53 +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 iJvLPTfsyWmP; Thu, 14 Jan 2016 12:34:50 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 8B98260B7; Thu, 14 Jan 2016 12:34:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2675660B2 for ; Thu, 14 Jan 2016 12:34:50 +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 cGjVW-5Evx_0 for ; Thu, 14 Jan 2016 12:34:40 +0100 (CET) Original-Received: from mr004msr.fastwebnet.it (unknown [85.18.95.67]) by zapf.ntg.nl (Postfix) with ESMTP id A378860B0 for ; Thu, 14 Jan 2016 12:34:30 +0100 (CET) Original-Received: from max.localnet (2.225.185.111) by mr004msr.fastwebnet.it (8.5.140.03) (authenticated as massifr) id 5694E2B700286314 for ntg-context@ntg.nl; Thu, 14 Jan 2016 12:28:24 +0100 User-Agent: KMail/4.14.10 (Linux/4.3.0-1-686-pae; KDE/4.14.14; i686; ; ) In-Reply-To: <62F5EBF7-B2E8-4943-921D-36C33FB97C11@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:93295 Archived-At: This is a multi-part message in MIME format. --===============4865505213938968276== Content-Type: multipart/alternative; boundary="nextPart2001329.6m43EFu3Jt" Content-Transfer-Encoding: 7Bit This is a multi-part message in MIME format. --nextPart2001329.6m43EFu3Jt Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" > I want to display the name of the current (body)font. > \fontname{#1} should do the trick but what parameter to use? > \currentfont > \bodyfont > \currentbodyfont > are all wrong. > Try \fontname\font \purefontname\font should show only its name, not the size, but this does not work for me (version 2015.05.18 included in Debian) Greetings, Massi --nextPart2001329.6m43EFu3Jt Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

> I want to display the name of the current (body)font.

> \fontname{#1} should do the trick but what parameter to use?

> \currentfont

> \bodyfont

> \currentbodyfont

> are all wrong.

>

Try \fontname\font

 

\purefontname\font should show only its name, not the size,

but this does not work for me (version 2015.05.18 included in Debian)

 

Greetings,

Massi

--nextPart2001329.6m43EFu3Jt-- --===============4865505213938968276== 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= --===============4865505213938968276==--