ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* font style query
@ 2016-01-14 13:22 dr. Hans van der Meer
  2016-01-14 14:02 ` massifr
  0 siblings, 1 reply; 2+ messages in thread
From: dr. Hans van der Meer @ 2016-01-14 13:22 UTC (permalink / raw)
  To: NTG ConTeXt

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?

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] 2+ messages in thread

* Re: font style query
  2016-01-14 13:22 font style query dr. Hans van der Meer
@ 2016-01-14 14:02 ` massifr
  0 siblings, 0 replies; 2+ messages in thread
From: massifr @ 2016-01-14 14:02 UTC (permalink / raw)
  To: ntg-context


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

> 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

[-- Attachment #1.2: Type: text/html, Size: 4834 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] 2+ messages in thread

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-14 13:22 font style query dr. Hans van der Meer
2016-01-14 14:02 ` massifr

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).