ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* fontname
@ 2016-01-14 11:15 dr. Hans van der Meer
  2016-01-14 11:28 ` fontname massifr
  2016-01-14 11:55 ` fontname Herbert Voss
  0 siblings, 2 replies; 3+ messages in thread
From: dr. Hans van der Meer @ 2016-01-14 11:15 UTC (permalink / raw)
  To: NTG ConTeXt

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.

Eevn the book "fonts in context" didn't help me out.

What to use?

Hans van der Meer

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fontname
  2016-01-14 11:15 fontname dr. Hans van der Meer
@ 2016-01-14 11:28 ` massifr
  2016-01-14 11:55 ` fontname Herbert Voss
  1 sibling, 0 replies; 3+ messages in thread
From: massifr @ 2016-01-14 11:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 354 bytes --]

> 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

[-- Attachment #1.2: Type: text/html, Size: 2698 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: fontname
  2016-01-14 11:15 fontname dr. Hans van der Meer
  2016-01-14 11:28 ` fontname massifr
@ 2016-01-14 11:55 ` Herbert Voss
  1 sibling, 0 replies; 3+ messages in thread
From: Herbert Voss @ 2016-01-14 11:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 14.01.2016 um 12:15 schrieb dr. Hans van der Meer:
> 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.

\starttext
\truefontname{Regular}
\stoptext


Herbert


___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-14 11:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-14 11:15 fontname dr. Hans van der Meer
2016-01-14 11:28 ` fontname massifr
2016-01-14 11:55 ` fontname Herbert Voss

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).