ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] How to use fonts without typescripts?
@ 2024-05-15 14:33 Shiv Shankar Dayal
  2024-05-15 14:44 ` [NTG-context] " Henri Menke via ntg-context
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Shiv Shankar Dayal @ 2024-05-15 14:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hi,

Defining typescripts to use a font is very painful. How can I use a font
without using a typescript?

-- 
Respect,
Shiv Shankar Dayal

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: How to use fonts without typescripts?
  2024-05-15 14:33 [NTG-context] How to use fonts without typescripts? Shiv Shankar Dayal
@ 2024-05-15 14:44 ` Henri Menke via ntg-context
  2024-05-15 14:48 ` Wolfgang Schuster
  2024-05-16  0:07 ` Bruce Horrocks
  2 siblings, 0 replies; 4+ messages in thread
From: Henri Menke via ntg-context @ 2024-05-15 14:44 UTC (permalink / raw)
  To: ntg-context; +Cc: Henri Menke

On Wed, 2024-05-15 at 20:03 +0530, Shiv Shankar Dayal wrote:
> Hi,
> 
> Defining typescripts to use a font is very painful. How can I use a
> font
> without using a typescript?

Use \definefontfamily which is essentially the successor of the old
simplefonts module.

https://wiki.contextgarden.net/Command/definefontfamily

Cheers, Henri

> 
> _____________________________________________________________________
> ______________
> If your question is of interest to others as well, please add an
> entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl /
> https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki     : https://wiki.contextgarden.net
> _____________________________________________________________________
> ______________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: How to use fonts without typescripts?
  2024-05-15 14:33 [NTG-context] How to use fonts without typescripts? Shiv Shankar Dayal
  2024-05-15 14:44 ` [NTG-context] " Henri Menke via ntg-context
@ 2024-05-15 14:48 ` Wolfgang Schuster
  2024-05-16  0:07 ` Bruce Horrocks
  2 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2024-05-15 14:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Shiv Shankar Dayal

Shiv Shankar Dayal schrieb am 15.05.2024 um 16:33:
> Hi,
>
> Defining typescripts to use a font is very painful. How can I use a 
> font without using a typescript?

\definefontfamily [windows] [rm] [Times New Roman]
\definefontfamily [windows] [ss] [Arial]
\definefontfamily [windows] [tt] [Courier New] [features=none]
\definetypeface   [windows] [mm] [math] [termes] % use \definetypeface 
to load a math font

\setupbodyfont[windows]

\starttext
\showbodyfont
\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

* [NTG-context] Re: How to use fonts without typescripts?
  2024-05-15 14:33 [NTG-context] How to use fonts without typescripts? Shiv Shankar Dayal
  2024-05-15 14:44 ` [NTG-context] " Henri Menke via ntg-context
  2024-05-15 14:48 ` Wolfgang Schuster
@ 2024-05-16  0:07 ` Bruce Horrocks
  2 siblings, 0 replies; 4+ messages in thread
From: Bruce Horrocks @ 2024-05-16  0:07 UTC (permalink / raw)
  To: ntg-context mailing list


> On 15 May 2024, at 15:33, Shiv Shankar Dayal <shivshankar.dayal@gmail.com> wrote:
> 
> Hi,
> 
> Defining typescripts to use a font is very painful. How can I use a font without using a typescript?

If you just want a very small amount of text in a different font you can use:

\definefont [useWarningFont] [name:arialbold*default at 22pt]
\starttext
This is the regular body text font but {\useWarningFont BE AWARE} that others can be used.
\stoptext


—
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2024-05-16  0:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-15 14:33 [NTG-context] How to use fonts without typescripts? Shiv Shankar Dayal
2024-05-15 14:44 ` [NTG-context] " Henri Menke via ntg-context
2024-05-15 14:48 ` Wolfgang Schuster
2024-05-16  0:07 ` Bruce Horrocks

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